mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Add comment about why we bother to use endian macros here, and why we
must use bitfields.
This commit is contained in:
parent
a701764e9c
commit
35613d10dc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345298
@ -259,6 +259,14 @@ typedef struct {
|
||||
|
||||
extern uint32_t pci_numdevs;
|
||||
|
||||
/*
|
||||
* The bitfield has to be stable an match the fields below (so that
|
||||
* match_flag_vendor must be bit 0) so we have to do the endian
|
||||
* dance. We can't use enums or #define constants because then the
|
||||
* the macros for subsetting matches wouldn't work. These tables
|
||||
* are parsed by devmatch and others to connect modules with
|
||||
* devices on the PCI bus.
|
||||
*/
|
||||
struct pci_device_table {
|
||||
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||
uint16_t
|
||||
|
Loading…
Reference in New Issue
Block a user