mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user