Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8804
b: refs/heads/master
c: ce2f50b
h: refs/heads/master
v: v3
  • Loading branch information
Naveen Gupta authored and Wim Van Sebroeck committed Sep 11, 2005
1 parent 2ed6c97 commit 089a893
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 28562af3d4b21d687dd57c44006aeeed1036c781
refs/heads/master: ce2f50b4ae71f700c7b4b0bf0ff11c328611dae8
6 changes: 3 additions & 3 deletions trunk/drivers/char/watchdog/i6300esb.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static int esb_timer_stop(void)
spin_lock(&esb_lock);
/* First, reset timers as suggested by the docs */
esb_unlock_registers();
writew(0x10, ESB_RELOAD_REG);
writew(ESB_WDT_RELOAD, ESB_RELOAD_REG);
/* Then disable the WDT */
pci_write_config_byte(esb_pci, ESB_LOCK_REG, 0x0);
pci_read_config_byte(esb_pci, ESB_LOCK_REG, &val);
Expand All @@ -123,7 +123,7 @@ static void esb_timer_keepalive(void)
{
spin_lock(&esb_lock);
esb_unlock_registers();
writew(0x10, ESB_RELOAD_REG);
writew(ESB_WDT_RELOAD, ESB_RELOAD_REG);
/* FIXME: Do we need to flush anything here? */
spin_unlock(&esb_lock);
}
Expand Down Expand Up @@ -153,7 +153,7 @@ static int esb_timer_set_heartbeat(int time)

/* Reload */
esb_unlock_registers();
writew(0x10, ESB_RELOAD_REG);
writew(ESB_WDT_RELOAD, ESB_RELOAD_REG);

/* FIXME: Do we need to flush everything out? */

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/char/watchdog/i6300esb.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
#define ESB_WDT_FREQ ( 0x01 << 2 ) /* Decrement frequency */
#define ESB_WDT_INTTYPE ( 0x11 << 0 ) /* Interrupt type on timer1 timeout */

/* Reload register bits */
#define ESB_WDT_RELOAD ( 0x01 << 8 ) /* prevent timeout */

/*
* Some magic constants
Expand Down

0 comments on commit 089a893

Please sign in to comment.