Hardware Abstraction Layer for FreeRTOS
|
Go to the documentation of this file.
16 struct vdev *(*vdev_init)(uint32_t index,
struct virtio *virtio, uint8_t size,
struct vring_config *config);
56 #ifdef CONFIG_INSTANCE_NAME
62 #ifdef CONFIG_VDEV_THREAD_SAVE
66 SemaphoreHandle_t lock;
69 inline struct vdev *
vdev_init(uint32_t index,
struct virtio *virtio, uint8_t size,
struct vring_config *config) {
79 return gen->deinit(vdev);
87 return (vdev.config->features &
BIT(feature)) != 0;
uint32_t va
Definition: vdev.h:29
struct vdev_config config
Definition: vdev.h:50
uint32_t align
Definition: vdev.h:31
struct vdev *(* vdev_init)(uint32_t index, struct virtio *virtio, uint8_t size, struct vring_config *config)
Definition: vdev.h:16
void * config
Definition: vdev.h:24
struct vdev * vdev_init(uint32_t index, struct virtio *virtio, uint8_t size, struct vring_config *config)
Definition: vdev.h:69
uint32_t notifyid
Definition: vdev.h:32
struct virtio * virtio
Definition: vdev.h:51
const struct vdev_ops * ops
Definition: vdev.h:55
struct vring_config vrings[0]
Definition: vdev.h:26
#define BIT(x)
Definition: system.h:114
int32_t vdev_getID(struct vdev *vdev)
Definition: vdev.h:81
bool vdev_hasFeatures(struct vdev *vdev, uint32_t feature)
Definition: vdev.h:85
uint32_t features
Definition: vdev.h:22
uint32_t da
Definition: vdev.h:30
#define HAL_DEFINE_GLOBAL_ARRAY(gns)
Definition: hal.h:149
uint32_t notifyid
Definition: vdev.h:21
#define HAL_GET_DEV(gns, index)
Definition: hal.h:182
uint8_t numOfVrings
Definition: vdev.h:25
uint32_t configLen
Definition: vdev.h:23
enum vdev_type id
Definition: vdev.h:20
int32_t vdev_deinit(struct vdev *vdev)
int32_t vdev_deinit(struct vdev *vdev)
Definition: vdev.h:77
bool init
Definition: vdev.h:49