git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
drivers
/
char
/
watchdog
/
machzwd.c
diff --git
a/drivers/char/watchdog/machzwd.c
b/drivers/char/watchdog/machzwd.c
index
6e14abb
..
a70dd81
100644
(file)
--- a/
drivers/char/watchdog/machzwd.c
+++ b/
drivers/char/watchdog/machzwd.c
@@
-88,12
+88,6
@@
static unsigned short zf_readw(unsigned char port)
return inw(DATA_W);
}
return inw(DATA_W);
}
-static unsigned short zf_readb(unsigned char port)
-{
- outb(port, INDEX);
- return inb(DATA_B);
-}
-
MODULE_AUTHOR("Fernando Fuganti <fuganti@conectiva.com.br>");
MODULE_DESCRIPTION("MachZ ZF-Logic Watchdog driver");
MODULE_AUTHOR("Fernando Fuganti <fuganti@conectiva.com.br>");
MODULE_DESCRIPTION("MachZ ZF-Logic Watchdog driver");
@@
-155,13
+149,6
@@
static unsigned long next_heartbeat = 0;
#endif
#endif
-/* STATUS register functions */
-
-static inline unsigned char zf_get_status(void)
-{
- return zf_readb(STATUS);
-}
-
static inline void zf_set_status(unsigned char new)
{
zf_writeb(STATUS, new);
static inline void zf_set_status(unsigned char new)
{
zf_writeb(STATUS, new);
@@
-182,22
+169,6
@@
static inline void zf_set_control(unsigned short new)
/* WD#? counter functions */
/* WD#? counter functions */
-/*
- * Just get current counter value
- */
-
-static inline unsigned short zf_get_timer(unsigned char n)
-{
- switch(n){
- case WD1:
- return zf_readw(COUNTER_1);
- case WD2:
- return zf_readb(COUNTER_2);
- default:
- return 0;
- }
-}
-
/*
* Just set counter value
*/
/*
* Just set counter value
*/