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

Go to the source code of this file.

Functions

hvmm_status_t vdev_sample_init (uint32_t base_addr)

Function Documentation

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

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines