Fixed compatibility of output.
[AROS.git] / rom / usb / classes / felsunxi / felsunxi_intern.h
blob1d3a579b94ddc8bcc15ce6a070234291a2cb9206
1 /*
2 Copyright © 2014, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #ifndef FELSUNXI_INTERN_H
9 #define FELSUNXI_INTERN_H
11 #include <aros/debug.h>
13 #include <exec/types.h>
14 #include <devices/usb.h>
15 #include <devices/usbhardware.h>
16 #include <libraries/usbclass.h>
17 #include <libraries/poseidon.h>
18 #include <proto/poseidon.h>
20 #include LC_LIBDEFS_FILE
22 #define MYBUG_LEVEL 1
23 #define mybug(l, x) D(if ((l>=MYBUG_LEVEL)||(l==-1)) { do { { bug x; } } while (0); } )
24 #define mybug_unit(l, x) D(if ((l>=MYBUG_LEVEL)||(l==-1)) { do { { bug("%s %s: ", unit->name, __FUNCTION__); bug x; } } while (0); } )
26 struct FELSunxiDevice {
27 struct Node node;
29 struct PsdDevice *pd;
31 struct Library *ps;
32 struct Library *MUIMasterBase;
34 LONG readysignal;
35 struct Task *readysigtask;
37 struct Task *felsunxitask;
40 struct FELSunxiBase {
41 struct Library library;
44 struct FELSunxiDevice * AttemptDeviceBinding(LIBBASETYPEPTR LIBBASE, struct PsdDevice *pd);
45 struct FELSunxiDevice * ForceDeviceBinding(LIBBASETYPEPTR LIBBASE, struct PsdDevice *pd);
46 void ReleaseDeviceBinding(LIBBASETYPEPTR LIBBASE, struct FELSunxiDevice *FELSunxiDevice);
48 AROS_UFP0(void, FELSunxiTask);
50 #endif /* FELSUNXI_INTERN_H */