X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/62588ba2fadc712510b3f858aef8ace2d93e33fa..0d6d67e4b9f702284357cebd6d9709828b6f89da:/target/linux/cns3xxx/patches/051-cns3xxx_gigabit.patch diff --git a/target/linux/cns3xxx/patches/051-cns3xxx_gigabit.patch b/target/linux/cns3xxx/patches/051-cns3xxx_gigabit.patch index ddc499e77..cf67e92dd 100644 --- a/target/linux/cns3xxx/patches/051-cns3xxx_gigabit.patch +++ b/target/linux/cns3xxx/patches/051-cns3xxx_gigabit.patch @@ -44,12 +44,14 @@ +#include +#include +#include ++#include +#include +#include +#include +#include +#include -+#include ++#include ++#include + +#define DRV_NAME "cns3xxx_eth" + @@ -212,7 +214,6 @@ + u8 alignment[16]; /* for 32 byte alignment */ +}; + -+ +struct switch_regs { + u32 phy_control; + u32 phy_auto_addr; @@ -439,7 +440,6 @@ + return (IRQ_HANDLED); +} + -+ +static void cns3xxx_alloc_rx_buf(struct sw *sw, int received) +{ + struct _rx_ring *rx_ring = sw->rx_ring; @@ -1297,15 +1297,6 @@ +MODULE_DESCRIPTION("Cavium CNS3xxx Ethernet driver"); +MODULE_LICENSE("GPL v2"); +MODULE_ALIAS("platform:cns3xxx_eth"); ---- a/arch/arm/mach-cns3xxx/include/mach/hardware.h -+++ b/arch/arm/mach-cns3xxx/include/mach/hardware.h -@@ -19,4 +19,6 @@ - #define PCIBIOS_MIN_MEM 0x00000000 - #define pcibios_assign_all_busses() 1 - -+#include "platform.h" -+ - #endif --- /dev/null +++ b/arch/arm/mach-cns3xxx/include/mach/platform.h @@ -0,0 +1,26 @@