1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
/* -*- linux-c -*-
*
* (C) Copyright IBM Corp. 2005, 2006
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This
* file and program are licensed under a BSD style license. See
* the Copying file included with the OpenHPI distribution for
* full licensing terms.
*
* Author(s):
* W. David Ashley <dashley@us.ibm.com>
* Renier Morales <renier@openhpi.org>
*/
#ifndef __SIM_WATCHDOG_H
#define __SIM_WATCHDOG_H
struct simWatchdogInfo {
SaHpiWatchdogT watchdog;
};
struct sim_watchdog {
SaHpiWatchdogRecT watchdogrec;
SaHpiWatchdogT wd;
const char *comment;
};
SaErrorT sim_get_watchdog_info(void *hnd,
SaHpiResourceIdT id,
SaHpiWatchdogNumT num,
SaHpiWatchdogT *wdt);
SaErrorT sim_set_watchdog_info(void *hnd,
SaHpiResourceIdT id,
SaHpiWatchdogNumT num,
SaHpiWatchdogT *wdt);
SaErrorT sim_reset_watchdog(void *hnd,
SaHpiResourceIdT id,
SaHpiWatchdogNumT num);
extern struct sim_watchdog sim_chassis_watchdogs[];
extern struct sim_watchdog sim_cpu_watchdogs[];
extern struct sim_watchdog sim_dasd_watchdogs[];
extern struct sim_watchdog sim_hs_dasd_watchdogs[];
extern struct sim_watchdog sim_fan_watchdogs[];
SaErrorT sim_discover_chassis_watchdogs(struct oh_handler_state *state,
struct oh_event *e);
SaErrorT sim_discover_cpu_watchdogs(struct oh_handler_state *state,
struct oh_event *e);
SaErrorT sim_discover_dasd_watchdogs(struct oh_handler_state *state,
struct oh_event *e);
SaErrorT sim_discover_hs_dasd_watchdogs(struct oh_handler_state *state,
struct oh_event *e);
SaErrorT sim_discover_fan_watchdogs(struct oh_handler_state *state,
struct oh_event *e);
#endif
|