| /utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/usbhost/ |
| H A D | drvEhciHcd.c | 251 extern void ehci_StopRun_Setting(MS_U8 bOption, struct ehci_hcd *ehci); 324 static int ehci_halt (struct ehci_hcd *ehci) in ehci_halt() argument 326 U32 temp = ehci_readl ((U32)&ehci->regs->status); in ehci_halt() 379 temp = ehci_readl ((U32)&ehci->regs->command); in ehci_halt() 381 ehci_writel (temp, (U32)&ehci->regs->command); in ehci_halt() 383 return handshake (&ehci->regs->status, STS_HALT, STS_HALT, 16 * 125); in ehci_halt() 387 static int ehci_reset (struct ehci_hcd *ehci) in ehci_reset() argument 389 U32 command = ehci_readl ((U32)&ehci->regs->command); in ehci_reset() 393 dbg_cmd (ehci, "reset", command); in ehci_reset() 394 ehci_writel (command, (U32)&ehci->regs->command); in ehci_reset() [all …]
|
| H A D | drvEHCI_MEM.cxx | 94 struct ehci_hcd *ehci; in ehci_hcd_alloc() local 96 ehci = (struct ehci_hcd *) in ehci_hcd_alloc() 100 if (ehci != 0) in ehci_hcd_alloc() 102 diag_printf("ehci: %lx\n", (U32) ehci); in ehci_hcd_alloc() 103 memset (ehci, 0, sizeof (struct ehci_hcd)); in ehci_hcd_alloc() 105 memcpy(ehci->hcd.product_desc, "EHCI Host Controller", sizeof(ehci->hcd.product_desc)); in ehci_hcd_alloc() 106 return &ehci->hcd; in ehci_hcd_alloc() 115 static struct ehci_qtd *ehci_qtd_alloc (struct ehci_hcd *ehci, int flags) in ehci_qtd_alloc() argument 120 qtd = (struct ehci_qtd*) pci_pool_alloc (ehci->qtd_pool, flags, &dma); in ehci_qtd_alloc() 144 static __inline__ void ehci_qtd_free (struct ehci_hcd *ehci, struct ehci_qtd *qtd) in ehci_qtd_free() argument [all …]
|
| H A D | drvEHCI_SCHD.cxx | 125 static int periodic_unlink (struct ehci_hcd *ehci, U32 frame, void *ptr) in periodic_unlink() argument 127 union ehci_shadow *prev_p = &ehci->pshadow [frame]; in periodic_unlink() 128 U32 *hw_p = &ehci->periodic [frame]; in periodic_unlink() 172 periodic_usecs (struct ehci_hcd *ehci, U32 frame, U32 uframe) in periodic_usecs() argument 174 U32 *hw_p = &ehci->periodic [frame]; in periodic_usecs() 175 union ehci_shadow *q = &ehci->pshadow [frame]; in periodic_usecs() 261 static int enable_periodic (struct ehci_hcd *ehci) in enable_periodic() argument 267 status = handshake (&ehci->regs->status, STS_PSS, 0, 9 * 125); in enable_periodic() 269 ehci->hcd.state = USB_STATE_HALT; in enable_periodic() 273 cmd = ehci_readl ((U32)&ehci->regs->command) | CMD_PSE; in enable_periodic() [all …]
|
| H A D | drvEHCIDBG.cpp | 80 #define ehci_dbg(ehci, fmt, ...) \ argument 81 dev_dbg ((ehci)->hcd.controller , fmt , __VA_ARGS__ ) 82 #define ehci_err(ehci, fmt, ...) \ argument 83 dev_err ((ehci)->hcd.controller , fmt , __VA_ARGS__ ) 84 #define ehci_info(ehci, fmt, ...) \ argument 85 dev_info ((ehci)->hcd.controller , fmt , __VA_ARGS__ ) 86 #define ehci_warn(ehci, fmt, ...) \ argument 87 dev_warn ((ehci)->hcd.controller , fmt , __VA_ARGS__ ) 92 #define ehci_vdbg(ehci, fmt, args...) do { } while (0) argument 97 static void dbg_hcs_params (struct ehci_hcd *ehci, char *label) in dbg_hcs_params() argument [all …]
|
| H A D | drvUSBEntry.c | 596 extern void ResetMstarUsb(struct ehci_hcd *ehci); 607 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in MDrv_UsbDeviceConnect() 612 temp_s = ehci_readb((U32)&ehci->regs->port_status[0]); in MDrv_UsbDeviceConnect() 628 temp = ehci_readl((U32)&ehci->regs->bus_control); in MDrv_UsbDeviceConnect() 630 ehci_writel(temp, (U32)&ehci->regs->bus_control); in MDrv_UsbDeviceConnect() 632 ResetMstarUsb(ehci); in MDrv_UsbDeviceConnect() 780 struct ehci_hcd *ehci = hcd_to_ehci(g_pUsbHcd); in UsbTask() local 1220 ResetMstarUsb(ehci); in UsbTask() 1229 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in InitUSBIntr() local 1250 ehci_writel (temp, (U32)&ehci->regs->intr_enable); in InitUSBIntr() [all …]
|
| H A D | drvUSBEntry_2.c | 136 extern void ResetMstarUsb(struct ehci_hcd *ehci); // replace void ResetUsbHardware_Port2(void) and… 163 struct ehci_hcd *ehci = hcd_to_ehci(g_pUsbHcd_Port2); in UsbTask_Port2() local 520 ResetMstarUsb(ehci); in UsbTask_Port2() 589 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in InitUSBIntr_Port2() local 600 ehci_writel (temp, (U32)&ehci->regs->intr_enable); in InitUSBIntr_Port2() 602 temp = ehci_readb((U32)&ehci->regs->status); in InitUSBIntr_Port2() 603 ehci_writel (temp, (U32)&ehci->regs->status); //clear all pending interrupt in InitUSBIntr_Port2() 605 temp = ehci_readb((U32)&ehci->regs->bus_control); in InitUSBIntr_Port2() 607 ehci_writel (temp, (U32)&ehci->regs->bus_control); // set interrupt polarity high in InitUSBIntr_Port2()
|
| H A D | drvEHsTest.c | 151 extern struct list_head *qh_urb_transaction_EHSET (struct ehci_hcd *ehci, struct urb *urb, struct l… 152 extern int submit_async_EHSET (struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, … 159 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_urb_enqueue_EHSET() local 167 if (!qh_urb_transaction_EHSET (ehci, urb, &qtd_list, mem_flags, 0)) in ehci_urb_enqueue_EHSET() 169 val = submit_async_EHSET (ehci, urb, &qtd_list, mem_flags); in ehci_urb_enqueue_EHSET() 183 if (!qh_urb_transaction_EHSET (ehci, urb, &qtd_list, mem_flags, 1)) in ehci_urb_enqueue_EHSET() 186 return submit_async_EHSET (ehci, urb, &qtd_list, mem_flags); in ehci_urb_enqueue_EHSET()
|
| H A D | drvUSBHwCtl.c | 154 void ResetMstarUsb(struct ehci_hcd *ehci) in ResetMstarUsb() argument 158 reg_inten = ehci_readl((U32)&ehci->regs->intr_enable); in ResetMstarUsb() 162 reg_cmd = ehci_readl((U32)&ehci->regs->command); in ResetMstarUsb() 163 ehci_writel(reg_cmd | CMD_RESET, (U32)&ehci->regs->command); in ResetMstarUsb() 165 while(ehci_readb((U32)&ehci->regs->command) & CMD_RESET); // wait for reset done in ResetMstarUsb() 168 ehci_writel (reg_inten, (U32)&ehci->regs->intr_enable); in ResetMstarUsb() 169 ehci_writel (reg_cmd, (U32)&ehci->regs->command); in ResetMstarUsb()
|
| H A D | drvEHCI.h | 445 timer_action_done (struct ehci_hcd *ehci, enum ehci_timer_action action) in timer_action_done() argument 451 clear_bit (action, &ehci->actions, U32); in timer_action_done() 481 timer_action (struct ehci_hcd *ehci, enum ehci_timer_action action) in timer_action() argument 486 if (!test_and_set_bit(action, &ehci->actions)) { in timer_action() 543 && (t+jiffies) > (U32) ehci->watchdog.base_jiffies in timer_action() 544 && timer_pending (&ehci->watchdog)) in timer_action() 549 ehci->watchdog.base_jiffies = t + jiffies; in timer_action() 550 mod_timer (&ehci->watchdog, t, 0); in timer_action()
|
| H A D | drvHub.c | 5355 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in hub_port_connect_change() local 5456 temp = ehci_readl((U32)&ehci->regs->bus_control); in hub_port_connect_change() 5458 ehci_writel(temp, (U32)&ehci->regs->bus_control); in hub_port_connect_change() 5577 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in hub_port_connect_change() local 5578 U32 temp = ehci_readl((U32)&ehci->regs->port_status[0]); in hub_port_connect_change() 8645 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in usb_reset_device() local 8651 temp_s = ehci_readb((U32)&ehci->regs->port_status[0]); in usb_reset_device()
|
| H A D | drvTransport.c | 180 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in timeout_handler() local 190 if ( ( (ehci_readl ((U32)&ehci->regs->port_status[0])&PORT_CONNECT) != 0 ) && in timeout_handler() 1681 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in usb_default_timeout_handler() local 1688 if ( ( (ehci_readl ((U32)&ehci->regs->port_status[0])&PORT_CONNECT) != 0 ) && in usb_default_timeout_handler()
|
| H A D | drvHCD.c | 1611 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in hcd_submit_urb() local 1624 ehci->uDontSendIAA = 0; //Set IAA interrupt (default) in hcd_submit_urb()
|
| H A D | drvSCSI.c | 1104 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in bSCSI_Read_10() 1107 …_printf("bSCSI_Read10:: ehci reset done = %x, isRootHubPortReset = %x\n", ehci->reset_done[0], hcd… in bSCSI_Read_10()
|
| /utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/newhost/ |
| H A D | drvEhciHcd.c | 173 void ms_ehci_stoprun_setting(MS_U8 bOption, struct ehci_hcd *ehci); 2165 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in dbg_timeout_async() local 2171 hw_next = hcd_reg_readl ((U32)&ehci->op_regs->asynclistaddr); in dbg_timeout_async() 2174 hw_next = (U32)ehci->stAsync; in dbg_timeout_async() 2194 qh = ehci->stAsync->qh_next.qh; in dbg_timeout_async() 2232 static void ms_ehci_work(struct ehci_hcd *ehci, struct stPtRegs *regs); 2315 struct ehci_hcd *ehci = hcd_to_ehci (pHcd); in ms_ehci_init() local 2318 osapi_spin_lock_init (&ehci->tHcdLock); in ms_ehci_init() 2320 ehci->u32MoreCSC = false; in ms_ehci_init() 2321 ehci->ehci_port_not_change_cnt = 0; in ms_ehci_init() [all …]
|
| H A D | drvEHCI.h | 192 ms_iaa_watchdog_begin(struct ehci_hcd *ehci) in ms_iaa_watchdog_begin() argument 198 ms_update_timer (&ehci->stiaa_Watchdog, EHCI_IAA_MSEC, 0); // 20 ms in ms_iaa_watchdog_begin() 202 ms_iaa_watchdog_done(struct ehci_hcd *ehci) in ms_iaa_watchdog_done() argument 204 ms_del_timer(&ehci->stiaa_Watchdog); in ms_iaa_watchdog_done() 215 ms_timer_action_done (struct ehci_hcd *ehci, enum ehci_timer_event eAction) in ms_timer_action_done() argument 220 ms_clear_bit (eAction, &ehci->u32Actions, U32); in ms_timer_action_done() 225 ms_timer_action (struct ehci_hcd *ehci, enum ehci_timer_event eAction) in ms_timer_action() argument 228 if (ms_timer_pending(&ehci->stWatchdog) in ms_timer_action() 229 …&& (ms_test_bit(TIMER_ASYNC_SHRINK, &ehci->u32Actions) || ms_test_bit(TIMER_ASYNC_OFF, &ehci->u32A… in ms_timer_action() 232 if (!ms_test_and_set_bit(eAction, &ehci->u32Actions)) in ms_timer_action() [all …]
|
| H A D | drvUSBHwCtl.c | 161 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ms_RH_force_FSmode() local 163 temp = hcd_reg_readl((U32)&ehci->op_regs->bus_control); in ms_RH_force_FSmode() 174 hcd_reg_writel(temp, (U32)&ehci->op_regs->bus_control); in ms_RH_force_FSmode() 188 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ms_RoothubPortConnected() local 191 regv = hcd_reg_readw((U32)&ehci->op_regs->portsc[0]); in ms_RoothubPortConnected() 197 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ms_RoothubPortConnectChg() local 200 regv = hcd_reg_readw((U32)&ehci->op_regs->portsc[0]); in ms_RoothubPortConnectChg() 206 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ms_RoothubPortEnabled() local 209 regv = hcd_reg_readw((U32)&ehci->op_regs->portsc[0]); in ms_RoothubPortEnabled() 215 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ms_isHcdRunning() local [all …]
|
| H A D | drvEHsTest.c | 147 extern struct list_head *ms_qh_urb_transaction_EHSET (struct ehci_hcd *ehci, struct urb *urb, struc… 148 extern int ms_submit_async_EHSET (struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_lis… 155 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ms_ehci_urb_enqueue_EHSET() local 162 if (!ms_qh_urb_transaction_EHSET (ehci, urb, &qtd_list, mem_flags, 0)) in ms_ehci_urb_enqueue_EHSET() 164 val = ms_submit_async_EHSET (ehci, urb, &qtd_list, mem_flags); in ms_ehci_urb_enqueue_EHSET() 178 if (!ms_qh_urb_transaction_EHSET (ehci, urb, &qtd_list, mem_flags, 1)) in ms_ehci_urb_enqueue_EHSET() 181 return ms_submit_async_EHSET (ehci, urb, &qtd_list, mem_flags); in ms_ehci_urb_enqueue_EHSET()
|
| H A D | drvEHCI_SCHD.cxx | 448 static int ms_qh_link_periodic (struct ehci_hcd *ehci, struct ehci_qh *qh) in ms_qh_link_periodic() argument 461 for (i = qh->u16Start; i < ehci->u32PeriodicSize; i += period) { in ms_qh_link_periodic() 462 union ehci_qh_shadow *prev = &ehci->pshadow[i]; in ms_qh_link_periodic() 463 U32 *hw_p = &ehci->pPeriodic[i]; in ms_qh_link_periodic() 473 prev = periodic_next_shadow(ehci, prev, type); in ms_qh_link_periodic() 474 hw_p = shadow_next_periodic(ehci, &here, type); in ms_qh_link_periodic() 506 return ms_enable_periodic(ehci); in ms_qh_link_periodic()
|
| H A D | drvMsg.c | 161 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ms_usb_start_wait_urb() local 180 if ((hcd_reg_readb((U32)&ehci->op_regs->portsc[0]) & PORTSC_CSC) // CSC happen on ehci port in ms_usb_start_wait_urb() 181 … || !(hcd_reg_readb((U32)&ehci->op_regs->portsc[0]) & PORTSC_PE)) // PE cleared on ehci port in ms_usb_start_wait_urb() 185 …USB] CSC happend/PE clr while wait CMP PSC [0x%x]\n", hcd_reg_readb((U32)&ehci->op_regs->portsc[0]… in ms_usb_start_wait_urb()
|
| H A D | drvMSC.c | 1061 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ms_bSCSI_Read_10() local 1068 …_Read10:: ehci reset done = %x, isRootHubPortReset = %x\n", (unsigned int)ehci->u32ResetEnd[0], hc… in ms_bSCSI_Read_10() 1337 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ms_bSCSI_Write_10() local 1344 …Write10:: ehci reset done = %x, isRootHubPortReset = %x\n", (unsigned int)ehci->u32ResetEnd[0], hc… in ms_bSCSI_Write_10()
|