|
khypervisor
v1
|
#include <vdev.h>

Go to the source code of this file.
Functions | |
| hvmm_status_t | vdev_sample_init (uint32_t base_addr) |
| hvmm_status_t vdev_sample_init | ( | uint32_t | base_addr | ) |
Definition at line 56 of file vdev_sample.c.
{
hvmm_status_t result = HVMM_STATUS_BUSY;
_vdev_info.name = "sample";
_vdev_info.base = base_addr;
_vdev_info.size = sizeof(struct vdev_sample_regs);
_vdev_info.handler = access_handler;
result = vdev_reg_device(&_vdev_info);
if ( result == HVMM_STATUS_SUCCESS ) {
printh("%s: vdev registered:'%s'\n", __FUNCTION__, _vdev_info.name);
} else {
printh("%s: Unable to register vdev:'%s' code=%x\n", __FUNCTION__, _vdev_info.name, result);
}
return result;
}

1.7.6.1