]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/header.h
Whitespace cleanup of all source files.
[pciutils.git] / lib / header.h
index 78f92db7539d3059029e272cf755fe6d9bb9f95a..f3a076ab5406d34c879bf41cddf29348d454374f 100644 (file)
 /* Message Signalled Interrupts registers */
 
 #define PCI_MSI_FLAGS          2       /* Various flags */
-#define  PCI_MSI_FLAGS_64BIT   0x80    /* 64-bit addresses allowed */
-#define  PCI_MSI_FLAGS_QSIZE   0x70    /* Message queue size configured */
-#define  PCI_MSI_FLAGS_QMASK   0x0e    /* Maximum queue size available */
-#define  PCI_MSI_FLAGS_ENABLE  0x01    /* MSI feature enabled */
+#define  PCI_MSI_FLAGS_MASK_BIT        0x100   /* interrupt masking & reporting supported */
+#define  PCI_MSI_FLAGS_64BIT   0x080   /* 64-bit addresses allowed */
+#define  PCI_MSI_FLAGS_QSIZE   0x070   /* Message queue size configured */
+#define  PCI_MSI_FLAGS_QMASK   0x00e   /* Maximum queue size available */
+#define  PCI_MSI_FLAGS_ENABLE  0x001   /* MSI feature enabled */
 #define PCI_MSI_RFU            3       /* Rest of capability flags */
 #define PCI_MSI_ADDRESS_LO     4       /* Lower 32 bits */
 #define PCI_MSI_ADDRESS_HI     8       /* Upper 32 bits (if PCI_MSI_FLAGS_64BIT set) */
 #define PCI_MSI_DATA_32                8       /* 16 bits of data for 32-bit devices */
 #define PCI_MSI_DATA_64                12      /* 16 bits of data for 64-bit devices */
+#define PCI_MSI_MASK_BIT_32    12      /* per-vector masking for 32-bit devices */
+#define PCI_MSI_MASK_BIT_64    16      /* per-vector masking for 64-bit devices */
+#define PCI_MSI_PENDING_32     16      /* per-vector interrupt pending for 32-bit devices */
+#define PCI_MSI_PENDING_64     20      /* per-vector interrupt pending for 64-bit devices */
 
 /* PCI-X */
 #define PCI_PCIX_COMMAND                                                2 /* Command register offset */
 #define PCI_CLASS_STORAGE_FLOPPY       0x0102
 #define PCI_CLASS_STORAGE_IPI          0x0103
 #define PCI_CLASS_STORAGE_RAID         0x0104
+#define PCI_CLASS_STORAGE_ATA          0x0105
+#define PCI_CLASS_STORAGE_SATA         0x0106
+#define PCI_CLASS_STORAGE_SAS          0x0107
 #define PCI_CLASS_STORAGE_OTHER                0x0180
 
 #define PCI_BASE_CLASS_NETWORK         0x02
 #define PCI_CLASS_NETWORK_TOKEN_RING   0x0201
 #define PCI_CLASS_NETWORK_FDDI         0x0202
 #define PCI_CLASS_NETWORK_ATM          0x0203
+#define PCI_CLASS_NETWORK_ISDN         0x0204
 #define PCI_CLASS_NETWORK_OTHER                0x0280
 
 #define PCI_BASE_CLASS_DISPLAY         0x03
 #define PCI_CLASS_DISPLAY_VGA          0x0300
 #define PCI_CLASS_DISPLAY_XGA          0x0301
+#define PCI_CLASS_DISPLAY_3D           0x0302
 #define PCI_CLASS_DISPLAY_OTHER                0x0380
 
 #define PCI_BASE_CLASS_MULTIMEDIA      0x04
 #define PCI_CLASS_MULTIMEDIA_VIDEO     0x0400
 #define PCI_CLASS_MULTIMEDIA_AUDIO     0x0401
+#define PCI_CLASS_MULTIMEDIA_PHONE     0x0402
+#define PCI_CLASS_MULTIMEDIA_AUDIO_DEV 0x0403
 #define PCI_CLASS_MULTIMEDIA_OTHER     0x0480
 
 #define PCI_BASE_CLASS_MEMORY          0x05
 #define  PCI_CLASS_BRIDGE_PCMCIA       0x0605
 #define  PCI_CLASS_BRIDGE_NUBUS                0x0606
 #define  PCI_CLASS_BRIDGE_CARDBUS      0x0607
