Revision 6e625fc7 hw/usb-desc.h

b/hw/usb-desc.h
30 30
    uint8_t                   bmAttributes;
31 31
    uint8_t                   bMaxPower;
32 32

  
33
    /* grouped interfaces */
34
    uint8_t                   nif_groups;
35
    const USBDescIfaceAssoc   *if_groups;
36

  
37
    /* "normal" interfaces */
38
    uint8_t                   nif;
39
    const USBDescIface        *ifs;
40
};
41

  
42
/* conceptually an Interface Association Descriptor, and releated interfaces */
43
struct USBDescIfaceAssoc {
44
    uint8_t                   bFirstInterface;
45
    uint8_t                   bInterfaceCount;
46
    uint8_t                   bFunctionClass;
47
    uint8_t                   bFunctionSubClass;
48
    uint8_t                   bFunctionProtocol;
49
    uint8_t                   iFunction;
50

  
33 51
    uint8_t                   nif;
34 52
    const USBDescIface        *ifs;
35 53
};
......
75 93
int usb_desc_device_qualifier(const USBDescDevice *dev,
76 94
                              uint8_t *dest, size_t len);
77 95
int usb_desc_config(const USBDescConfig *conf, uint8_t *dest, size_t len);
96
int usb_desc_iface_group(const USBDescIfaceAssoc *iad, uint8_t *dest,
97
                         size_t len);
78 98
int usb_desc_iface(const USBDescIface *iface, uint8_t *dest, size_t len);
79 99
int usb_desc_endpoint(const USBDescEndpoint *ep, uint8_t *dest, size_t len);
80 100
int usb_desc_other(const USBDescOther *desc, uint8_t *dest, size_t len);

Also available in: Unified diff