1 #ifndef ASIXETH_CLASS_H
2 #define ASIXETH_CLASS_H
5 *----------------------------------------------------------------------------
6 * Includes for asixeth class
7 *----------------------------------------------------------------------------
8 * By Chris Hodges <chrisly@platon42.de>
13 #include <libraries/gadtools.h>
14 #include <libraries/mui.h>
16 #include <devices/newstyle.h>
27 struct NepClassEth
* usbAttemptDeviceBinding(struct NepEthBase
*nh
, struct PsdDevice
*pd
);
28 struct NepClassEth
* usbForceDeviceBinding(struct NepEthBase
*nh
, struct PsdDevice
*pd
);
29 void usbReleaseDeviceBinding(struct NepEthBase
*nh
, struct NepClassEth
*ncp
);
31 struct NepClassEth
* nAllocEth(void);
32 void nFreeEth(struct NepClassEth
*ncp
);
34 BOOL
nReadEEPROMMAC(struct NepClassEth
*ncp
, UBYTE
*macptr
);
35 LONG
nReadPhyWord(struct NepClassEth
*ncp
, ULONG phyid
, ULONG phyreg
);
36 BOOL
nWritePhyWord(struct NepClassEth
*ncp
, ULONG phyid
, ULONG phyreg
, ULONG value
);
38 BOOL
nInitASIX(struct NepClassEth
*ncp
);
39 void nSetOnline(struct NepClassEth
*ncp
);
40 void nUpdateRXMode(struct NepClassEth
*ncp
);
42 void nDoEvent(struct NepClassEth
*ncp
, ULONG events
);
43 BOOL
nWritePacket(struct NepClassEth
*ncp
, struct IOSana2Req
*ioreq
);
44 BOOL
nReadPacket(struct NepClassEth
*ncp
, UBYTE
*pktptr
, ULONG len
);
46 BOOL
nLoadClassConfig(struct NepEthBase
*nh
);
47 BOOL
nLoadBindingConfig(struct NepClassEth
*ncp
);
48 LONG
nOpenBindingCfgWindow(struct NepEthBase
*nh
, struct NepClassEth
*ncp
);
50 void nGUITaskCleanup(struct NepClassEth
*nh
);
52 AROS_UFP0(void, nEthTask
);
53 AROS_UFP0(void, nGUITask
);
55 #endif /* ASIXETH_CLASS_H */