+#define  PCI_CLASS_BRIDGE_RACEWAY      0x0608
+#define  PCI_CLASS_BRIDGE_PCI_SEMI     0x0609
+#define  PCI_CLASS_BRIDGE_IB_TO_PCI    0x060a
 #define  PCI_CLASS_BRIDGE_OTHER                0x0680
 
 #define PCI_BASE_CLASS_COMMUNICATION   0x07
 #define PCI_CLASS_COMMUNICATION_SERIAL 0x0700
 #define PCI_CLASS_COMMUNICATION_PARALLEL 0x0701
+#define PCI_CLASS_COMMUNICATION_MSERIAL        0x0702
+#define PCI_CLASS_COMMUNICATION_MODEM  0x0703
 #define PCI_CLASS_COMMUNICATION_OTHER  0x0780
 
 #define PCI_BASE_CLASS_SYSTEM          0x08
 #define PCI_CLASS_SYSTEM_DMA           0x0801
 #define PCI_CLASS_SYSTEM_TIMER         0x0802
 #define PCI_CLASS_SYSTEM_RTC           0x0803
+#define PCI_CLASS_SYSTEM_PCI_HOTPLUG   0x0804
 #define PCI_CLASS_SYSTEM_OTHER         0x0880
 
 #define PCI_BASE_CLASS_INPUT           0x09
 #define PCI_CLASS_INPUT_KEYBOARD       0x0900
 #define PCI_CLASS_INPUT_PEN            0x0901
 #define PCI_CLASS_INPUT_MOUSE          0x0902
+#define PCI_CLASS_INPUT_SCANNER                0x0903
+#define PCI_CLASS_INPUT_GAMEPORT       0x0904
 #define PCI_CLASS_INPUT_OTHER          0x0980
 
 #define PCI_BASE_CLASS_DOCKING         0x0a
 #define PCI_CLASS_DOCKING_GENERIC      0x0a00
-#define PCI_CLASS_DOCKING_OTHER                0x0a01
+#define PCI_CLASS_DOCKING_OTHER                0x0a80
 
 #define PCI_BASE_CLASS_PROCESSOR       0x0b
 #define PCI_CLASS_PROCESSOR_386                0x0b00
 #define PCI_CLASS_PROCESSOR_PENTIUM    0x0b02
 #define PCI_CLASS_PROCESSOR_ALPHA      0x0b10
 #define PCI_CLASS_PROCESSOR_POWERPC    0x0b20
+#define PCI_CLASS_PROCESSOR_MIPS       0x0b30
 #define PCI_CLASS_PROCESSOR_CO         0x0b40
 
 #define PCI_BASE_CLASS_SERIAL          0x0c
 #define PCI_CLASS_SERIAL_SSA           0x0c02
 #define PCI_CLASS_SERIAL_USB           0x0c03
 #define PCI_CLASS_SERIAL_FIBER         0x0c04
+#define PCI_CLASS_SERIAL_SMBUS         0x0c05
+#define PCI_CLASS_SERIAL_INFINIBAND    0x0c06
+
+#define PCI_BASE_CLASS_WIRELESS                0x0d
+#define PCI_CLASS_WIRELESS_IRDA                0x0d00
+#define PCI_CLASS_WIRELESS_CONSUMER_IR 0x0d01
+#define PCI_CLASS_WIRELESS_RF          0x0d10
+#define PCI_CLASS_WIRELESS_OTHER       0x0d80
+
+#define PCI_BASE_CLASS_INTELLIGENT     0x0e
+#define PCI_CLASS_INTELLIGENT_I2O      0x0e00
+
+#define PCI_BASE_CLASS_SATELLITE       0x0f
+#define PCI_CLASS_SATELLITE_TV         0x0f00
+#define PCI_CLASS_SATELLITE_AUDIO      0x0f01
+#define PCI_CLASS_SATELLITE_VOICE      0x0f03
+#define PCI_CLASS_SATELLITE_DATA       0x0f04
+
+#define PCI_BASE_CLASS_CRYPT           0x10
+#define PCI_CLASS_CRYPT_NETWORK                0x1000
+#define PCI_CLASS_CRYPT_ENTERTAINMENT  0x1010
+#define PCI_CLASS_CRYPT_OTHER          0x1080
+
+#define PCI_BASE_CLASS_SIGNAL          0x11
+#define PCI_CLASS_SIGNAL_DPIO          0x1100
+#define PCI_CLASS_SIGNAL_PERF_CTR      0x1101
+#define PCI_CLASS_SIGNAL_SYNCHRONIZER  0x1110
+#define PCI_CLASS_SIGNAL_OTHER         0x1180
 
 #define PCI_CLASS_OTHERS               0xff