Add rtask module.
[bertos.git] / bertos / drv / eth.h
index 57ce35f41e819ee344b32b5965e1a7f9a58f54e0..ed2413839b02c508875c8e2cf6ed90187b50a424 100644 (file)
  * $WIZ$ module_name = "eth"
  * $WIZ$ module_configuration = "bertos/cfg/cfg_eth.h"
  * $WIZ$ module_supports = "at91sam7x or sam3x"
- * $WIZ$ module_depends = "timer"
+ * $WIZ$ module_hw = "bertos/hw/hw_eth.h", "bertos/hw/hw_eth.c"
  */
 
 #ifndef DRV_ETH_H
 #define DRV_ETH_H
 
+#include "hw/hw_eth.h"
+#include "cfg/cfg_eth.h"
+
+#include <drv/phy.h>
+
 #include <cpu/types.h>
 
+
 #define ETH_ADDR_LEN   6
 #define ETH_HEAD_LEN   14
 #define ETH_DATA_LEN   1500
 #define ETH_FRAME_LEN  (ETH_HEAD_LEN + ETH_DATA_LEN)
-
-#define ETH_TYPE_IP    0x0800
+#define ETH_TYPE_IP     0x0800
 
 typedef union Ethernet
 {
@@ -131,6 +136,4 @@ ssize_t eth_recv(uint8_t *buf, size_t len);
 
 int eth_init(void);
 
-extern const uint8_t mac_addr[ETH_ADDR_LEN];
-
 #endif /* DRV_ETH_H */