131638bcaSCyrill Gorcunov #ifndef VIRTIO_PCI_DEV_H_ 231638bcaSCyrill Gorcunov #define VIRTIO_PCI_DEV_H_ 331638bcaSCyrill Gorcunov 40a7ab0c6SSasha Levin #include <linux/virtio_ids.h> 50a7ab0c6SSasha Levin 631638bcaSCyrill Gorcunov /* 731638bcaSCyrill Gorcunov * Virtio PCI device constants and resources 831638bcaSCyrill Gorcunov * they do use (such as irqs and pins). 931638bcaSCyrill Gorcunov */ 1031638bcaSCyrill Gorcunov 1131638bcaSCyrill Gorcunov #define PCI_DEVICE_ID_VIRTIO_NET 0x1000 1231638bcaSCyrill Gorcunov #define PCI_DEVICE_ID_VIRTIO_BLK 0x1001 1331638bcaSCyrill Gorcunov #define PCI_DEVICE_ID_VIRTIO_CONSOLE 0x1003 1431638bcaSCyrill Gorcunov #define PCI_DEVICE_ID_VIRTIO_RNG 0x1004 1582d2f21eSSasha Levin #define PCI_DEVICE_ID_VIRTIO_BLN 0x1005 16*a67da3beSAsias He #define PCI_DEVICE_ID_VIRTIO_SCSI 0x1008 175529bcd7SAsias He #define PCI_DEVICE_ID_VIRTIO_9P 0x1009 18b025083dSJohn Floren #define PCI_DEVICE_ID_VESA 0x2000 1995d13a52SSasha Levin #define PCI_DEVICE_ID_PCI_SHMEM 0x0001 2031638bcaSCyrill Gorcunov 21b8f43678SSasha Levin #define PCI_VENDOR_ID_REDHAT_QUMRANET 0x1af4 2295d13a52SSasha Levin #define PCI_VENDOR_ID_PCI_SHMEM 0x0001 23b8f43678SSasha Levin #define PCI_SUBSYSTEM_VENDOR_ID_REDHAT_QUMRANET 0x1af4 24b8f43678SSasha Levin 25b025083dSJohn Floren #define PCI_SUBSYSTEM_ID_VESA 0x0004 2695d13a52SSasha Levin #define PCI_SUBSYSTEM_ID_PCI_SHMEM 0x0001 27b025083dSJohn Floren 28507e02d8SAsias He #define PCI_CLASS_BLK 0x018000 29507e02d8SAsias He #define PCI_CLASS_NET 0x020000 30507e02d8SAsias He #define PCI_CLASS_CONSOLE 0x078000 31507e02d8SAsias He /* 32507e02d8SAsias He * 0xFF Device does not fit in any defined classes 33507e02d8SAsias He */ 34507e02d8SAsias He #define PCI_CLASS_RNG 0xff0000 35507e02d8SAsias He #define PCI_CLASS_BLN 0xff0000 365529bcd7SAsias He #define PCI_CLASS_9P 0xff0000 37507e02d8SAsias He 3831638bcaSCyrill Gorcunov #endif /* VIRTIO_PCI_DEV_H_ */ 39