mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
include/pci.h: sync the subvendor/subdevice type in id table and pci_device_s
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
#define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f)
|
#define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f)
|
||||||
#define PCI_FUNC(devfn) ((devfn) & 0x07)
|
#define PCI_FUNC(devfn) ((devfn) & 0x07)
|
||||||
|
|
||||||
#define PCI_ANY_ID (~0)
|
#define PCI_ANY_ID (uint16_t)(~0)
|
||||||
|
|
||||||
/* PCI_DEFINE_DEVICE_TABLE - macro used to describe a pci device table
|
/* PCI_DEFINE_DEVICE_TABLE - macro used to describe a pci device table
|
||||||
* table: device table name
|
* table: device table name
|
||||||
@@ -247,8 +247,8 @@ struct pci_device_id_s
|
|||||||
{
|
{
|
||||||
uint16_t vendor; /* Vendor id */
|
uint16_t vendor; /* Vendor id */
|
||||||
uint16_t device; /* Device id */
|
uint16_t device; /* Device id */
|
||||||
uint32_t subvendor; /* Sub vendor id */
|
uint16_t subvendor; /* Sub vendor id */
|
||||||
uint32_t subdevice; /* Sub device id */
|
uint16_t subdevice; /* Sub device id */
|
||||||
uint32_t class; /* (Class, subclass, prog-if) triplet */
|
uint32_t class; /* (Class, subclass, prog-if) triplet */
|
||||||
uint32_t class_mask;
|
uint32_t class_mask;
|
||||||
uintptr_t driver_data;
|
uintptr_t driver_data;
|
||||||
|
|||||||
Reference in New Issue
Block a user