PCI Adapter Location and Scsi Port number

Hi all,
I request your help in understanding about the following:

Is there any mechanism for a user application to correlate between the
location of a PCI SCSI adapter (interms of bus, device and function number)
and the scsi port number assigned to it?