mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
- CFG_ETH_RX_BUFFER added.
This commit is contained in:
parent
3720878599
commit
c602883592
1 changed files with 3 additions and 6 deletions
|
@ -51,10 +51,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONFIG_EEPRO100
|
#ifdef CFG_RX_ETH_BUFFER
|
||||||
#define PKTBUFSRX 4
|
# define PKTBUFSRX CFG_RX_ETH_BUFFER
|
||||||
#else
|
#else
|
||||||
#define PKTBUFSRX 8
|
# define PKTBUFSRX 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PKTALIGN 32
|
#define PKTALIGN 32
|
||||||
|
@ -75,8 +75,6 @@ typedef void rxhand_f(uchar *, unsigned, unsigned, unsigned);
|
||||||
*/
|
*/
|
||||||
typedef void thand_f(void);
|
typedef void thand_f(void);
|
||||||
|
|
||||||
#ifdef CONFIG_NET_MULTI
|
|
||||||
|
|
||||||
#define NAMESIZE 16
|
#define NAMESIZE 16
|
||||||
|
|
||||||
enum eth_state_t {
|
enum eth_state_t {
|
||||||
|
@ -105,7 +103,6 @@ extern int eth_register(struct eth_device* dev);/* Register network device */
|
||||||
extern void eth_try_another(int first_restart); /* Change the device */
|
extern void eth_try_another(int first_restart); /* Change the device */
|
||||||
extern struct eth_device *eth_get_dev(void); /* get the current device MAC */
|
extern struct eth_device *eth_get_dev(void); /* get the current device MAC */
|
||||||
extern void eth_set_enetaddr(int num, char* a); /* Set new MAC address */
|
extern void eth_set_enetaddr(int num, char* a); /* Set new MAC address */
|
||||||
#endif
|
|
||||||
|
|
||||||
extern int eth_init(bd_t *bis); /* Initialize the device */
|
extern int eth_init(bd_t *bis); /* Initialize the device */
|
||||||
extern int eth_send(volatile void *packet, int length); /* Send a packet */
|
extern int eth_send(volatile void *packet, int length); /* Send a packet */
|
||||||
|
|
Loading…
Add table
Reference in a new issue