1 #pragma once
2 #include <common/glib.h>
3 
4 #define GET_VIRTADDRESS_SUCCESS 0
5 #define NOT_FOUND_DEVICE 1
6 #define NOT_SUPPORTE_MMIO 2
7 #define GET_VIRTADDRESS_FAILURE 3
8 
9 // 获取virtio-net 设备
10 uint8_t get_virtio_net_device(uint8_t * bus, uint8_t *device,uint8_t * function);
11 //寻找并加载所有virtio设备的驱动(目前只有virtio-net,但其他virtio设备后续也可添加)
12 extern void  c_virtio_probe();
13