Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31957
b: refs/heads/master
c: 3c6b377
h: refs/heads/master
i:
  31955: 6763cec
v: v3
  • Loading branch information
Randy Dunlap authored and David S. Miller committed Jul 4, 2006
1 parent 326b654 commit 2543ba1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 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: 4bdbf6c033ba05bff65f69989baccd7103c5a530
refs/heads/master: 3c6b377321678c649f9b3c66da0149975c614102
3 changes: 2 additions & 1 deletion trunk/drivers/atm/ambassador.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <linux/atmdev.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/poison.h>

#include <asm/atomic.h>
#include <asm/io.h>
Expand Down Expand Up @@ -1995,7 +1996,7 @@ static int __devinit ucode_init (loader_block * lb, amb_dev * dev) {
}
i += 1;
}
if (*pointer == 0xdeadbeef) {
if (*pointer == ATM_POISON) {
return loader_start (lb, dev, ucode_start);
} else {
// cast needed as there is no %? for pointer differnces
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/atm/idt77252.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ static char const rcsid[] =

#include <linux/module.h>
#include <linux/pci.h>
#include <linux/poison.h>
#include <linux/skbuff.h>
#include <linux/kernel.h>
#include <linux/vmalloc.h>
Expand Down Expand Up @@ -3657,7 +3658,7 @@ probe_sram(struct idt77252_dev *card)
writel(SAR_CMD_WRITE_SRAM | (0 << 2), SAR_REG_CMD);

for (addr = 0x4000; addr < 0x80000; addr += 0x4000) {
writel(0xdeadbeef, SAR_REG_DR0);
writel(ATM_POISON, SAR_REG_DR0);
writel(SAR_CMD_WRITE_SRAM | (addr << 2), SAR_REG_CMD);

writel(SAR_CMD_READ_SRAM | (0 << 2), SAR_REG_CMD);
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/poison.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

/********** drivers/atm/ **********/
#define ATM_POISON_FREE 0x12
#define ATM_POISON 0xdeadbeef

/********** net/ **********/
#define NEIGHBOR_DEAD 0xdeadbeef
Expand Down

0 comments on commit 2543ba1

Please sign in to comment.