X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Flnx_virtio_pci.h;h=5379479c6619c4557e4321f621c0dd08723550ab;hb=2a9554f33cc3bdaab08d59ac54d6dd1f4472285d;hp=9e6e69f76f227c2e7c9a322491bbccf56b01c36e;hpb=217e4d9dbb18e7c8dfd26f9fd74770614dd2024c;p=palacios.git diff --git a/palacios/include/devices/lnx_virtio_pci.h b/palacios/include/devices/lnx_virtio_pci.h index 9e6e69f..5379479 100644 --- a/palacios/include/devices/lnx_virtio_pci.h +++ b/palacios/include/devices/lnx_virtio_pci.h @@ -34,10 +34,16 @@ #define VIRTIO_BLOCK_DEV_ID 0x1001 #define VIRTIO_BALLOON_DEV_ID 0x1002 #define VIRTIO_CONSOLE_DEV_ID 0x1003 +#define VIRTIO_SYMBIOTIC_DEV_ID 0x100a +#define VIRTIO_SYMMOD_DEV_ID 0x100b +#define VIRTIO_VNET_DEV_ID 0x100c +#define VIRTIO_NET_SUBDEVICE_ID 1 #define VIRTIO_BLOCK_SUBDEVICE_ID 2 #define VIRTIO_BALLOON_SUBDEVICE_ID 5 - +#define VIRTIO_SYMBIOTIC_SUBDEVICE_ID 10 +#define VIRTIO_SYMMOD_SUBDEVICE_ID 11 +#define VIRTIO_VNET_SUBDEVICE_ID 12 #define HOST_FEATURES_PORT 0 #define GUEST_FEATURES_PORT 4 @@ -67,6 +73,13 @@ /* This means don't interrupt guest when buffer consumed. */ #define VIRTIO_NO_IRQ_FLAG 0x1 + +/* ISR Flags */ +#define VIRTIO_ISR_ACTIVE 0x1 +#define VIRTIO_ISR_CFG_CHANGED 0x2 + + + /* The virtio configuration space is a hybrid io/memory mapped model * All IO is done via IO port accesses * The IO ports access fields in a virtio data structure, and the base io port @@ -123,7 +136,6 @@ struct virtio_queue { addr_t ring_avail_addr; addr_t ring_used_addr; - struct vring_desc * desc; // We can treat this as an array... struct vring_avail * avail; struct vring_used * used;