grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / usb / classes / moschipeth / moschipeth.class.h
bloba5b5583c2c0c3b4e5dccd232954d47ed76efc370
1 #ifndef MOSCHIPETH_CLASS_H
2 #define MOSCHIPETH_CLASS_H
4 /*
5 *----------------------------------------------------------------------------
6 * Includes for moschipeth class
7 *----------------------------------------------------------------------------
8 * By Chris Hodges <chrisly@platon42.de>
9 */
11 #include "common.h"
13 #include <devices/sana2.h>
14 #include <devices/sana2specialstats.h>
15 #include <libraries/gadtools.h>
17 #include <devices/newstyle.h>
19 #include <string.h>
20 #include <stddef.h>
21 #include <stdio.h>
23 #include "moschipeth.h"
24 #include "dev.h"
26 /* Protos */
28 struct NepClassEth * usbAttemptDeviceBinding(struct NepEthBase *nh, struct PsdDevice *pd);
29 struct NepClassEth * usbForceDeviceBinding(struct NepEthBase *nh, struct PsdDevice *pd);
30 void usbReleaseDeviceBinding(struct NepEthBase *nh, struct NepClassEth *ncp);
32 struct NepClassEth * nAllocEth(void);
33 void nFreeEth(struct NepClassEth *ncp);
35 BOOL nReadEEPROMMAC(struct NepClassEth *ncp, UBYTE *macptr);
36 LONG nReadPhyWord(struct NepClassEth *ncp, ULONG phyid, ULONG phyreg);
37 BOOL nWritePhyWord(struct NepClassEth *ncp, ULONG phyid, ULONG phyreg, ULONG value);
39 BOOL nInitMCS(struct NepClassEth *ncp);
40 void nSetOnline(struct NepClassEth *ncp);
41 void nUpdateRXMode(struct NepClassEth *ncp);
43 void nDoEvent(struct NepClassEth *ncp, ULONG events);
44 BOOL nWritePacket(struct NepClassEth *ncp, struct IOSana2Req *ioreq);
45 BOOL nReadPacket(struct NepClassEth *ncp, UBYTE *pktptr, ULONG len);
47 BOOL nLoadClassConfig(struct NepEthBase *nh);
48 BOOL nLoadBindingConfig(struct NepClassEth *ncp);
49 LONG nOpenBindingCfgWindow(struct NepEthBase *nh, struct NepClassEth *ncp);
51 void nGUITaskCleanup(struct NepClassEth *nh);
53 AROS_UFP0(void, nEthTask);
54 AROS_UFP0(void, nGUITask);
56 #endif /* MOSCHIPETH_CLASS_H */