2 Copyright © 2014, The AROS Development Team. All rights reserved.
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
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
{
32 struct Library
*MUIMasterBase
;
35 struct Task
*readysigtask
;
37 struct Task
*felsunxitask
;
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 */