diff options
author | Felix Blyakher <felixb@sgi.com> | 2009-03-24 15:25:34 -0400 |
---|---|---|
committer | Felix Blyakher <felixb@sgi.com> | 2009-03-24 15:25:34 -0400 |
commit | 61454f33389ecfac68846e07d29c8d18af342c43 (patch) | |
tree | 7dcf069151aa7331c9261d262df4c192b2fabc34 /drivers/net/netxen/netxen_nic_hw.c | |
parent | 4740cd8b4f27d6ac11e76c432d5d03fb780b2596 (diff) | |
parent | 8e0ee43bc2c3e19db56a4adaa9a9b04ce885cd84 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/net/netxen/netxen_nic_hw.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_hw.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/net/netxen/netxen_nic_hw.c b/drivers/net/netxen/netxen_nic_hw.c index 821cff68b3f3..7fea77088108 100644 --- a/drivers/net/netxen/netxen_nic_hw.c +++ b/drivers/net/netxen/netxen_nic_hw.c | |||
@@ -706,28 +706,6 @@ int netxen_nic_change_mtu(struct net_device *netdev, int mtu) | |||
706 | return rc; | 706 | return rc; |
707 | } | 707 | } |
708 | 708 | ||
709 | int netxen_is_flash_supported(struct netxen_adapter *adapter) | ||
710 | { | ||
711 | const int locs[] = { 0, 0x4, 0x100, 0x4000, 0x4128 }; | ||
712 | int addr, val01, val02, i, j; | ||
713 | |||
714 | /* if the flash size less than 4Mb, make huge war cry and die */ | ||
715 | for (j = 1; j < 4; j++) { | ||
716 | addr = j * NETXEN_NIC_WINDOW_MARGIN; | ||
717 | for (i = 0; i < ARRAY_SIZE(locs); i++) { | ||
718 | if (netxen_rom_fast_read(adapter, locs[i], &val01) == 0 | ||
719 | && netxen_rom_fast_read(adapter, (addr + locs[i]), | ||
720 | &val02) == 0) { | ||
721 | if (val01 == val02) | ||
722 | return -1; | ||
723 | } else | ||
724 | return -1; | ||
725 | } | ||
726 | } | ||
727 | |||
728 | return 0; | ||
729 | } | ||
730 | |||
731 | static int netxen_get_flash_block(struct netxen_adapter *adapter, int base, | 709 | static int netxen_get_flash_block(struct netxen_adapter *adapter, int base, |
732 | int size, __le32 * buf) | 710 | int size, __le32 * buf) |
733 | { | 711 | { |