How to get PCI Private Driver Data Pointer?

Hi all,

I am trying to figure out how FreeBSD's PCI kernel modules work, maybe to do some light porting from Linux.

My understanding is that during the
call, the device will provide the driver with a pointer to a list of function pointers, which, when parsed, can be used to perform I/O operations. This understanding stems from a comparable method in Linux, specifically these lines where the PCI and Realtek private driver data pointers are assigned and then utilized by the read/write/configure operations.

If this understanding is correct, how is this done in FreeBSD? I cannot seem to find the equivalent code in the
function here:

Thank you