Changeset c7137738 in mainline for uspace


Ignore:
Timestamp:
2010-11-15T14:52:43Z (15 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.

Location:
uspace
Files:
10 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    r7494fb4 rc7137738  
    120120        DIRS += drv/isa
    121121        DIRS += drv/ns8250
     122        DIRS += drv/uhci
     123        DIRS += drv/usbkbd
    122124endif
    123125
  • uspace/lib/usb/Makefile

    r7494fb4 rc7137738  
    2929USPACE_PREFIX = ../..
    3030LIBRARY = libusb
     31LIBS = $(LIBDRV_PREFIX)/libdrv.a
     32EXTRA_CFLAGS += -I$(LIBDRV_PREFIX)/include
    3133
    3234SOURCES = \
    3335        hcd.c \
    34         usb.c
     36        hcdhubd.c \
     37        usb.c \
     38        usbdrv.c
    3539
    3640include $(USPACE_PREFIX)/Makefile.common
  • 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.