Changeset c7137738 in mainline for uspace/lib/usb/hcd.c


Ignore:
Timestamp:
2010-11-15T14:52:43Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3f0a7971
Parents:
7494fb4
Message:

DDF proposal

Proposal for new API using the device driver framework.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/hcd.c

    r7494fb4 rc7137738  
    5858#define NAMESPACE "usb"
    5959
    60 /** String representation for USB transfer type. */
    61 const char * usb_str_transfer_type(usb_transfer_type_t t)
    62 {
    63         switch (t) {
    64                 case USB_TRANSFER_ISOCHRONOUS:
    65                         return "isochronous";
    66                 case USB_TRANSFER_INTERRUPT:
    67                         return "interrupt";
    68                 case USB_TRANSFER_CONTROL:
    69                         return "control";
    70                 case USB_TRANSFER_BULK:
    71                         return "bulk";
    72                 default:
    73                         return "unknown";
    74         }
    75 }
    7660
    7761/** String representation of USB transaction outcome. */
Note: See TracChangeset for help on using the changeset viewer.