Only use the low address for stats collection.

This commit is contained in:
Paul Saab 2006-04-26 16:33:58 +00:00
parent ae2734b68c
commit 262af1c828
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158046

View File

@ -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