Files
linux/drivers/watchdog/watchdog_core.h
T
Alan Cox 45f5fed30a watchdog: Add multiple device support
We keep the old /dev/watchdog interface file for the first watchdog via
miscdev. This is basically a cut and paste of the relevant interface code
from the rtc driver layer tweaked for watchdog.

Revised to fix problems noted by Hans de Goede

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Tomas Winkler <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
2012-05-30 07:54:25 +02:00

38 lines
1.3 KiB
C

/*
* watchdog_core.h
*
* (c) Copyright 2008-2011 Alan Cox <[email protected]>,
* All Rights Reserved.
*
* (c) Copyright 2008-2011 Wim Van Sebroeck <[email protected]>.
*
* This source code is part of the generic code that can be used
* by all the watchdog timer drivers.
*
* Based on source code of the following authors:
* Matt Domsch <[email protected]>,
* Rob Radez <[email protected]>,
* Rusty Lynch <[email protected]>
* Satyam Sharma <[email protected]>
* Randy Dunlap <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
* Neither Alan Cox, CymruNet Ltd., Wim Van Sebroeck nor Iguana vzw.
* admit liability nor provide warranty for any of this software.
* This material is provided "AS-IS" and at no charge.
*/
#define MAX_DOGS 32 /* Maximum number of watchdog devices */
/*
* Functions/procedures to be called by the core
*/
extern int watchdog_dev_register(struct watchdog_device *);
extern int watchdog_dev_unregister(struct watchdog_device *);
extern int __init watchdog_dev_init(void);
extern void __exit watchdog_dev_exit(void);