virtio: sync ids with Linux.

Change-Id: I1ca852f16e2b8d5d22ebed25b682e56fd934c46c
Reviewed-on: https://review.haiku-os.org/640
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jérôme Duval
2018-10-24 07:36:51 +00:00
committed by Adrien Destugues
parent 8f3a684551
commit c02c4653c2
+15 -11
View File
@@ -10,17 +10,21 @@
#include <KernelExport.h> #include <KernelExport.h>
#define VIRTIO_DEVICE_ID_NETWORK 0x01 #define VIRTIO_DEVICE_ID_NETWORK 1
#define VIRTIO_DEVICE_ID_BLOCK 0x02 #define VIRTIO_DEVICE_ID_BLOCK 2
#define VIRTIO_DEVICE_ID_CONSOLE 0x03 #define VIRTIO_DEVICE_ID_CONSOLE 3
#define VIRTIO_DEVICE_ID_ENTROPY 0x04 #define VIRTIO_DEVICE_ID_ENTROPY 4
#define VIRTIO_DEVICE_ID_BALLOON 0x05 #define VIRTIO_DEVICE_ID_BALLOON 5
#define VIRTIO_DEVICE_ID_IOMEMORY 0x06 #define VIRTIO_DEVICE_ID_IOMEMORY 6
#define VIRTIO_DEVICE_ID_RP_MESSAGE 0x07 #define VIRTIO_DEVICE_ID_RP_MESSAGE 7
#define VIRTIO_DEVICE_ID_SCSI 0x08 #define VIRTIO_DEVICE_ID_SCSI 8
#define VIRTIO_DEVICE_ID_9P 0x09 #define VIRTIO_DEVICE_ID_9P 9
#define VIRTIO_DEVICE_ID_RP_SERIAL 0x0b #define VIRTIO_DEVICE_ID_RP_SERIAL 11
#define VIRTIO_DEVICE_ID_CAIF 0x0c #define VIRTIO_DEVICE_ID_CAIF 12
#define VIRTIO_DEVICE_ID_GPU 16
#define VIRTIO_DEVICE_ID_INPUT 18
#define VIRTIO_DEVICE_ID_VSOCK 19
#define VIRTIO_DEVICE_ID_CRYPTO 20
#define VIRTIO_FEATURE_TRANSPORT_MASK ((1 << 28) - 1) #define VIRTIO_FEATURE_TRANSPORT_MASK ((1 << 28) - 1)