📄 bcm5700-7.4.11-2.4.27.patch
字号:
diff -u --recursive --new-file linux-2.4.27/Documentation/Configure.help linux-2.4.27.patch/Documentation/Configure.help--- linux-2.4.27/Documentation/Configure.help 2004-09-30 16:47:37.000000000 -0700+++ linux-2.4.27.patch/Documentation/Configure.help 2004-10-04 11:03:14.000000000 -0700@@ -12046,6 +12046,16 @@ say M here and read <file:Documentation/modules.txt>. The module will be called sungem.o. +Broadcom NetXtreme BCM5700 Gigabit Ethernet support+CONFIG_NET_BROADCOM+ Select Y here if you have a Broadcom BCM57xx, or 3Com+ 3C996/3C997/3C1000/3C940 PCI/PCIX Gigabit Ethernet adapter.++ To Compile this driver as a module(code which can be dynamically+ inserted and removed from a running kernel), select M here. + Reading Documentation/modules.txt is recommended.+ The module is named bcm5700.o.+ Broadcom Tigon3 support CONFIG_TIGON3 This driver supports Broadcom Tigon3 based gigabit Ethernet cards.diff -u --recursive --new-file linux-2.4.27/drivers/net/Config.in linux-2.4.27.patch/drivers/net/Config.in--- linux-2.4.27/drivers/net/Config.in 2004-09-30 16:48:18.000000000 -0700+++ linux-2.4.27.patch/drivers/net/Config.in 2004-10-04 11:05:55.000000000 -0700@@ -273,6 +273,7 @@ dep_tristate 'Packet Engines Yellowfin Gigabit-NIC support (EXPERIMENTAL)' CONFIG_YELLOWFIN $CONFIG_PCI $CONFIG_EXPERIMENTAL dep_tristate 'Realtek 8169 Gigabit Ethernet support' CONFIG_R8169 $CONFIG_PCI dep_tristate 'Marvell Yukon Chipset / SysKonnect SK-98xx Support' CONFIG_SK98LIN $CONFIG_PCI+dep_tristate 'Broadcom BCM5700 support' CONFIG_NET_BROADCOM $CONFIG_PCI dep_tristate 'Broadcom Tigon3 support' CONFIG_TIGON3 $CONFIG_PCI if [ "$CONFIG_MOMENCO_OCELOT_C" = "y" -o "$CONFIG_MOMENCO_JAGUAR_ATX" = "y" ]; thendiff -u --recursive --new-file linux-2.4.27/drivers/net/Makefile linux-2.4.27.patch/drivers/net/Makefile--- linux-2.4.27/drivers/net/Makefile 2004-09-30 16:48:27.000000000 -0700+++ linux-2.4.27.patch/drivers/net/Makefile 2004-10-04 11:11:53.000000000 -0700@@ -31,6 +31,10 @@ obj-y += e1000/e1000.o endif +feq ($(CONFIG_NET_BROADCOM),y)+ obj-y += bcm/bcm5700.o+endif+ ifeq ($(CONFIG_BONDING),y) obj-y += bonding/bonding.o endif@@ -53,6 +57,7 @@ subdir-$(CONFIG_SKFP) += skfp subdir-$(CONFIG_E100) += e100 subdir-$(CONFIG_E1000) += e1000+subdir-$(CONFIG_NET_BROADCOM) +=bcm subdir-$(CONFIG_BONDING) += bonding #diff -u --recursive --new-file linux-2.4.27/drivers/net/bcm/5701rls.c linux-2.4.27.patch/drivers/net/bcm/5701rls.c--- linux-2.4.27/drivers/net/bcm/5701rls.c 1969-12-31 16:00:00.000000000 -0800+++ linux-2.4.27.patch/drivers/net/bcm/5701rls.c 2004-12-15 19:14:11.830242768 -0800@@ -0,0 +1,46 @@+/******************************************************************************/+/* */+/* Broadcom BCM5700 Linux Network Driver, Copyright (c) 2000 - 2004 Broadcom */+/* Corporation. */+/* All rights reserved. */+/* */+/* This program is free software; you can redistribute it and/or modify */+/* it under the terms of the GNU General Public License as published by */+/* the Free Software Foundation, located in the file LICENSE. */+/* */+/* History: */+/* */+/******************************************************************************/++#if INCLUDE_5701_AX_FIX++#include "mm.h"+#include "5701rls.h"++LM_STATUS LM_LoadRlsFirmware(PLM_DEVICE_BLOCK pDevice)+{+ T3_FWIMG_INFO FwImgInfo;++ FwImgInfo.StartAddress = t3FwStartAddr;+ FwImgInfo.Text.Buffer = (PLM_UINT8)t3FwText;+ FwImgInfo.Text.Offset = t3FwTextAddr;+ FwImgInfo.Text.Length = t3FwTextLen;+ FwImgInfo.ROnlyData.Buffer = (PLM_UINT8)t3FwRodata;+ FwImgInfo.ROnlyData.Offset = t3FwRodataAddr;+ FwImgInfo.ROnlyData.Length = t3FwRodataLen;+ FwImgInfo.Data.Buffer = (PLM_UINT8)t3FwData;+ FwImgInfo.Data.Offset = t3FwDataAddr;+ FwImgInfo.Data.Length = t3FwDataLen;++ if (LM_LoadFirmware(pDevice,+ &FwImgInfo,+ T3_RX_CPU_ID | T3_TX_CPU_ID,+ T3_RX_CPU_ID) != LM_STATUS_SUCCESS)+ {+ return LM_STATUS_FAILURE;+ }+ + return LM_STATUS_SUCCESS;+}++#endif /* INCLUDE_5701_AX_FIX */diff -u --recursive --new-file linux-2.4.27/drivers/net/bcm/5701rls.h linux-2.4.27.patch/drivers/net/bcm/5701rls.h--- linux-2.4.27/drivers/net/bcm/5701rls.h 1969-12-31 16:00:00.000000000 -0800+++ linux-2.4.27.patch/drivers/net/bcm/5701rls.h 2004-12-15 19:14:11.830242768 -0800@@ -0,0 +1,198 @@+/******************************************************************************/+/* */+/* Broadcom BCM5700 Linux Network Driver, Copyright (c) 2000 - 2004 Broadcom */+/* Corporation. */+/* All rights reserved. */+/* */+/* This program is free software; you can redistribute it and/or modify */+/* it under the terms of the GNU General Public License as published by */+/* the Free Software Foundation, located in the file LICENSE. */+/* */+/* History: */+/******************************************************************************/++typedef unsigned long U32;+int t3FwReleaseMajor = 0x0;+int t3FwReleaseMinor = 0x0;+int t3FwReleaseFix = 0x0;+U32 t3FwStartAddr = 0x08000000;+U32 t3FwTextAddr = 0x08000000;+int t3FwTextLen = 0x9c0;+U32 t3FwRodataAddr = 0x080009c0;+int t3FwRodataLen = 0x60;+U32 t3FwDataAddr = 0x08000a40;+int t3FwDataLen = 0x20;+U32 t3FwSbssAddr = 0x08000a60;+int t3FwSbssLen = 0xc;+U32 t3FwBssAddr = 0x08000a70;+int t3FwBssLen = 0x10;+U32 t3FwText[(0x9c0/4) + 1] = {+0x0, +0x10000003, 0x0, 0xd, 0xd, +0x3c1d0800, 0x37bd3ffc, 0x3a0f021, 0x3c100800, +0x26100000, 0xe000018, 0x0, 0xd, +0x3c1d0800, 0x37bd3ffc, 0x3a0f021, 0x3c100800, +0x26100034, 0xe00021c, 0x0, 0xd, +0x0, 0x0, 0x0, 0x27bdffe0, +0x3c1cc000, 0xafbf0018, 0xaf80680c, 0xe00004c, +0x241b2105, 0x97850000, 0x97870002, 0x9782002c, +0x9783002e, 0x3c040800, 0x248409c0, 0xafa00014, +0x21400, 0x621825, 0x52c00, 0xafa30010, +0x8f860010, 0xe52825, 0xe000060, 0x24070102, +0x3c02ac00, 0x34420100, 0x3c03ac01, 0x34630100, +0xaf820490, 0x3c02ffff, 0xaf820494, 0xaf830498, +0xaf82049c, 0x24020001, 0xaf825ce0, 0xe00003f, +0xaf825d00, 0xe000140, 0x0, 0x8fbf0018, +0x3e00008, 0x27bd0020, 0x2402ffff, 0xaf825404, +0x8f835400, 0x34630400, 0xaf835400, 0xaf825404, +0x3c020800, 0x24420034, 0xaf82541c, 0x3e00008, +0xaf805400, 0x0, 0x0, 0x3c020800, +0x34423000, 0x3c030800, 0x34633000, 0x3c040800, +0x348437ff, 0x3c010800, 0xac220a64, 0x24020040, +0x3c010800, 0xac220a68, 0x3c010800, 0xac200a60, +0xac600000, 0x24630004, 0x83102b, 0x5040fffd, +0xac600000, 0x3e00008, 0x0, 0x804821, +0x8faa0010, 0x3c020800, 0x8c420a60, 0x3c040800, +0x8c840a68, 0x8fab0014, 0x24430001, 0x44102b, +0x3c010800, 0xac230a60, 0x14400003, 0x4021, +0x3c010800, 0xac200a60, 0x3c020800, 0x8c420a60, +0x3c030800, 0x8c630a64, 0x91240000, 0x21140, +0x431021, 0x481021, 0x25080001, 0xa0440000, +0x29020008, 0x1440fff4, 0x25290001, 0x3c020800, +0x8c420a60, 0x3c030800, 0x8c630a64, 0x8f84680c, +0x21140, 0x431021, 0xac440008, 0xac45000c, +0xac460010, 0xac470014, 0xac4a0018, 0x3e00008, +0xac4b001c, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x2000008, +0x0, 0xa0001e3, 0x3c0a0001, 0xa0001e3, +0x3c0a0002, 0xa0001e3, 0x0, 0xa0001e3, +0x0, 0xa0001e3, 0x0, 0xa0001e3, +0x0, 0xa0001e3, 0x0, 0xa0001e3, +0x0, 0xa0001e3, 0x0, 0xa0001e3, +0x0, 0xa0001e3, 0x0, 0xa0001e3, +0x3c0a0007, 0xa0001e3, 0x3c0a0008, 0xa0001e3, +0x3c0a0009, 0xa0001e3, 0x0, 0xa0001e3, +0x0, 0xa0001e3, 0x3c0a000b, 0xa0001e3, +0x3c0a000c, 0xa0001e3, 0x3c0a000d, 0xa0001e3, +0x0, 0xa0001e3, 0x0, 0xa0001e3, +0x3c0a000e, 0xa0001e3, 0x0, 0xa0001e3, +0x0, 0xa0001e3, 0x0, 0xa0001e3, +0x0, 0xa0001e3, 0x0, 0xa0001e3, +0x0, 0xa0001e3, 0x0, 0xa0001e3, +0x0, 0xa0001e3, 0x3c0a0013, 0xa0001e3, +0x3c0a0014, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x27bdffe0, +0x1821, 0x1021, 0xafbf0018, 0xafb10014, +0xafb00010, 0x3c010800, 0x220821, 0xac200a70, +0x3c010800, 0x220821, 0xac200a74, 0x3c010800, +0x220821, 0xac200a78, 0x24630001, 0x1860fff5, +0x2442000c, 0x24110001, 0x8f906810, 0x32020004, +0x14400005, 0x24040001, 0x3c020800, 0x8c420a78, +0x18400003, 0x2021, 0xe000182, 0x0, +0x32020001, 0x10400003, 0x0, 0xe000169, +0x0, 0xa000153, 0xaf915028, 0x8fbf0018, +0x8fb10014, 0x8fb00010, 0x3e00008, 0x27bd0020, +0x3c050800, 0x8ca50a70, 0x3c060800, 0x8cc60a80, +0x3c070800, 0x8ce70a78, 0x27bdffe0, 0x3c040800, +0x248409d0, 0xafbf0018, 0xafa00010, 0xe000060, +0xafa00014, 0xe00017b, 0x2021, 0x8fbf0018, +0x3e00008, 0x27bd0020, 0x24020001, 0x8f836810, +0x821004, 0x21027, 0x621824, 0x3e00008, +0xaf836810, 0x27bdffd8, 0xafbf0024, 0x1080002e, +0xafb00020, 0x8f825cec, 0xafa20018, 0x8f825cec, +0x3c100800, 0x26100a78, 0xafa2001c, 0x34028000, +0xaf825cec, 0x8e020000, 0x18400016, 0x0, +0x3c020800, 0x94420a74, 0x8fa3001c, 0x221c0, +0xac830004, 0x8fa2001c, 0x3c010800, 0xe000201, +0xac220a74, 0x10400005, 0x0, 0x8e020000, +0x24420001, 0xa0001df, 0xae020000, 0x3c020800, +0x8c420a70, 0x21c02, 0x321c0, 0xa0001c5, +0xafa2001c, 0xe000201, 0x0, 0x1040001f, +0x0, 0x8e020000, 0x8fa3001c, 0x24420001, +0x3c010800, 0xac230a70, 0x3c010800, 0xac230a74, +0xa0001df, 0xae020000, 0x3c100800, 0x26100a78, +0x8e020000, 0x18400028, 0x0, 0xe000201, +0x0, 0x14400024, 0x0, 0x8e020000, +0x3c030800, 0x8c630a70, 0x2442ffff, 0xafa3001c, +0x18400006, 0xae020000, 0x31402, 0x221c0, +0x8c820004, 0x3c010800, 0xac220a70, 0x97a2001e, +0x2442ff00, 0x2c420300, 0x1440000b, 0x24024000, +0x3c040800, 0x248409dc, 0xafa00010, 0xafa00014, +0x8fa6001c, 0x24050008, 0xe000060, 0x3821, +0xa0001df, 0x0, 0xaf825cf8, 0x3c020800, +0x8c420a40, 0x8fa3001c, 0x24420001, 0xaf835cf8, +0x3c010800, 0xac220a40, 0x8fbf0024, 0x8fb00020, +0x3e00008, 0x27bd0028, 0x27bdffe0, 0x3c040800, +0x248409e8, 0x2821, 0x3021, 0x3821, +0xafbf0018, 0xafa00010, 0xe000060, 0xafa00014, +0x8fbf0018, 0x3e00008, 0x27bd0020, 0x8f82680c, +0x8f85680c, 0x21827, 0x3182b, 0x31823, +0x431024, 0x441021, 0xa2282b, 0x10a00006, +0x0, 0x401821, 0x8f82680c, 0x43102b, +0x1440fffd, 0x0, 0x3e00008, 0x0, +0x3c040800, 0x8c840000, 0x3c030800, 0x8c630a40, +0x64102b, 0x54400002, 0x831023, 0x641023, +0x2c420008, 0x3e00008, 0x38420001, 0x27bdffe0, +0x802821, 0x3c040800, 0x24840a00, 0x3021, +0x3821, 0xafbf0018, 0xafa00010, 0xe000060, +0xafa00014, 0xa000216, 0x0, 0x8fbf0018, +0x3e00008, 0x27bd0020, 0x0, 0x27bdffe0, +0x3c1cc000, 0xafbf0018, 0xe00004c, 0xaf80680c, +0x3c040800, 0x24840a10, 0x3802821, 0x3021, +0x3821, 0xafa00010, 0xe000060, 0xafa00014, +0x2402ffff, 0xaf825404, 0x3c0200aa, 0xe000234, +0xaf825434, 0x8fbf0018, 0x3e00008, 0x27bd0020, +0x0, 0x0, 0x0, 0x27bdffe8, +0xafb00010, 0x24100001, 0xafbf0014, 0x3c01c003, +0xac200000, 0x8f826810, 0x30422000, 0x10400003, +0x0, 0xe000246, 0x0, 0xa00023a, +0xaf905428, 0x8fbf0014, 0x8fb00010, 0x3e00008, +0x27bd0018, 0x27bdfff8, 0x8f845d0c, 0x3c0200ff, +0x3c030800, 0x8c630a50, 0x3442fff8, 0x821024, +0x1043001e, 0x3c0500ff, 0x34a5fff8, 0x3c06c003, +0x3c074000, 0x851824, 0x8c620010, 0x3c010800, +0xac230a50, 0x30420008, 0x10400005, 0x871025, +0x8cc20000, 0x24420001, 0xacc20000, 0x871025, +0xaf825d0c, 0x8fa20000, 0x24420001, 0xafa20000, +0x8fa20000, 0x8fa20000, 0x24420001, 0xafa20000, +0x8fa20000, 0x8f845d0c, 0x3c030800, 0x8c630a50, +0x851024, 0x1443ffe8, 0x851824, 0x27bd0008, +0x3e00008, 0x0, 0x0, 0x0 };+U32 t3FwRodata[(0x60/4) + 1] = {+0x35373031, 0x726c7341, 0x0, +0x0, 0x53774576, 0x656e7430, 0x0, +0x726c7045, 0x76656e74, 0x31000000, 0x556e6b6e, +0x45766e74, 0x0, 0x0, 0x0, +0x0, 0x66617461, 0x6c457272, 0x0, +0x0, 0x4d61696e, 0x43707542, 0x0, +0x0, 0x0 };+U32 t3FwData[(0x20/4) + 1] = {+0x0, 0x0, 0x0, +0x0, 0x0, 0x0, 0x0, +0x0, 0x0 };diff -u --recursive --new-file linux-2.4.27/drivers/net/bcm/Makefile linux-2.4.27.patch/drivers/net/bcm/Makefile--- linux-2.4.27/drivers/net/bcm/Makefile 1969-12-31 16:00:00.000000000 -0800+++ linux-2.4.27.patch/drivers/net/bcm/Makefile 2004-10-04 11:50:42.000000000 -0700@@ -0,0 +1,13 @@++#+# Makefile for linux/drivers/net/bcm+#++O_TARGET := bcm5700.o+obj-y := b57um.o b57proc.o tigon3.o autoneg.o 5701rls.o tcp_seg.o b57diag.o+obj-m := $(O_TARGET)++EXTRA_CFLAGS = -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256 -DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT -DINCLUDE_5701_AX_FIX=1++include $(TOPDIR)/Rules.make+diff -u --recursive --new-file linux-2.4.27/drivers/net/bcm/autoneg.c linux-2.4.27.patch/drivers/net/bcm/autoneg.c--- linux-2.4.27/drivers/net/bcm/autoneg.c 1969-12-31 16:00:00.000000000 -0800+++ linux-2.4.27.patch/drivers/net/bcm/autoneg.c 2004-12-15 19:14:11.830242768 -0800@@ -0,0 +1,438 @@+/******************************************************************************/+/* */+/* Broadcom BCM5700 Linux Network Driver, Copyright (c) 2000 - 2004 Broadcom */+/* Corporation. */+/* All rights reserved. */+/* */+/* This program is free software; you can redistribute it and/or modify */+/* it under the terms of the GNU General Public License as published by */+/* the Free Software Foundation, located in the file LICENSE. */+/* */+/* History: */+/******************************************************************************/++#if INCLUDE_TBI_SUPPORT+#include "mm.h"++++/******************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -