Changeset ab414a6 in mainline for uspace/drv/uhci-hcd/main.c


Ignore:
Timestamp:
2011-02-28T20:07:06Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ef0d6d
Parents:
99e6bfb
Message:

Use aaccess routines to disable USB Legacy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/main.c

    r99e6bfb rab414a6  
    3434#include <ddf/driver.h>
    3535#include <ddf/interrupt.h>
     36#include <device/hw_res.h>
     37#include <errno.h>
     38#include <str_error.h>
     39
    3640#include <usb_iface.h>
    3741#include <usb/ddfiface.h>
    38 #include <device/hw_res.h>
    39 
    40 #include <errno.h>
    41 
    4242#include <usb/debug.h>
    4343
     
    9494        usb_log_info("I/O regs at 0x%X (size %zu), IRQ %d.\n",
    9595            io_reg_base, io_reg_size, irq);
     96
     97        ret = pci_disable_legacy(device);
     98        CHECK_RET_FREE_HC_RETURN(ret,
     99            "Failed(%d) disable legacy USB: %s.\n", ret, str_error(ret));
    96100
    97101//      ret = pci_enable_interrupts(device);
Note: See TracChangeset for help on using the changeset viewer.