mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
arch/: Adapt all Ethernet drivers to work as though CONFIG_NET_MULTIBUFFER were set. Remove all references to CONFIG_NET_MULTIBUFFER
This commit is contained in:
@@ -140,6 +140,12 @@ struct misoc_net_driver_s
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/* A single packet buffer is used */
|
||||
|
||||
static uint8_t g_pktbuf[MAX_NET_DEV_MTU + CONFIG_NET_GUARDSIZE];
|
||||
|
||||
/* Driver state structur */
|
||||
|
||||
static struct misoc_net_driver_s g_misoc_net[CONFIG_MISOC_NET_NINTERFACES];
|
||||
|
||||
/****************************************************************************
|
||||
@@ -1333,6 +1339,7 @@ int misoc_net_initialize(int intf)
|
||||
priv->tx_buf = priv->tx0_buf;
|
||||
priv->tx_slot=0;
|
||||
|
||||
priv->misoc_net_dev.d_buf = g_pktbuf; /* Single packet buffer */
|
||||
priv->misoc_net_dev.d_ifup = misoc_net_ifup; /* I/F up (new IP address) callback */
|
||||
priv->misoc_net_dev.d_ifdown = misoc_net_ifdown; /* I/F down callback */
|
||||
priv->misoc_net_dev.d_txavail = misoc_net_txavail; /* New TX data callback */
|
||||
|
||||
Reference in New Issue
Block a user