diff options
Diffstat (limited to 'zaptel.h')
-rwxr-xr-x | zaptel.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1161,8 +1161,25 @@ struct zt_span { #ifdef CONFIG_DEVFS_FS devfs_handle_t dhandle; /* Directory name */ #endif + /* If the watchdog detects no received data, it will call the + watchdog routine */ + int (*watchdog)(struct zt_span *span, int cause); +#ifdef CONFIG_ZAPTEL_WATCHDOG + int watchcounter; + int watchstate; +#endif }; +#define ZT_WATCHDOG_NOINTS (1 << 0) + +#define ZT_WATCHDOG_INIT 1000 + +#define ZT_WATCHSTATE_UNKNOWN 0 +#define ZT_WATCHSTATE_OK 1 +#define ZT_WATCHSTATE_RECOVERING 2 +#define ZT_WATCHSTATE_FAILED 3 + + struct zt_dynamic_driver { /* Driver name (e.g. Eth) */ char name[20]; |