khypervisor
v1
|
#include <vdev.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | vtimer_changed_status_callback_t )(vmid_t vmid, uint32_t status) |
Functions | |
hvmm_status_t | vdev_timer_init (uint32_t base_addr) |
void | vtimer_set_callback_chagned_status (vtimer_changed_status_callback_t callback) |
typedef void(* vtimer_changed_status_callback_t)(vmid_t vmid, uint32_t status) |
Definition at line 7 of file vdev_timer.h.
hvmm_status_t vdev_timer_init | ( | uint32_t | base_addr | ) |
Definition at line 53 of file vdev_timer.c.
{ hvmm_status_t result = HVMM_STATUS_BUSY; _vdev_info.name = "vtimer"; _vdev_info.base = base_addr; _vdev_info.size = sizeof(struct vdev_timer_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; }
void vtimer_set_callback_chagned_status | ( | vtimer_changed_status_callback_t | callback | ) |
Definition at line 15 of file vdev_timer.c.
{ _write_status = callback; }