khypervisor  v1
Typedefs | Functions
vdev/vdev_timer.h File Reference
#include <vdev.h>
Include dependency graph for vdev_timer.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

typedef void(* vtimer_changed_status_callback_t)(vmid_t vmid, uint32_t status)

Definition at line 7 of file vdev_timer.h.


Function Documentation

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;
}

Here is the call graph for this function:

Definition at line 15 of file vdev_timer.c.

{
    _write_status = callback;
}
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines