diff options
author | David S. Miller <davem@davemloft.net> | 2010-12-21 16:26:15 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-21 16:26:15 -0500 |
commit | 503b1a529a6b62b31904bab4699752c523cf76b2 (patch) | |
tree | c78d1850e9409295ad720b56ceb0d28efe9d0e39 /drivers/net/bnx2.c | |
parent | 4b4f54670859074cf7670cc6fa96fe34a65846d9 (diff) | |
parent | 215faf9c5f6e319e97edea9e178123e07825c14d (diff) |
Merge branch '20101221_static_const' of git://repo.or.cz/linux-2.6/trivial-mods
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 85fc2c88af8e..6fa798468ad4 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -6811,28 +6811,30 @@ bnx2_get_regs(struct net_device *dev, struct ethtool_regs *regs, void *_p) | |||
6811 | u32 *p = _p, i, offset; | 6811 | u32 *p = _p, i, offset; |
6812 | u8 *orig_p = _p; | 6812 | u8 *orig_p = _p; |
6813 | struct bnx2 *bp = netdev_priv(dev); | 6813 | struct bnx2 *bp = netdev_priv(dev); |
6814 | u32 reg_boundaries[] = { 0x0000, 0x0098, 0x0400, 0x045c, | 6814 | static const u32 reg_boundaries[] = { |
6815 | 0x0800, 0x0880, 0x0c00, 0x0c10, | 6815 | 0x0000, 0x0098, 0x0400, 0x045c, |
6816 | 0x0c30, 0x0d08, 0x1000, 0x101c, | 6816 | 0x0800, 0x0880, 0x0c00, 0x0c10, |
6817 | 0x1040, 0x1048, 0x1080, 0x10a4, | 6817 | 0x0c30, 0x0d08, 0x1000, 0x101c, |
6818 | 0x1400, 0x1490, 0x1498, 0x14f0, | 6818 | 0x1040, 0x1048, 0x1080, 0x10a4, |
6819 | 0x1500, 0x155c, 0x1580, 0x15dc, | 6819 | 0x1400, 0x1490, 0x1498, 0x14f0, |
6820 | 0x1600, 0x1658, 0x1680, 0x16d8, | 6820 | 0x1500, 0x155c, 0x1580, 0x15dc, |
6821 | 0x1800, 0x1820, 0x1840, 0x1854, | 6821 | 0x1600, 0x1658, 0x1680, 0x16d8, |
6822 | 0x1880, 0x1894, 0x1900, 0x1984, | 6822 | 0x1800, 0x1820, 0x1840, 0x1854, |
6823 | 0x1c00, 0x1c0c, 0x1c40, 0x1c54, | 6823 | 0x1880, 0x1894, 0x1900, 0x1984, |
6824 | 0x1c80, 0x1c94, 0x1d00, 0x1d84, | 6824 | 0x1c00, 0x1c0c, 0x1c40, 0x1c54, |
6825 | 0x2000, 0x2030, 0x23c0, 0x2400, | 6825 | 0x1c80, 0x1c94, 0x1d00, 0x1d84, |
6826 | 0x2800, 0x2820, 0x2830, 0x2850, | 6826 | 0x2000, 0x2030, 0x23c0, 0x2400, |
6827 | 0x2b40, 0x2c10, 0x2fc0, 0x3058, | 6827 | 0x2800, 0x2820, 0x2830, 0x2850, |
6828 | 0x3c00, 0x3c94, 0x4000, 0x4010, | 6828 | 0x2b40, 0x2c10, 0x2fc0, 0x3058, |
6829 | 0x4080, 0x4090, 0x43c0, 0x4458, | 6829 | 0x3c00, 0x3c94, 0x4000, 0x4010, |
6830 | 0x4c00, 0x4c18, 0x4c40, 0x4c54, | 6830 | 0x4080, 0x4090, 0x43c0, 0x4458, |
6831 | 0x4fc0, 0x5010, 0x53c0, 0x5444, | 6831 | 0x4c00, 0x4c18, 0x4c40, 0x4c54, |
6832 | 0x5c00, 0x5c18, 0x5c80, 0x5c90, | 6832 | 0x4fc0, 0x5010, 0x53c0, 0x5444, |
6833 | 0x5fc0, 0x6000, 0x6400, 0x6428, | 6833 | 0x5c00, 0x5c18, 0x5c80, 0x5c90, |
6834 | 0x6800, 0x6848, 0x684c, 0x6860, | 6834 | 0x5fc0, 0x6000, 0x6400, 0x6428, |
6835 | 0x6888, 0x6910, 0x8000 }; | 6835 | 0x6800, 0x6848, 0x684c, 0x6860, |
6836 | 0x6888, 0x6910, 0x8000 | ||
6837 | }; | ||
6836 | 6838 | ||
6837 | regs->version = 0; | 6839 | regs->version = 0; |
6838 | 6840 | ||