Changeset 00c18bc in mainline


Ignore:
Timestamp:
2011-03-20T23:39:40Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f0fdc7d
Parents:
33577f81 (diff), 2211125e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Add USB fallback driver

The purpose of it is to see all USB devices in the system.

Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • .bzrignore

    r33577f81 r00c18bc  
    8888./uspace/drv/uhci-hcd/uhci-hcd
    8989./uspace/drv/uhci-rhd/uhci-rhd
     90./uspace/drv/usbflbk/usbflbk
    9091./uspace/drv/usbhub/usbhub
    9192./uspace/drv/usbhid/usbhid
  • boot/arch/amd64/Makefile.inc

    r33577f81 r00c18bc  
    4747        uhci-hcd \
    4848        uhci-rhd \
     49        usbflbk \
    4950        usbhub \
    5051        usbhid \
  • uspace/Makefile

    r33577f81 r00c18bc  
    121121                drv/uhci-hcd \
    122122                drv/uhci-rhd \
     123                drv/usbflbk \
    123124                drv/usbhid \
    124125                drv/usbhub \
     
    140141                drv/uhci-hcd \
    141142                drv/uhci-rhd \
     143                drv/usbflbk \
    142144                drv/usbhid \
    143145                drv/usbhub \
  • uspace/app/usbinfo/info.c

    r33577f81 r00c18bc  
    109109    usb_standard_device_descriptor_t *descriptor)
    110110{
    111         printf("%sDevice (0x%04x by 0x%04x, %s)\n", prefix,
     111        printf("%sDevice (0x%04x by 0x%04x, %s, %zu configurations)\n", prefix,
    112112            (int) descriptor->product_id,
    113113            (int) descriptor->vendor_id,
    114             usb_str_class(descriptor->device_class));
     114            usb_str_class(descriptor->device_class),
     115            (size_t) descriptor->configuration_count);
    115116}
    116117
     
    118119    usb_standard_configuration_descriptor_t *descriptor)
    119120{
    120         printf("%sConfiguration #%d\n", prefix,
    121             (int) descriptor->configuration_number);
     121        printf("%sConfiguration #%d (%zu interfaces)\n", prefix,
     122            (int) descriptor->configuration_number,
     123            (size_t) descriptor->interface_count);
    122124}
    123125
     
    125127    usb_standard_interface_descriptor_t *descriptor)
    126128{
    127         printf("%sInterface #%d (%s, 0x%02x, 0x%02x)\n", prefix,
     129        printf("%sInterface #%d (%s, 0x%02x, 0x%02x), alternate %d\n", prefix,
    128130            (int) descriptor->interface_number,
    129131            usb_str_class(descriptor->interface_class),
    130132            (int) descriptor->interface_subclass,
    131             (int) descriptor->interface_protocol);
     133            (int) descriptor->interface_protocol,
     134            (int) descriptor->alternate_setting);
    132135}
    133136
  • uspace/doc/doxygroups.h

    r33577f81 r00c18bc  
    274274         */
    275275
    276 
     276        /**
     277         * @defgroup drvusbfallback USB fallback driver.
     278         * @ingroup usb
     279         * @brief Fallback driver for any USB device.
     280         * @details
     281         * The purpose of this driver is to simplify querying of unknown
     282         * devices from within HelenOS (without a driver, no node at all
     283         * may appear under /dev/devices).
     284         */
     285
     286
  • uspace/lib/usb/src/recognise.c

    r33577f81 r00c18bc  
    247247#undef VENDOR_ONLY_FMT
    248248#undef VENDOR_ONLY_ARGS
     249
     250        /* As a last resort, try fallback driver. */
     251        ADD_MATCHID_OR_RETURN(matches, 10, "usb&interface&fallback");
    249252
    250253        return EOK;
     
    291294        }
    292295       
     296        /* As a last resort, try fallback driver. */
     297        ADD_MATCHID_OR_RETURN(matches, 10, "usb&fallback");
     298
    293299        return EOK;
    294300}
Note: See TracChangeset for help on using the changeset viewer.