Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/dp.c

    r0f21c0c r5ccb15c  
    3737#include <str_error.h>
    3838#include <errno.h>
    39 #include <assert.h>
     39#include <usb/usbdrv.h>
    4040#include <bool.h>
    4141#include <usb/dp.h>
    42 #include <usb/descriptor.h>
    43 
    44 #define NESTING(parentname, childname) \
    45         { \
    46                 .child = USB_DESCTYPE_##childname, \
    47                 .parent = USB_DESCTYPE_##parentname, \
    48         }
    49 #define LAST_NESTING { -1, -1 }
    50 
    51 /** Nesting of standard USB descriptors. */
    52 usb_dp_descriptor_nesting_t usb_dp_standard_descriptor_nesting[] = {
    53         NESTING(CONFIGURATION, INTERFACE),
    54         NESTING(INTERFACE, ENDPOINT),
    55         NESTING(INTERFACE, HUB),
    56         NESTING(INTERFACE, HID),
    57         NESTING(HID, HID_REPORT),
    58         LAST_NESTING
    59 };
    60 
    61 #undef NESTING
    62 #undef LAST_NESTING
    6342
    6443/** Tells whether pointer points inside descriptor data.
     
    6645 * @param data Parser data.
    6746 * @param ptr Pointer to be verified.
    68  * @return Whether @p ptr points inside <code>data->data</code> field.
     47 * @return Whether @ptr points inside <code>data->data</code> field.
    6948 */
    7049static bool is_valid_descriptor_pointer(usb_dp_parser_data_t *data,
Note: See TracChangeset for help on using the changeset viewer.