Modules/USB - Working on USB support again
[tpg/acess2.git] / Modules / IPStack / link.h
1 /*
2  * Acess2 IP Stack
3  * - Link/Media Layer Header
4  */
5 #ifndef _LINK_H_
6 #define _LINK_H_
7
8 // === EXTERNAL ===
9 typedef void (*tPacketCallback)(tAdapter *Interface, tMacAddr From, int Length, void *Buffer);
10
11 extern void     Link_RegisterType(Uint16 Type, tPacketCallback Callback);
12 extern void     Link_SendPacket(tAdapter *Interface, Uint16 Type, tMacAddr To, int Length, void *Buffer);
13 extern void     Link_WatchDevice(tAdapter *Adapter);
14
15 // === INTERNAL ===
16 typedef struct sEthernetHeader  tEthernetHeader;
17 typedef struct sEthernetFooter  tEthernetFooter;
18 struct sEthernetHeader {
19         tMacAddr        Dest;
20         tMacAddr        Src;
21         Uint16  Type;
22         Uint8   Data[];
23 };
24
25 struct sEthernetFooter {
26         //Uint32        CRC;
27 };
28
29 #endif

UCC git Repository :: git.ucc.asn.au