From 262af1c828e045734bd6ec00fb7fd6c5b4fdb64d Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Wed, 26 Apr 2006 16:33:58 +0000 Subject: [PATCH] Only use the low address for stats collection. --- sys/dev/bce/if_bcereg.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/bce/if_bcereg.h b/sys/dev/bce/if_bcereg.h index b0425e64c093..a052a0a54d29 100644 --- a/sys/dev/bce/if_bcereg.h +++ b/sys/dev/bce/if_bcereg.h @@ -709,13 +709,11 @@ struct flash_spec { #define PCI_SETBIT(dev, reg, x, s) pci_write_config(dev, reg, (pci_read_config(dev, reg, s) | (x)), s) #define PCI_CLRBIT(dev, reg, x, s) pci_write_config(dev, reg, (pci_read_config(dev, reg, s) & ~(x)), s) +#define BCE_STATS(x) (u_long) stats->stat_ ## x ## _lo #if (BUS_SPACE_MAXADDR > 0xFFFFFFFF) -#define BCE_STATS(x) ((u_long) stats->stat_ ## x ## _hi << 32) + \ - (u_long) stats->stat_ ## x ## _lo #define BCE_ADDR_LO(y) ((u64) (y) & 0xFFFFFFFF) #define BCE_ADDR_HI(y) ((u64) (y) >> 32) #else -#define BCE_STATS(x) (u_long) stats->stat_ ## x ## _lo #define BCE_ADDR_LO(y) ((u32)y) #define BCE_ADDR_HI(y) (0) #endif