Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / rom / usb / classes / felsunxi / class_GetAttrsA.c
blob5090bb33949b2360868f911b9cacc89f836cf8f2
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_LH3(ULONG, GetAttrsA,
22 /* SYNOPSIS */
23 AROS_LHA(ULONG, type, D0),
24 AROS_LHA(APTR, usbstruct, A0),
25 AROS_LHA(struct TagItem *, taglist, D0),
27 /* LOCATION */
28 LIBBASETYPEPTR, FELSunxiBase, 5, FELSunxi)
30 /* FUNCTION
32 INPUTS
34 RESULT
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
44 INTERNALS
46 HISTORY
48 *****************************************************************************/
50 AROS_LIBFUNC_INIT
52 struct TagItem *tag;
53 ULONG count = 0;
55 switch(type) {
56 case UGA_CLASS: {
57 while((tag = LibNextTagItem(&taglist)) != NULL) {
58 switch (tag->ti_Tag) {
59 case UCCA_Description:
60 *((STRPTR *) tag->ti_Data) = "Support for Allwinner FEL mode";
61 count++;
62 break;
65 break;
68 case UGA_BINDING: {
69 while((tag = LibNextTagItem(&taglist)) != NULL) {
70 switch (tag->ti_Tag) {
71 case UCBA_UsingDefaultCfg:
72 //*((IPTR *) tag->ti_Data) = ((struct NepClassHid *) usbstruct)->nch_UsingDefaultCfg;
73 //*((IPTR *) tag->ti_Data) = 0;
74 //count++;
75 break;
78 break;
83 return count;
84 AROS_LIBFUNC_EXIT
86 } /* GetAttrsA */