X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Feth.h;h=57ce35f41e819ee344b32b5965e1a7f9a58f54e0;hb=6b99bcc45c4e6fb69c597b0f5fa9532b1db711cf;hp=3caacb59c725f7ac0d65433a896976985e3ae7ca;hpb=27b6bdaf73e1e61b8ab8760547b68929e7be8837;p=bertos.git diff --git a/bertos/drv/eth.h b/bertos/drv/eth.h index 3caacb59..57ce35f4 100644 --- a/bertos/drv/eth.h +++ b/bertos/drv/eth.h @@ -36,7 +36,8 @@ * * $WIZ$ module_name = "eth" * $WIZ$ module_configuration = "bertos/cfg/cfg_eth.h" - * $WIZ$ module_supports = "at91sam7x" + * $WIZ$ module_supports = "at91sam7x or sam3x" + * $WIZ$ module_depends = "timer" */ #ifndef DRV_ETH_H @@ -119,10 +120,17 @@ INLINE bool eth_addrCmp(const uint8_t *addr1, const uint8_t *addr2) (addr1[5] ^ addr2[5])); } +ssize_t eth_putFrame(const uint8_t *buf, size_t len); +void eth_sendFrame(void); + +size_t eth_getFrameLen(void); +ssize_t eth_getFrame(uint8_t *buf, size_t len); + ssize_t eth_send(const uint8_t *buf, size_t len); ssize_t eth_recv(uint8_t *buf, size_t len); + int eth_init(void); -extern uint8_t mac_addr[ETH_ADDR_LEN]; +extern const uint8_t mac_addr[ETH_ADDR_LEN]; #endif /* DRV_ETH_H */