Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / rom / usb / classes / davicometh / dm9601eth.class.h
blob5d036b0a7c941d6adb994f169b66c45f587b1545
1 #ifndef DM9601ETH_CLASS_H
2 #define DM9601ETH_CLASS_H
4 /*
5 *----------------------------------------------------------------------------
6 * Includes for dm9601eth 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 "dm9601eth.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 LONG nReadDMReg(struct NepClassEth *ncp, ULONG reg);
36 LONG nReadDMRegs(struct NepClassEth *ncp, UBYTE *data, ULONG len, ULONG offset);
37 LONG nWriteDMReg(struct NepClassEth *ncp, ULONG reg, ULONG value);
38 LONG nWriteDMRegs(struct NepClassEth *ncp, UBYTE *data, ULONG len, ULONG offset);
39 BOOL nReadEEPROMMAC(struct NepClassEth *ncp, UBYTE *macptr);
40 LONG nReadPhyWord(struct NepClassEth *ncp, ULONG phyreg);
41 BOOL nWritePhyWord(struct NepClassEth *ncp, ULONG phyreg, ULONG value);
43 BOOL nInitDavicom(struct NepClassEth *ncp);
44 void nSetOnline(struct NepClassEth *ncp);
46 void nDoEvent(struct NepClassEth *ncp, ULONG events);
47 BOOL nWritePacket(struct NepClassEth *ncp, struct IOSana2Req *ioreq);
48 BOOL nReadPacket(struct NepClassEth *ncp, UBYTE *pktptr, ULONG len);
50 BOOL nLoadClassConfig(struct NepEthBase *nh);
51 BOOL nLoadBindingConfig(struct NepClassEth *ncp);
52 LONG nOpenBindingCfgWindow(struct NepEthBase *nh, struct NepClassEth *ncp);
54 void nGUITaskCleanup(struct NepClassEth *nh);
56 AROS_UFP0(void, nEthTask);
57 AROS_UFP0(void, nGUITask);
59 #endif /* DM9601ETH_CLASS_H */