feat: start setup virtio

This commit is contained in:
2022-09-01 20:45:40 +02:00
parent e850dabc8b
commit f037adcebd
7 changed files with 196 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
//
// Created by rick on 14-5-22.
//
#ifndef NEW_KERNEL_VIRTIO_H
#define NEW_KERNEL_VIRTIO_H
#define PCI_VENDOR_VIRTIO 0x1af4
#define PCI_DEVICE_VIRTIO_NETWORK 0x1000
#define PCI_DEVICE_VIRTIO_BLOCK 0x1001
#define PCI_DEVICE_VIRTIO_BALLOON 0x1002
#define PCI_DEVICE_VIRTIO_CONSOLE 0x1003
#define PCI_DEVICE_VIRTIO_SCSI 0x1004
#define PCI_DEVICE_VIRTIO_ENTROPY 0x1005
#define PCI_DEVICE_VIRTIO_9P 0x1009
#endif //NEW_KERNEL_VIRTIO_H