diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2007-12-07 15:19:00 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2007-12-07 15:19:00 +0000 |
commit | a2e426d7c7cb6d47de707eb915078397c470c495 (patch) | |
tree | 3035b20294a6de4a7cefc5a9cbddbbe0ed855e02 /nuttx/arch/arm/src/c5471 | |
parent | 1c9bf961a6418679dfc10a4399e2fc571284ddc0 (diff) |
C5471 ethernet driver functional (but sensitive)
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@432 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/arm/src/c5471')
-rw-r--r-- | nuttx/arch/arm/src/c5471/c5471_ethernet.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/nuttx/arch/arm/src/c5471/c5471_ethernet.c b/nuttx/arch/arm/src/c5471/c5471_ethernet.c index 8ec28a7854..5bf696680b 100644 --- a/nuttx/arch/arm/src/c5471/c5471_ethernet.c +++ b/nuttx/arch/arm/src/c5471/c5471_ethernet.c @@ -238,8 +238,8 @@ #define ENET_ADR_PROMISCUOUS 0x00000008 /* Bit 3: Enable snoop address comparison */ #define ENET_ADR_BROADCAST 0x00000004 /* Bit 2: Enable broadcast address comparison */ -#define ENET_ADDR_LCOMPARE 0x00000001 /* Bit 1: Enable logical address comparison */ -#define ENET_ADDR_PCOMPARE 0x00000001 /* Bit 0: Enable physical address comparison */ +#define ENET_ADDR_LCOMPARE 0x00000002 /* Bit 1: Enable logical address comparison */ +#define ENET_ADDR_PCOMPARE 0x00000001 /* Bit 0: Enable physical address comparison */ /* ENET0_MODE bit settings */ /* Bits 16-31: reserved */ @@ -1206,7 +1206,7 @@ static void c5471_receive(struct c5471_driver_s *c5471) { /* Get the packet memory from words #2 and #3 of descriptor */ - packetmem = (uint16*)getreg32(c5471->c_txcpudesc + sizeof(uint32)); + packetmem = (uint16*)getreg32(c5471->c_txcpudesc + sizeof(uint32)); /* Divide by 2 with round up to get the number of 16-bit words. */ @@ -1321,8 +1321,6 @@ static void c5471_receive(struct c5471_driver_s *c5471) c5471->c_rxdropped++; } #endif - - } /**************************************************************************** @@ -1849,7 +1847,7 @@ static void c5471_eimconfig(struct c5471_driver_s *c5471) putreg32(pbuf, desc); desc += sizeof(uint32); - putreg32(0, pbuf);; + putreg32(0, pbuf); pbuf += EIM_PACKET_BYTES; putreg32(0, pbuf); @@ -1875,10 +1873,10 @@ static void c5471_eimconfig(struct c5471_driver_s *c5471) putreg32(pbuf, desc); desc += sizeof(uint32); - putreg32(0, pbuf);; + putreg32(0, pbuf); pbuf += EIM_PACKET_BYTES; - putreg32(0, pbuf);; + putreg32(0, pbuf); pbuf += sizeof(uint32); /* Ether Module's "Buffer Usage Word" */ } @@ -1933,10 +1931,10 @@ static void c5471_eimconfig(struct c5471_driver_s *c5471) putreg32(pbuf, desc); desc += sizeof(uint32); - putreg32(0, pbuf);; + putreg32(0, pbuf); pbuf += EIM_PACKET_BYTES; - putreg32(0, pbuf);; + putreg32(0, pbuf); pbuf += sizeof(uint32); /* Ether Module's "Buffer Usage Word" */ } ndbg("END desc: %08x pbuf: %08x\n", desc, pbuf); |