Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
wdt.c File Reference
#include <linux/types.h>
#include <dspbridge/dbdefs.h>
#include <dspbridge/dspdeh.h>
#include <dspbridge/dev.h>
#include <dspbridge/_chnl_sm.h>
#include <dspbridge/wdt.h>
#include <dspbridge/host_os.h>

Go to the source code of this file.

Macros

#define OMAP34XX_WDT3_BASE   (0x49000000 + 0x30000)
 
#define INT_34XX_WDT3_IRQ   (36 + NR_IRQS)
 

Functions

void dsp_wdt_dpc (unsigned long data)
 
irqreturn_t dsp_wdt_isr (int irq, void *data)
 
int dsp_wdt_init (void)
 
void dsp_wdt_sm_set (void *data)
 
void dsp_wdt_exit (void)
 
void dsp_wdt_enable (bool enable)
 

Macro Definition Documentation

#define INT_34XX_WDT3_IRQ   (36 + NR_IRQS)

Definition at line 29 of file wdt.c.

#define OMAP34XX_WDT3_BASE   (0x49000000 + 0x30000)

Definition at line 28 of file wdt.c.

Function Documentation

void dsp_wdt_dpc ( unsigned long  data)

Definition at line 33 of file wdt.c.

void dsp_wdt_enable ( bool  enable)

dsp_wdt_enable() - enable/disable wdt3 : bool value to enable/disable wdt3

This function enables or disables wdt3 base on value.

Definition at line 112 of file wdt.c.

void dsp_wdt_exit ( void  )

dsp_wdt_exit() - initialize wdt3 module.

This function frees all resources allocated for wdt3 module.

Definition at line 93 of file wdt.c.

int dsp_wdt_init ( void  )

dsp_wdt_init() - initialize wdt3 module.

This function initialize to wdt3 module, so that other wdt3 function can be used.

Definition at line 52 of file wdt.c.

irqreturn_t dsp_wdt_isr ( int  irq,
void data 
)

Definition at line 41 of file wdt.c.

void dsp_wdt_sm_set ( void data)

dsp_wdt_sm_set() - store pointer to the share memory : pointer to dspbridge share memory

This function is used to pass a valid pointer to share memory, so that the flags can be set in order DSP side can read them.

Definition at line 86 of file wdt.c.