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_SCSI 0x1008 17 #define PCI_DEVICE_ID_VIRTIO_9P 0x1009 18 #define PCI_DEVICE_ID_VIRTIO_VSOCK 0x1012 19 #define PCI_DEVICE_ID_VESA 0x2000 20 #define PCI_DEVICE_ID_PCI_SHMEM 0x0001 21 22 #define PCI_VENDOR_ID_REDHAT_QUMRANET 0x1af4 23 #define PCI_VENDOR_ID_PCI_SHMEM 0x0001 24 #define PCI_SUBSYSTEM_VENDOR_ID_REDHAT_QUMRANET 0x1af4 25 26 #define PCI_SUBSYSTEM_ID_VESA 0x0004 27 #define PCI_SUBSYSTEM_ID_PCI_SHMEM 0x0001 28 29 #define PCI_CLASS_BLK 0x018000 30 #define PCI_CLASS_NET 0x020000 31 #define PCI_CLASS_CONSOLE 0x078000 32 /* 33 * 0xFF Device does not fit in any defined classes 34 */ 35 #define PCI_CLASS_RNG 0xff0000 36 #define PCI_CLASS_BLN 0xff0000 37 #define PCI_CLASS_9P 0xff0000 38 #define PCI_CLASS_VSOCK 0xff0000 39 40 #endif /* VIRTIO_PCI_DEV_H_ */ 41