Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / rom / usb / classes / felsunxi / class_DoMethodA.c
blob61f8bcd70d94a5c52f5d7e66529d963b793c58fe
1 /*
2 Copyright © 2014, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #ifdef DEBUG
10 #undef DEBUG
11 #endif
12 #define DEBUG 0
14 #include "felsunxi_intern.h"
16 /*****************************************************************************
18 NAME */
20 AROS_LH2(IPTR, DoMethodA,
22 /* SYNOPSIS */
23 AROS_LHA(ULONG, methodid, D0),
24 AROS_LHA(IPTR *, methoddata, A1),
26 /* LOCATION */
27 LIBBASETYPEPTR, LIBBASE, 7, FELSunxi)
29 /* FUNCTION
31 INPUTS
33 RESULT
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 HISTORY
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 switch(methodid) {
53 case UCM_AttemptDeviceBinding:
54 mybug(-1,("FELSunxi DoMethodA AttemptDeviceBinding\n"));
55 return((IPTR) AttemptDeviceBinding(LIBBASE, (struct PsdDevice *) methoddata[0]));
56 break;
57 case UCM_ForceDeviceBinding:
58 mybug(-1,("FELSunxi DoMethodA ForceDeviceBinding\n"));
59 return((IPTR) ForceDeviceBinding(LIBBASE, (struct PsdDevice *) methoddata[0]));
60 break;
61 case UCM_ReleaseDeviceBinding:
62 mybug(-1,("FELSunxi DoMethodA ReleaseDeviceBinding\n"));
63 ReleaseDeviceBinding(LIBBASE, (struct FELSunxiDevice *) methoddata[0]);
64 return(TRUE);
65 break;
67 case UCM_AttemptInterfaceBinding:
68 mybug(-1,("FELSunxi DoMethodA AttemptInterfaceBinding\n"));
69 break;
70 case UCM_ForceInterfaceBinding:
71 mybug(-1,("FELSunxi DoMethodA ForceInterfaceBinding\n"));
72 break;
73 case UCM_ReleaseInterfaceBinding:
74 mybug(-1,("FELSunxi DoMethodA ReleaseInterfaceBinding\n"));
75 break;
77 case UCM_OpenCfgWindow:
78 mybug(-1,("FELSunxi DoMethodA OpenCfgWindow\n"));
79 break;
80 case UCM_OpenBindingCfgWindow:
81 mybug(-1,("FELSunxi DoMethodA OpenBindingCfgWindow\n"));
82 break;
83 case UCM_ConfigChangedEvent:
84 mybug(-1,("FELSunxi DoMethodA ConfigChangedEvent\n"));
85 break;
87 default:
88 mybug(-1,("FELSunxi DoMethodA default\n"));
89 break;
92 return(0);
93 AROS_LIBFUNC_EXIT
95 } /* DoMethodA */