Changeset 0f6b50f in mainline
- Timestamp:
- 2017-10-19T20:00:08Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1fd2f81
- Parents:
- 60af4cdb
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/toolchain.sh
r60af4cdb r0f6b50f 29 29 # 30 30 31 export CC=/usr/local/bin/gcc-6 32 export CXX=/usr/local/bin/g++-6 33 31 34 GMP_MAIN=<<EOF 32 35 #define GCC_GMP_VERSION_NUM(a, b, c) \ … … 345 348 show_dependencies 346 349 check_dependecies 347 show_countdown 10350 # show_countdown 10 348 351 349 352 BINUTILS_SOURCE="ftp://ftp.gnu.org/gnu/binutils/" -
uspace/drv/bus/usb/ehci/main.c
r60af4cdb r0f6b50f 51 51 #define NAME "ehci" 52 52 53 static int ehci_driver_init(hcd_t *, const hw_res_list_parsed_t * );53 static int ehci_driver_init(hcd_t *, const hw_res_list_parsed_t *, ddf_dev_t *); 54 54 static int ehci_driver_claim(hcd_t *, ddf_dev_t *); 55 55 static int ehci_driver_start(hcd_t *, bool); … … 72 72 73 73 74 static int ehci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res )74 static int ehci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res, ddf_dev_t *device) 75 75 { 76 76 assert(hcd); -
uspace/drv/bus/usb/ohci/main.c
r60af4cdb r0f6b50f 48 48 49 49 #define NAME "ohci" 50 static int ohci_driver_init(hcd_t *, const hw_res_list_parsed_t * );50 static int ohci_driver_init(hcd_t *, const hw_res_list_parsed_t *, ddf_dev_t *); 51 51 static int ohci_driver_start(hcd_t *, bool); 52 52 static int ohci_driver_claim(hcd_t *, ddf_dev_t *); … … 69 69 70 70 71 static int ohci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res )71 static int ohci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res, ddf_dev_t *device) 72 72 { 73 73 int err; -
uspace/drv/bus/usb/uhci/main.c
r60af4cdb r0f6b50f 49 49 #define NAME "uhci" 50 50 51 static int uhci_driver_init(hcd_t *, const hw_res_list_parsed_t * );51 static int uhci_driver_init(hcd_t *, const hw_res_list_parsed_t *, ddf_dev_t *); 52 52 static int uhci_driver_start(hcd_t *, bool); 53 53 static void uhci_driver_fini(hcd_t *); … … 69 69 }; 70 70 71 static int uhci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res )71 static int uhci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res, ddf_dev_t *device) 72 72 { 73 73 int err; -
uspace/drv/bus/usb/xhci/hc.c
r60af4cdb r0f6b50f 187 187 } 188 188 189 int hc_init_memory(xhci_hc_t *hc )189 int hc_init_memory(xhci_hc_t *hc, ddf_dev_t *device) 190 190 { 191 191 int err; … … 216 216 goto err_cmd; 217 217 218 if ((err = xhci_rh_init(&hc->rh, hc )))218 if ((err = xhci_rh_init(&hc->rh, hc, device))) 219 219 goto err_transfers; 220 220 -
uspace/drv/bus/usb/xhci/hc.h
r60af4cdb r0f6b50f 89 89 90 90 int hc_init_mmio(xhci_hc_t *, const hw_res_list_parsed_t *); 91 int hc_init_memory(xhci_hc_t * );91 int hc_init_memory(xhci_hc_t *, ddf_dev_t *); 92 92 int hc_claim(xhci_hc_t *, ddf_dev_t *); 93 93 int hc_irq_code_gen(irq_code_t *, xhci_hc_t *, const hw_res_list_parsed_t *); -
uspace/drv/bus/usb/xhci/main.c
r60af4cdb r0f6b50f 47 47 #define NAME "xhci" 48 48 49 static int hc_driver_init(hcd_t *, const hw_res_list_parsed_t * );49 static int hc_driver_init(hcd_t *, const hw_res_list_parsed_t *, ddf_dev_t *); 50 50 static int hcd_irq_code_gen(irq_code_t *, hcd_t *, const hw_res_list_parsed_t *); 51 51 static int hcd_claim(hcd_t *, ddf_dev_t *); … … 72 72 }; 73 73 74 static int hc_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *hw_res )74 static int hc_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *hw_res, ddf_dev_t *device) 75 75 { 76 76 int err; … … 83 83 goto err; 84 84 85 if ((err = hc_init_memory(hc )))85 if ((err = hc_init_memory(hc, device))) 86 86 goto err; 87 87 … … 124 124 assert(hc); 125 125 126 hc->rh.hc_device = dev; 127 return device_init(&hc->rh.device); 126 return EOK; 128 127 } 129 128 -
uspace/drv/bus/usb/xhci/rh.c
r60af4cdb r0f6b50f 61 61 XHCI_REG_MASK(XHCI_PORT_CEC); 62 62 63 int xhci_rh_init(xhci_rh_t *rh, xhci_hc_t *hc )63 int xhci_rh_init(xhci_rh_t *rh, xhci_hc_t *hc, ddf_dev_t *device) 64 64 { 65 65 assert(rh); … … 68 68 rh->hc = hc; 69 69 rh->max_ports = XHCI_REG_RD(hc->cap_regs, XHCI_CAP_MAX_PORTS); 70 71 return EOK; 70 hc->rh.hc_device = device; 71 72 return device_init(&hc->rh.device); 72 73 } 73 74 … … 211 212 int err; 212 213 assert(rh); 214 assert(rh->hc_device); 213 215 214 216 xhci_bus_t *bus = &rh->hc->bus; -
uspace/drv/bus/usb/xhci/rh.h
r60af4cdb r0f6b50f 77 77 } xhci_rh_t; 78 78 79 int xhci_rh_init(xhci_rh_t *, xhci_hc_t * );79 int xhci_rh_init(xhci_rh_t *, xhci_hc_t *, ddf_dev_t *); 80 80 int xhci_rh_fini(xhci_rh_t *); 81 81 const xhci_port_speed_t *xhci_rh_get_port_speed(xhci_rh_t *, uint8_t); -
uspace/lib/usbhost/include/usb/host/ddf_helpers.h
r60af4cdb r0f6b50f 45 45 #include <device/hw_res_parsed.h> 46 46 47 typedef int (*driver_init_t)(hcd_t *, const hw_res_list_parsed_t * );47 typedef int (*driver_init_t)(hcd_t *, const hw_res_list_parsed_t *, ddf_dev_t *); 48 48 typedef int (*irq_code_gen_t)(irq_code_t *, hcd_t *, const hw_res_list_parsed_t *); 49 49 typedef int (*claim_t)(hcd_t *, ddf_dev_t *); -
uspace/lib/usbhost/src/ddf_helpers.c
r60af4cdb r0f6b50f 782 782 783 783 if (driver->init) 784 ret = driver->init(hcd, &hw_res );784 ret = driver->init(hcd, &hw_res, device); 785 785 if (ret != EOK) { 786 786 usb_log_error("Failed to init HCD.\n");
Note:
See TracChangeset
for help on using the changeset viewer.