Moved MAC and ethernet definitions to include/net/ethernet.h

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@443 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2007-12-11 14:28:16 +00:00
parent ea50c50b47
commit 23e67efbbd
16 changed files with 137 additions and 52 deletions
+3 -2
View File
@@ -61,6 +61,7 @@
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <net/ethernet.h>
#include <net/uip/uip.h>
#include <net/uip/uip-arp.h>
#include <net/uip/uip-arch.h>
@@ -1725,8 +1726,8 @@ int dm9x_initialize(void)
/* Read the MAC address */
mptr = g_dm9x[0].dm_dev.d_mac.addr;
for (i = 0, j = DM9X_PAB0; i < 6; i++, j++)
mptr = g_dm9x[0].dm_dev.d_mac.ether_addr_octet;
for (i = 0, j = DM9X_PAB0; i < ETHER_ADDR_LEN; i++, j++)
{
mptr[i] = getreg(j);
}
+1 -1
View File
@@ -581,7 +581,7 @@ int skel_initialize(void)
g_skel[0].sk_txpoll = wd_create(); /* Create periodic poll timer */
g_skel[0].sk_txtimeout = wd_create(); /* Create TX timeout timer */
/* Read the MAC address from the hardware into g_skel[0].sk_dev.d_mac.addr */
/* Read the MAC address from the hardware into g_skel[0].sk_dev.d_mac.ether_addr_octet */
/* Register the device with the OS so that socket IOCTLs can be performed */