GMAC (Ethernet MAC) driver configuration file.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
#include "gmac.h"
#define ETH_PHY_MODE GMAC_PHY_RMII |
Ethernet MII/RMII mode.
Referenced by ethernet_phy_auto_negotiate().
#define ETHERNET_CONF_ETHADDR0 0x00 |
MAC address definition.
The MAC address must be unique on the network.
#define ETHERNET_CONF_ETHADDR1 0x04 |
#define ETHERNET_CONF_ETHADDR2 0x25 |
#define ETHERNET_CONF_ETHADDR3 0x1C |
#define ETHERNET_CONF_ETHADDR4 0xA0 |
#define ETHERNET_CONF_ETHADDR5 0x02 |
#define ETHERNET_CONF_GATEWAY_ADDR0 192 |
WAN gateway: 192.168.0.250.
The gateway address being used.
#define ETHERNET_CONF_GATEWAY_ADDR1 168 |
#define ETHERNET_CONF_GATEWAY_ADDR2 0 |
#define ETHERNET_CONF_GATEWAY_ADDR3 250 |
#define ETHERNET_CONF_IPADDR0 192 |
WAN Address: 192.168.0.2.
#define ETHERNET_CONF_IPADDR1 168 |
#define ETHERNET_CONF_IPADDR2 0 |
#define ETHERNET_CONF_IPADDR3 2 |
#define ETHERNET_CONF_NET_MASK0 255 |
The network mask being used.
#define ETHERNET_CONF_NET_MASK1 255 |
#define ETHERNET_CONF_NET_MASK2 255 |
#define ETHERNET_CONF_NET_MASK3 0 |
#define GMAC_RX_BUFFERS 16 |
Number of buffer for RX.
Referenced by gmac_init_queue().
#define GMAC_TX_BUFFERS 16 |
Number of buffer for TX.
Referenced by gmac_init_queue().
#define MAC_PHY_RETRY_MAX 1000000 |
MAC PHY operation max retry count.
Referenced by gmac_phy_read(), and gmac_phy_write().