Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 2004 23:37:15 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        bpickles@sbs.com, BPICKLES@btconnect.com
Cc:        freebsd-arch@freebsd.org
Subject:   Re: Device Driver Question
Message-ID:  <20040210.233715.75562900.imp@bsdimp.com>
In-Reply-To: <007601c3efd7$24db6130$fc5b8651@sdlbase>
References:  <007601c3efd7$24db6130$fc5b8651@sdlbase>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <007601c3efd7$24db6130$fc5b8651@sdlbase>
            "Bob Pickles" <BPICKLES@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040210.233715.75562900.imp>