1 #ifndef VIRTIO_PCI_DEV_H_ 2 #define VIRTIO_PCI_DEV_H_ 3 4 #include <linux/virtio_ids.h> 5 6 /* 7 * Virtio PCI device constants and resources 8 * they do use (such as irqs and pins). 9 */ 10 11 #define PCI_DEVICE_ID_VIRTIO_NET 0x1000 12 #define PCI_DEVICE_ID_VIRTIO_BLK 0x1001 13 #define PCI_DEVICE_ID_VIRTIO_CONSOLE 0x1003 14 #define PCI_DEVICE_ID_VIRTIO_RNG 0x1004 15 #define PCI_DEVICE_ID_VIRTIO_BLN 0x1005 16 #define PCI_DEVICE_ID_VIRTIO_P9 0x1009 17 #define PCI_DEVICE_ID_VESA 0x2000 18 #define PCI_DEVICE_ID_PCI_SHMEM 0x0001 19 20 #define PCI_VENDOR_ID_REDHAT_QUMRANET 0x1af4 21 #define PCI_VENDOR_ID_PCI_SHMEM 0x0001 22 #define PCI_SUBSYSTEM_VENDOR_ID_REDHAT_QUMRANET 0x1af4 23 24 #define PCI_SUBSYSTEM_ID_VESA 0x0004 25 #define PCI_SUBSYSTEM_ID_PCI_SHMEM 0x0001 26 27 #define PCI_CLASS_BLK 0x018000 28 #define PCI_CLASS_NET 0x020000 29 #define PCI_CLASS_CONSOLE 0x078000 30 /* 31 * 0xFF Device does not fit in any defined classes 32 */ 33 #define PCI_CLASS_RNG 0xff0000 34 #define PCI_CLASS_BLN 0xff0000 35 #define PCI_CLASS_P9 0xff0000 36 37 #endif /* VIRTIO_PCI_DEV_H_ */ 38