khypervisor  v1
Functions | Variables
generic_timer/generic_timer.c File Reference
#include <generic_timer.h>
#include <hvmm_trace.h>
#include "generic_timer_regs.h"
#include <config/cfg_platform.h>
Include dependency graph for generic_timer.c:

Go to the source code of this file.

Functions

static void _generic_timer_hyp_irq_handler (int irq, void *regs, void *pdata)
hvmm_status_t generic_timer_init ()
hvmm_status_t generic_timer_set_tval (generic_timer_type_t type, uint32_t tval)
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_enable_irq (generic_timer_type_t type)
hvmm_status_t generic_timer_set_callback (generic_timer_type_t type, generic_timer_callback_t callback)

Variables

static uint32_t _timer_irqs [GENERIC_TIMER_NUM_TYPES]
static uint32_t _tvals [GENERIC_TIMER_NUM_TYPES]
static generic_timer_callback_t _callback [GENERIC_TIMER_NUM_TYPES]

Function Documentation

static void _generic_timer_hyp_irq_handler ( int  irq,
void *  regs,
void *  pdata 
) [static]

Definition at line 71 of file generic_timer.c.

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:


Variable Documentation

Definition at line 11 of file generic_timer.c.

Definition at line 9 of file generic_timer.c.

Definition at line 10 of file generic_timer.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines