khypervisor  v1
Typedefs | Enumerations | Functions
include/generic_timer.h File Reference
#include "armv7_p15.h"
#include "gic.h"
#include <log/uart_print.h>
Include dependency graph for generic_timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* generic_timer_callback_t )(void *pdata)

Enumerations

enum  generic_timer_type_t { GENERIC_TIMER_HYP, GENERIC_TIMER_VIR, GENERIC_TIMER_NSP, GENERIC_TIMER_NUM_TYPES }

Functions

hvmm_status_t generic_timer_init ()
hvmm_status_t generic_timer_enable_int (generic_timer_type_t type)
hvmm_status_t generic_timer_disable_int (generic_timer_type_t type)
hvmm_status_t generic_timer_set_tval (generic_timer_type_t type, uint32_t tval)
hvmm_status_t generic_timer_enable_irq (generic_timer_type_t type)
hvmm_status_t generic_timer_set_callback (generic_timer_type_t type, generic_timer_callback_t callback)

Typedef Documentation

typedef void(* generic_timer_callback_t)(void *pdata)

Definition at line 16 of file generic_timer.h.


Enumeration Type Documentation

Enumerator:
GENERIC_TIMER_HYP 
GENERIC_TIMER_VIR 
GENERIC_TIMER_NSP 
GENERIC_TIMER_NUM_TYPES 

Definition at line 9 of file generic_timer.h.


Function Documentation

Definition at line 54 of file generic_timer.c.

Here is the call graph for this function:

Definition at line 37 of file generic_timer.c.

Here is the call graph for this function:

Definition at line 76 of file generic_timer.c.

Here is the call graph for this function:

Definition at line 95 of file generic_timer.c.

{
    HVMM_TRACE_ENTER();

    _callback[type] = callback;

    HVMM_TRACE_EXIT();
    return HVMM_STATUS_SUCCESS;
}

Definition at line 23 of file generic_timer.c.

{
    hvmm_status_t result = HVMM_STATUS_UNSUPPORTED_FEATURE;

    if ( type == GENERIC_TIMER_HYP) {
        _tvals[type] = tval;
        generic_timer_reg_write(GENERIC_TIMER_REG_HYP_TVAL, tval);
        result = HVMM_STATUS_SUCCESS;
    } else {
    }

    return result;
}

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines