Changes in uspace/drv/uhci/main.c [b00163f:71ed4849] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/main.c
rb00163f r71ed4849 1 1 /* 2 * Copyright (c) 2010 Vojtech Horky , Jan Vesely2 * Copyright (c) 2010 Vojtech Horky 3 3 * All rights reserved. 4 4 * … … 28 28 #include <usb/hcdhubd.h> 29 29 #include <usb_iface.h> 30 #include <usb/debug.h> 30 31 #include <errno.h> 31 32 #include "debug.h" 33 #include "iface.h" 34 #include "name.h" 32 #include <driver.h> 35 33 #include "uhci.h" 36 34 … … 55 53 static int uhci_add_device(device_t *device) 56 54 { 57 u hci_print_info( "uhci_add_device() called\n");55 usb_dprintf(NAME, 1, "uhci_add_device() called\n"); 58 56 device->ops = &uhci_ops; 59 57 60 // TODO: get this value out of pci driver 61 uhci_init(device, (void*)0xc020); 58 /* 59 * We need to announce the presence of our root hub. 60 */ 61 usb_dprintf(NAME, 2, "adding root hub\n"); 62 usb_hcd_add_root_hub(device); 62 63 63 64 return EOK; … … 79 80 */ 80 81 sleep(5); 81 usb_dprintf_enable(NAME, DEBUG_LEVEL_MAX);82 usb_dprintf_enable(NAME, 5); 82 83 83 84 return driver_main(&uhci_driver);
Note:
See TracChangeset
for help on using the changeset viewer.