root / hw / watchdog.h @ df182043
History | View | Annotate | Download (1.4 kB)
1 | 9dd986cc | Richard W.M. Jones | /*
|
---|---|---|---|
2 | 9dd986cc | Richard W.M. Jones | * Virtual hardware watchdog.
|
3 | 9dd986cc | Richard W.M. Jones | *
|
4 | 9dd986cc | Richard W.M. Jones | * Copyright (C) 2009 Red Hat Inc.
|
5 | 9dd986cc | Richard W.M. Jones | *
|
6 | 9dd986cc | Richard W.M. Jones | * This program is free software; you can redistribute it and/or
|
7 | 9dd986cc | Richard W.M. Jones | * modify it under the terms of the GNU General Public License
|
8 | 9dd986cc | Richard W.M. Jones | * as published by the Free Software Foundation; either version 2
|
9 | 9dd986cc | Richard W.M. Jones | * of the License, or (at your option) any later version.
|
10 | 9dd986cc | Richard W.M. Jones | *
|
11 | 9dd986cc | Richard W.M. Jones | * This program is distributed in the hope that it will be useful,
|
12 | 9dd986cc | Richard W.M. Jones | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 | 9dd986cc | Richard W.M. Jones | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 | 9dd986cc | Richard W.M. Jones | * GNU General Public License for more details.
|
15 | 9dd986cc | Richard W.M. Jones | *
|
16 | 9dd986cc | Richard W.M. Jones | * You should have received a copy of the GNU General Public License
|
17 | 8167ee88 | Blue Swirl | * along with this program; if not, see <http://www.gnu.org/licenses/>.
|
18 | 9dd986cc | Richard W.M. Jones | *
|
19 | 9dd986cc | Richard W.M. Jones | * By Richard W.M. Jones (rjones@redhat.com).
|
20 | 9dd986cc | Richard W.M. Jones | */
|
21 | 9dd986cc | Richard W.M. Jones | |
22 | 9dd986cc | Richard W.M. Jones | #ifndef QEMU_WATCHDOG_H
|
23 | 9dd986cc | Richard W.M. Jones | #define QEMU_WATCHDOG_H
|
24 | 9dd986cc | Richard W.M. Jones | |
25 | 9801c7b4 | Blue Swirl | #include "qemu-queue.h" |
26 | 9801c7b4 | Blue Swirl | |
27 | 9dd986cc | Richard W.M. Jones | struct WatchdogTimerModel {
|
28 | 72cf2d4f | Blue Swirl | QLIST_ENTRY(WatchdogTimerModel) entry; |
29 | 9dd986cc | Richard W.M. Jones | |
30 | 9dd986cc | Richard W.M. Jones | /* Short name of the device - used to select it on the command line. */
|
31 | 9dd986cc | Richard W.M. Jones | const char *wdt_name; |
32 | 9dd986cc | Richard W.M. Jones | /* Longer description (eg. manufacturer and full model number). */
|
33 | 9dd986cc | Richard W.M. Jones | const char *wdt_description; |
34 | 9dd986cc | Richard W.M. Jones | }; |
35 | 9dd986cc | Richard W.M. Jones | typedef struct WatchdogTimerModel WatchdogTimerModel; |
36 | 9dd986cc | Richard W.M. Jones | |
37 | 9dd986cc | Richard W.M. Jones | /* in hw/watchdog.c */
|
38 | 64b85a8f | Blue Swirl | int select_watchdog(const char *p); |
39 | 64b85a8f | Blue Swirl | int select_watchdog_action(const char *action); |
40 | 64b85a8f | Blue Swirl | void watchdog_add_model(WatchdogTimerModel *model);
|
41 | 64b85a8f | Blue Swirl | void watchdog_perform_action(void); |
42 | 9dd986cc | Richard W.M. Jones | |
43 | 9dd986cc | Richard W.M. Jones | #endif /* QEMU_WATCHDOG_H */ |