Hardware Abstraction Layer for FreeRTOS
vdev.h File Reference
#include <FreeRTOS.h>
#include <stdint.h>
#include <stdbool.h>
#include <system.h>
#include <semphr.h>
#include <hal.h>
Include dependency graph for vdev.h:

Go to the source code of this file.

Data Structures

struct  vdev_ops
 
struct  vdev_config
 
struct  vring_config
 
struct  vdev_generic
 

Functions

struct vdev * vdev_init (uint32_t index, struct virtio *virtio, uint8_t size, struct vring_config *config)
 
int32_t vdev_deinit (struct vdev *vdev)
 
int32_t vdev_getID (struct vdev *vdev)
 
bool vdev_hasFeatures (struct vdev *vdev, uint32_t feature)
 

Function Documentation

◆ vdev_deinit()

int32_t vdev_deinit ( struct vdev *  vdev)
inline

◆ vdev_getID()

int32_t vdev_getID ( struct vdev *  vdev)
inline

◆ vdev_hasFeatures()

bool vdev_hasFeatures ( struct vdev *  vdev,
uint32_t  feature 
)
inline

◆ vdev_init()

struct vdev* vdev_init ( uint32_t  index,
struct virtio *  virtio,
uint8_t  size,
struct vring_config config 
)
inline