Fixed compatibility of output.
[AROS.git] / rom / usb / classes / rndis / rndis.class.h
blob862bbb7747df5bede1866a331f68f89ce8960194
1 /*
2 * $Id$
3 */
5 #ifndef RNDIS_CLASS_H
6 #define RNDIS_CLASS_H
8 /*
9 *----------------------------------------------------------------------------
10 * Includes for rndis class
11 *----------------------------------------------------------------------------
14 #include "common.h"
16 #include <devices/sana2.h>
17 #include <devices/sana2specialstats.h>
18 #include <libraries/gadtools.h>
20 #include <devices/newstyle.h>
22 #include <string.h>
23 #include <stddef.h>
24 #include <stdio.h>
26 #include "if_urndisreg.h"
27 #include "rndis.h"
28 #include "dev.h"
30 /* Protos */
32 struct NepClassEth * usbAttemptDeviceBinding(struct NepEthBase *nh, struct PsdDevice *pd);
33 struct NepClassEth * usbForceDeviceBinding(struct NepEthBase *nh, struct PsdDevice *pd);
34 void usbReleaseDeviceBinding(struct NepEthBase *nh, struct NepClassEth *ncp);
36 struct NepClassEth * nAllocEth(void);
37 void nFreeEth(struct NepClassEth *ncp);
39 void nSetOnline(struct NepClassEth *ncp);
41 void nDoEvent(struct NepClassEth *ncp, ULONG events);
42 BOOL nWritePacket(struct NepClassEth *ncp, struct IOSana2Req *ioreq);
43 BOOL nReadPacket(struct NepClassEth *ncp, UBYTE *pktptr, ULONG len);
45 //BOOL nLoadClassConfig(struct NepEthBase *nh);
46 //BOOL nLoadBindingConfig(struct NepClassEth *ncp);
47 //LONG nOpenBindingCfgWindow(struct NepEthBase *nh, struct NepClassEth *ncp);
48 //void nGUITaskCleanup(struct NepClassEth *nh);
50 uint32_t urndis_ctrl_init(struct NepClassEth *ncp);
51 uint32_t urndis_ctrl_handle(struct NepClassEth *ncp, struct urndis_comp_hdr *hdr,void **buf, size_t *bufsz);
52 void urndis_attach(struct NepClassEth *ncp);
53 long urndis_encap(struct NepClassEth *ncp, BYTE *m,LONG len );
54 void urndis_decap(struct NepClassEth *ncp, const UBYTE *buf, const LONG datalen);
56 AROS_UFP0(void, nEthTask);
57 //AROS_UFP0(void, nGUITask);
59 #endif /* RNDIS_CLASS_H */