Changeset bab71635 in mainline for uspace/drv/ohci/main.c
- Timestamp:
- 2011-03-21T11:13:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b0beee82
- Parents:
- c15070c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/main.c
rc15070c rbab71635 45 45 #include "pci.h" 46 46 #include "iface.h" 47 #include " ohci_hc.h"47 #include "hc.h" 48 48 49 49 static int ohci_add_device(ddf_dev_t *device); … … 58 58 { 59 59 assert(dev); 60 ohci_hc_t *hc = (ohci_hc_t*)dev->driver_data;60 hc_t *hc = (hc_t*)dev->driver_data; 61 61 assert(hc); 62 ohci_hc_interrupt(hc, 0);62 hc_interrupt(hc, 0); 63 63 } 64 64 /*----------------------------------------------------------------------------*/ … … 72 72 }; 73 73 static ddf_dev_ops_t hc_ops = { 74 .interfaces[USBHC_DEV_IFACE] = & ohci_hc_iface,74 .interfaces[USBHC_DEV_IFACE] = &hc_iface, 75 75 }; 76 76 … … 105 105 "Failed(%d) disable legacy USB: %s.\n", ret, str_error(ret)); 106 106 107 ohci_hc_t *hcd = malloc(sizeof(ohci_hc_t));107 hc_t *hcd = malloc(sizeof(hc_t)); 108 108 if (hcd == NULL) { 109 109 usb_log_error("Failed to allocate OHCI driver.\n"); … … 129 129 } 130 130 131 ret = ohci_hc_init(hcd, hc_fun, mem_reg_base, mem_reg_size, interrupts);131 ret = hc_init(hcd, hc_fun, mem_reg_base, mem_reg_size, interrupts); 132 132 if (ret != EOK) { 133 133 usb_log_error("Failed to initialize OHCI driver.\n");
Note:
See TracChangeset
for help on using the changeset viewer.