Device Driver Question

M. Warner Losh imp at bsdimp.com
Tue Feb 10 22:37:29 PST 2004


In message: <007601c3efd7$24db6130$fc5b8651 at sdlbase>
            "Bob Pickles" <BPICKLES at btconnect.com> writes:
: Successfully implemented a driver in 5.1 using a call to 'pci_get_devid'

It is an inline.

Look in src/sys/dev/pci/pcivar.h:

...
#define PCI_ACCESSOR(var, ivar, type)					\
	__BUS_ACCESSOR(pci, var, PCI, ivar, type)
...
PCI_ACCESSOR(devid,		DEVID,		uint32_t)
...

Warner


More information about the freebsd-arch mailing list