Changeset 1669a73 in mainline


Ignore:
Timestamp:
2011-02-04T13:05:23Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd455b1
Parents:
1f5c1e61
Message:

Minor refactoring

Location:
uspace/drv/uhci-hcd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/Makefile

    r1f5c1e61 r1669a73  
    4040        uhci.c \
    4141        uhci_struct/transfer_descriptor.c \
    42         pci.c
     42        pci.c 
    4343
    4444include $(USPACE_PREFIX)/Makefile.common
  • uspace/drv/uhci-hcd/iface.c

    r1f5c1e61 r1669a73  
    3535#include <remote_usbhc.h>
    3636
     37#include <usb/debug.h>
     38
    3739#include <errno.h>
    3840
  • uspace/drv/uhci-hcd/uhci.c

    r1f5c1e61 r1669a73  
    148148  usbhc_iface_transfer_out_callback_t callback_out,
    149149  usbhc_iface_transfer_in_callback_t callback_in,
    150   void *arg )
     150  void *arg)
    151151{
    152152        // TODO: Add support for isochronous transfers
    153         if (transfer_type == USB_TRANSFER_ISOCHRONOUS)
     153        if (transfer_type == USB_TRANSFER_ISOCHRONOUS) {
     154                usb_log_warning("ISO transfer not supported.\n");
    154155                return ENOTSUP;
    155 
    156         if (size >= 1024)
     156        }
     157
     158        if (size >= 1024) {
     159                usb_log_warning("Transfer too big.\n");
    157160                return ENOTSUP;
     161        }
    158162
    159163        transfer_descriptor_t *td = NULL;
Note: See TracChangeset for help on using the changeset viewer.