xref: /kvmtool/include/kvm/virtio-pci-dev.h (revision 117d64953228afa90b52f6e1b4873770643ffdc9)
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
16a67da3beSAsias He #define PCI_DEVICE_ID_VIRTIO_SCSI		0x1008
175529bcd7SAsias He #define PCI_DEVICE_ID_VIRTIO_9P			0x1009
18*117d6495STianjia Zhang #define PCI_DEVICE_ID_VIRTIO_VSOCK		0x1012
19b025083dSJohn Floren #define PCI_DEVICE_ID_VESA			0x2000
2095d13a52SSasha Levin #define PCI_DEVICE_ID_PCI_SHMEM			0x0001
2131638bcaSCyrill Gorcunov 
22b8f43678SSasha Levin #define PCI_VENDOR_ID_REDHAT_QUMRANET		0x1af4
2395d13a52SSasha Levin #define PCI_VENDOR_ID_PCI_SHMEM			0x0001
24b8f43678SSasha Levin #define PCI_SUBSYSTEM_VENDOR_ID_REDHAT_QUMRANET	0x1af4
25b8f43678SSasha Levin 
26b025083dSJohn Floren #define PCI_SUBSYSTEM_ID_VESA			0x0004
2795d13a52SSasha Levin #define PCI_SUBSYSTEM_ID_PCI_SHMEM		0x0001
28b025083dSJohn Floren 
29507e02d8SAsias He #define PCI_CLASS_BLK				0x018000
30507e02d8SAsias He #define PCI_CLASS_NET				0x020000
31507e02d8SAsias He #define PCI_CLASS_CONSOLE			0x078000
32507e02d8SAsias He /*
33507e02d8SAsias He  * 0xFF Device does not fit in any defined classes
34507e02d8SAsias He  */
35507e02d8SAsias He #define PCI_CLASS_RNG				0xff0000
36507e02d8SAsias He #define PCI_CLASS_BLN				0xff0000
375529bcd7SAsias He #define PCI_CLASS_9P				0xff0000
38*117d6495STianjia Zhang #define PCI_CLASS_VSOCK				0xff0000
39507e02d8SAsias He 
4031638bcaSCyrill Gorcunov #endif /* VIRTIO_PCI_DEV_H_ */
41