staging: ti dspbridge: Rename words with camel case
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / staging / tidspbridge / include / dspbridge / wdt.h
blob4c00ba5fa5bf5c72b1fab58f8a4e2eea2e28739b
1 /*
2 * wdt.h
4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * IO dispatcher for a shared memory channel driver.
8 * Copyright (C) 2010 Texas Instruments, Inc.
10 * This package is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
14 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 #ifndef __DSP_WDT3_H_
19 #define __DSP_WDT3_H_
21 /* WDT defines */
22 #define OMAP3_WDT3_ISR_OFFSET 0x0018
25 /**
26 * struct dsp_wdt_setting - the basic dsp_wdt_setting structure
27 * @reg_base: pointer to the base of the wdt registers
28 * @sm_wdt: pointer to flags in shared memory
29 * @wdt3_tasklet tasklet to manage wdt event
30 * @fclk handle to wdt3 functional clock
31 * @iclk handle to wdt3 interface clock
33 * This struct is used in the function to manage wdt3.
36 struct dsp_wdt_setting {
37 void __iomem *reg_base;
38 struct shm *sm_wdt;
39 struct tasklet_struct wdt3_tasklet;
40 struct clk *fclk;
41 struct clk *iclk;
44 /**
45 * dsp_wdt_init() - initialize wdt3 module.
47 * This function initilize to wdt3 module, so that
48 * other wdt3 function can be used.
50 int dsp_wdt_init(void);
52 /**
53 * dsp_wdt_exit() - initialize wdt3 module.
55 * This function frees all resources allocated for wdt3 module.
57 void dsp_wdt_exit(void);
59 /**
60 * dsp_wdt_enable() - enable/disable wdt3
61 * @enable: bool value to enable/disable wdt3
63 * This function enables or disables wdt3 base on @enable value.
66 void dsp_wdt_enable(bool enable);
68 /**
69 * dsp_wdt_sm_set() - store pointer to the share memory
70 * @data: pointer to dspbridge share memory
72 * This function is used to pass a valid pointer to share memory,
73 * so that the flags can be set in order DSP side can read them.
76 void dsp_wdt_sm_set(void *data);
78 #endif