| /utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/usbhost/ |
| H A D | drvHCD.c | 270 struct usb_hcd *hcd, in rh_string() argument 284 strncpy(buf, hcd->self.bus_name, sizeof(buf)); in rh_string() 288 strncpy(buf, hcd->product_desc, sizeof(buf)); in rh_string() 292 hcd->description); in rh_string() 322 static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) in rh_call_control() argument 331 urb->hcpriv = hcd; in rh_call_control() 357 dev_dbg (hcd->controller, "no device features set yet%s","\n"); in rh_call_control() 371 if (hcd->driver->flags & HCD_USB2) in rh_call_control() 373 else if (hcd->driver->flags & HCD_USB11) in rh_call_control() 410 if (hcd->driver->flags & HCD_USB2) { in rh_call_control() [all …]
|
| H A D | drvEhciHcd.c | 395 ehci->hcd.state = USB_STATE_HALT; in ehci_reset() 460 if (!HCD_IS_RUNNING (ehci->hcd.state)) in ehci_ready() 473 ehci->hcd.state = USB_STATE_HALT; in ehci_ready() 538 ehci->hcd.state = USB_STATE_HALT; in ehci_ready() 677 ehci_hub_status_data (struct usb_hcd *hcd, char *buf) in ehci_hub_status_data() argument 679 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_hub_status_data() 796 if ( ((temp & PORT_CONNECT) == 0) && ((hcd->pre_sts & PORT_CONNECT) != 0) ) in ehci_hub_status_data() 798 … diag_printf("<ehci_hub_status_data> Add CSC @ root hub %d, DISCONNECT!\n", hcd->host_id); in ehci_hub_status_data() 801 hcd->pre_sts = temp; in ehci_hub_status_data() 1237 ehci->hcd.state = USB_STATE_RUNNING; in ehci_hc_swreset() [all …]
|
| H A D | drvEhciHcd_2.c | 115 extern void usb_hcd_cpe_ehci_remove (struct usb_hcd *hcd, struct cpe_dev *dev); 117 extern void ehci_irq (struct usb_hcd *hcd, struct pt_regs *regs); 118 extern int ehci_hc_reset (struct usb_hcd *hcd); 119 extern int ehci_start (struct usb_hcd *hcd); 120 extern int ehci_suspend (struct usb_hcd *hcd, U32 state); 121 extern int ehci_resume (struct usb_hcd *hcd); 122 extern void ehci_stop (struct usb_hcd *hcd); 124 extern void ehci_hcd_free (struct usb_hcd *hcd); 125 extern int ehci_urb_enqueue (struct usb_hcd *hcd, struct urb *urb, int mem_flags); 126 extern int ehci_urb_dequeue (struct usb_hcd *hcd, struct urb *urb); [all …]
|
| H A D | drvHCD.h | 192 static __inline__ struct usb_bus *hcd_to_bus (struct usb_hcd *hcd) in hcd_to_bus() argument 194 return &hcd->self; in hcd_to_bus() 242 void (*irq) (struct usb_hcd *hcd, struct pt_regs *regs); 248 int (*reset) (struct usb_hcd *hcd); 249 int (*start) (struct usb_hcd *hcd); 250 int (*restart) (struct usb_hcd *hcd); 252 int (*suspend) (struct usb_hcd *hcd, U32 state); 254 int (*resume) (struct usb_hcd *hcd); 256 void (*stop) (struct usb_hcd *hcd); 258 int (*get_frame_number) (struct usb_hcd *hcd); [all …]
|
| H A D | drvEHsTest.c | 95 void issueSE0(struct usb_hcd *hcd) in issueSE0() argument 98 const struct device_s *__mptr = hcd->controller; in issueSE0() 102 diag_printf("SE0 on port %d\n",hcd->host_id); in issueSE0() 106 void issueTestJ(struct usb_hcd *hcd) in issueTestJ() argument 109 const struct device_s *__mptr = hcd->controller; in issueTestJ() 114 diag_printf("TEST_J on port %d\n",hcd->host_id); in issueTestJ() 120 void issueTestK(struct usb_hcd *hcd) in issueTestK() argument 123 const struct device_s *__mptr = hcd->controller; in issueTestK() 128 diag_printf("TEST_K on port %d\n",hcd->host_id); in issueTestK() 134 void issueTestPacket(struct usb_hcd *hcd) in issueTestPacket() argument [all …]
|
| H A D | drvHcdBuf.c | 103 void hcd_buffer_destroy (struct usb_hcd *hcd); 114 int hcd_buffer_create (struct usb_hcd *hcd) in hcd_buffer_create() argument 123 hcd->pool [i] = pci_pool_create (name, hcd->pdev, in hcd_buffer_create() 125 if (!hcd->pool [i]) { in hcd_buffer_create() 126 hcd_buffer_destroy (hcd); in hcd_buffer_create() 133 void hcd_buffer_destroy (struct usb_hcd *hcd) in hcd_buffer_destroy() argument 138 struct pci_pool *pool = hcd->pool [i]; in hcd_buffer_destroy() 141 hcd->pool [i] = 0; in hcd_buffer_destroy() 153 struct usb_hcd *hcd = (struct usb_hcd*) bus->hcpriv; in hcd_buffer_alloc() local 158 return pci_pool_alloc (hcd->pool [i], mem_flags, dma); in hcd_buffer_alloc() [all …]
|
| H A D | drvEHCIDBG.cpp | 81 dev_dbg ((ehci)->hcd.controller , fmt , __VA_ARGS__ ) 83 dev_err ((ehci)->hcd.controller , fmt , __VA_ARGS__ ) 85 dev_info ((ehci)->hcd.controller , fmt , __VA_ARGS__ ) 87 dev_warn ((ehci)->hcd.controller , fmt , __VA_ARGS__ ) 103 dev_dbg ((ehci)->hcd.controller, in dbg_hcs_params() 143 dev_dbg ((ehci)->hcd.controller, in dbg_hcc_params() 151 dev_dbg ((ehci)->hcd.controller, in dbg_hcc_params() 180 dev_dbg ((ehci)->hcd.controller, "%s qtd %p next%08x %08x token%08x buf=%08x\n", label, qtd, in dbg_qtd() 186 dev_dbg ((ehci)->hcd.controller, " buf1=%08x buf2=%08x buf3=%08x bufp4=%08x\n", in dbg_qtd() 195 dev_dbg ((ehci)->hcd.controller, "%s qh %p next%08x info %x %x qtd %x\n", label, in dbg_qh() [all …]
|
| H A D | drvUSBEntry.c | 598 MS_BOOL MDrv_UsbDeviceConnect_EX(struct usb_hcd *hcd); 599 MS_BOOL MDrv_UsbDeviceConnect(struct usb_hcd *hcd) in MDrv_UsbDeviceConnect() argument 602 if (MDrv_UsbDeviceConnect_EX(hcd)) in MDrv_UsbDeviceConnect() 607 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in MDrv_UsbDeviceConnect() 635 hcd->isRootHubPortReset = TRUE; in MDrv_UsbDeviceConnect() 637 hcd->isBadDevice = FALSE; in MDrv_UsbDeviceConnect() 768 …rn BOOL usb_get_connected_dev_state(int *pdevstate, unsigned char *pDevClass, struct usb_hcd *hcd); 1227 void InitUSBIntr(struct usb_hcd * hcd) in InitUSBIntr() argument 1229 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in InitUSBIntr() 1576 struct usb_hcd *hcd; in _DrvUSB_OnInterrupt_EX() local [all …]
|
| H A D | drvEHCI_MEM.cxx | 85 void ehci_hcd_free (struct usb_hcd *hcd) in ehci_hcd_free() argument 87 kfree (hcd_to_ehci (hcd)); in ehci_hcd_free() 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() 247 …hcd_buffer_free(&ehci->hcd.self, ehci->periodic_size * sizeof (void *), ehci->periodic, ehci->peri… in ehci_mem_cleanup() 289 ehci->qtd_pool = pci_pool_create ("ehci_qtd", ehci->hcd.pdev, in ehci_mem_init() 300 ehci->qh_pool = pci_pool_create ("ehci_qh", ehci->hcd.pdev, in ehci_mem_init() 316 ehci->itd_pool = pci_pool_create ("ehci_itd", ehci->hcd.pdev, in ehci_mem_init() 326 ehci->sitd_pool = pci_pool_create ("ehci_sitd", ehci->hcd.pdev, in ehci_mem_init() 346 …ehci->periodic = (U32*) hcd_buffer_alloc(&ehci->hcd.self,ehci->periodic_size * sizeof (void *),0,&… in ehci_mem_init()
|
| H A D | drvHub.c | 113 extern MS_BOOL Usb_host_Init_EX(struct usb_hcd *hcd); 844 struct usb_hcd *hcd = (struct usb_hcd*) urb->dev->bus->hcpriv; in hub_irq() local 953 list_add(&hub->event_list, hcd->phub_event); // new in hub_irq() 1041 usb_err("hcd->state=%d\n",hcd->state); in hub_irq() 4859 extern void ehci_endpoint_disable (struct usb_hcd *hcd, struct hcd_dev *dev, int ep); 4866 struct usb_hcd *hcd = (struct usb_hcd*) hub->bus->hcpriv; in hub_port_connect_change() local 5353 if ( (hub->parent == NULL) && (hcd->isBadDevice) ) in hub_port_connect_change() 5355 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in hub_port_connect_change() 5454 if (hcd->badDeviceCnt == 3) in hub_port_connect_change() 5461 hcd->isRootHubPortReset = TRUE; in hub_port_connect_change() [all …]
|
| H A D | drvSCSI.c | 106 extern MS_BOOL MDrv_UsbDeviceConnect_EX(struct usb_hcd *hcd); 1097 struct usb_hcd *hcd; in bSCSI_Read_10() 1099 hcd = msc_get_hcd(host_id); in bSCSI_Read_10() 1100 bConnSts = MDrv_UsbDeviceConnect_EX(hcd) & !(hcd->isRootHubPortReset); in bSCSI_Read_10() 1104 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in bSCSI_Read_10() 1106 if (hcd->isRootHubPortReset) // debug purpose in bSCSI_Read_10() 1107 …0:: ehci reset done = %x, isRootHubPortReset = %x\n", ehci->reset_done[0], hcd->isRootHubPortReset… in bSCSI_Read_10() 1378 struct usb_hcd *hcd; in bSCSI_Write_10() 1379 hcd = msc_get_hcd(host_id); in bSCSI_Write_10() 1380 bConnSts = MDrv_UsbDeviceConnect_EX(hcd) & !(hcd->isRootHubPortReset); in bSCSI_Write_10()
|
| H A D | drvEHCI_SCHD.cxx | 81 int ehci_get_frame (struct usb_hcd *hcd); 269 ehci->hcd.state = USB_STATE_HALT; in enable_periodic() 276 ehci->hcd.state = USB_STATE_RUNNING; in enable_periodic() 345 if (((ehci_get_frame (&ehci->hcd) - frame) % qh1->period) == 0) { in intr_deschedule() 359 hcd_to_bus (&ehci->hcd)->bandwidth_allocated -= in intr_deschedule() 508 hcd_to_bus (&ehci->hcd)->bandwidth_allocated += in qh_schedule() 570 hcd_to_bus (&ehci->hcd)->bandwidth_int_reqs++; in intr_submit() 1124 if (HCD_IS_RUNNING (ehci->hcd.state)) in scan_periodic() 1248 if (!HCD_IS_RUNNING (ehci->hcd.state)) in scan_periodic()
|
| H A D | drvUSBEntry_2.c | 135 extern MS_BOOL MDrv_UsbDeviceConnect_EX(struct usb_hcd *hcd); 137 MS_BOOL MDrv_UsbDeviceConnect_Port2(struct usb_hcd *hcd) in MDrv_UsbDeviceConnect_Port2() argument 139 if (MDrv_UsbDeviceConnect_EX(hcd)) in MDrv_UsbDeviceConnect_Port2() 147 …rn BOOL usb_get_connected_dev_state(int *pdevstate, unsigned char *pDevClass, struct usb_hcd *hcd); 587 void InitUSBIntr_Port2(struct usb_hcd * hcd) in InitUSBIntr_Port2() argument 589 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in InitUSBIntr_Port2()
|
| /utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/newhost/ |
| H A D | drvEHsTest.c | 95 void issueSE0(struct usb_hcd *hcd) in issueSE0() argument 98 const struct device_s *__mptr = hcd->controller; in issueSE0() 102 diag_printf("SE0 on port %d\n", (int)hcd->host_id); in issueSE0() 106 void issueTestJ(struct usb_hcd *hcd) in issueTestJ() argument 109 const struct device_s *__mptr = hcd->controller; in issueTestJ() 114 diag_printf("TEST_J on port %d\n", (int)hcd->host_id); in issueTestJ() 120 void issueTestK(struct usb_hcd *hcd) in issueTestK() argument 123 const struct device_s *__mptr = hcd->controller; in issueTestK() 128 diag_printf("TEST_K on port %d\n", (int)hcd->host_id); in issueTestK() 134 void issueTestPacket(struct usb_hcd *hcd) in issueTestPacket() argument [all …]
|
| H A D | drvUSBHwCtl.c | 158 void ms_RH_force_FSmode(struct usb_hcd *hcd, int enable) in ms_RH_force_FSmode() argument 161 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ms_RH_force_FSmode() 165 hcd->isFSmode = 1; in ms_RH_force_FSmode() 170 hcd->isFSmode = 0; in ms_RH_force_FSmode() 178 void ms_ResetMstarUsb(struct usb_hcd *hcd) in ms_ResetMstarUsb() argument 181 if (hcd->isFSmode) in ms_ResetMstarUsb() 182 ms_RH_force_FSmode(hcd, 0); in ms_ResetMstarUsb() 183 ms_ehci_softrst(hcd_to_ehci(hcd)); in ms_ResetMstarUsb() 186 inline BOOL ms_RoothubPortConnected(struct usb_hcd *hcd) in ms_RoothubPortConnected() argument 188 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ms_RoothubPortConnected() [all …]
|
| H A D | drvUSBEntry.c | 1022 struct usb_hcd *hcd; in ms_DrvUSB_OnInterrupt_EX() local 1033 hcd = pChip->p_roothub[p]->cpe_ehci_dev.dev.driver_data; in ms_DrvUSB_OnInterrupt_EX() 1034 ms_ehci_irq(hcd, NULL); in ms_DrvUSB_OnInterrupt_EX() 1045 void ms_InitUSBIntr_EX(struct usb_hcd * hcd, int str_on) in ms_InitUSBIntr_EX() argument 1047 ms_ehci_interrupt_enable(hcd, str_on); in ms_InitUSBIntr_EX() 1048 MsOS_AttachInterrupt(hcd->ehci_irq, ms_DrvUSB_OnInterrupt_EX); in ms_InitUSBIntr_EX() 1049 MsOS_EnableInterrupt(hcd->ehci_irq); in ms_InitUSBIntr_EX() 1052 void ms_UnInitUSBIntr_EX(struct usb_hcd * hcd) in ms_UnInitUSBIntr_EX() argument 1054 MsOS_DisableInterrupt(hcd->ehci_irq); in ms_UnInitUSBIntr_EX() 1055 MsOS_DetachInterrupt(hcd->ehci_irq); in ms_UnInitUSBIntr_EX() [all …]
|
| H A D | drvHcdBuf.c | 92 void ms_hcd_buffer_destroy (struct usb_hcd *hcd); 114 int ms_hcd_buffer_create (struct usb_hcd *hcd) in ms_hcd_buffer_create() argument 124 hcd->pool [i] = ms_mem_pool_create (name, pool_size, pool_size, 0); in ms_hcd_buffer_create() 125 if (!hcd->pool [i]) in ms_hcd_buffer_create() 127 ms_hcd_buffer_destroy (hcd); in ms_hcd_buffer_create() 141 void ms_hcd_buffer_destroy (struct usb_hcd *hcd) in ms_hcd_buffer_destroy() argument 147 struct ms_mem_pool *pool = hcd->pool [i]; in ms_hcd_buffer_destroy() 152 hcd->pool [i] = 0; in ms_hcd_buffer_destroy() 174 struct usb_hcd *hcd = (struct usb_hcd*) bus->hcpriv; in ms_hcd_buffer_alloc() local 180 return ms_mem_pool_alloc (hcd->pool [i], mem_flags, dma); in ms_hcd_buffer_alloc() [all …]
|
| H A D | drvEhciHcd.c | 246 pEhci->hcd.state = HCD_STATE_HALT; in ms_ehci_reset() 276 pEhci->hcd.state = HCD_STATE_HALT; in ms_ehci_quiesce() 291 pEhci->hcd.state = HCD_STATE_HALT; in ms_ehci_quiesce() 439 if ((pEhci->hcd.rh_disconn == 1) && in ms_ehci_softrst() 459 pEhci->hcd.state = HCD_STATE_RUNNING; in ms_ehci_softrst() 953 struct usb_hcd *hcd = pUrb->dev->bus->hcpriv; in ms_qtd_copy_status() local 1035 && (pUrb->dev->tt->hub != hcd->self.root_hub)) in ms_qtd_copy_status() 1184 else if(!iStopped && HCD_IS_RUNNING (pEhci->hcd.state)) in ms_qh_completions() 1722 pEhci->hcd.state = HCD_STATE_RUNNING; in ms_qh_link_async() 1951 && HCD_IS_RUNNING (pEhci->hcd.state)) in ms_end_unlink_async() [all …]
|
| H A D | drvUsbd.c | 579 extern void ms_ehci_end (struct usb_hcd *hcd); 617 int ms_usb_hcd_cpe_ehci_suspend (struct usb_hcd *hcd) in ms_usb_hcd_cpe_ehci_suspend() argument 622 switch (hcd->state) in ms_usb_hcd_cpe_ehci_suspend() 631 hcd->state = HCD_STATE_QUIESCING; in ms_usb_hcd_cpe_ehci_suspend() 632 retval = ms_ehci_suspend (hcd, 0); in ms_usb_hcd_cpe_ehci_suspend() 640 int ms_usb_hcd_cpe_ehci_resume(struct usb_hcd *hcd) in ms_usb_hcd_cpe_ehci_resume() argument 645 if (hcd->state != HCD_STATE_SUSPENDED) in ms_usb_hcd_cpe_ehci_resume() 651 hcd->state = HCD_STATE_RESUMING; in ms_usb_hcd_cpe_ehci_resume() 653 retval = ms_ehci_resume (hcd); in ms_usb_hcd_cpe_ehci_resume() 679 extern int ms_ehci_begin (struct usb_hcd *hcd); [all …]
|
| H A D | drvUSBHwCtl.h | 131 extern void ms_ehci_interrupt_enable (struct usb_hcd *hcd, int str_on); 132 extern void ms_ehci_interrupt_disable (struct usb_hcd *hcd); 135 extern BOOL ms_RoothubPortConnected(struct usb_hcd *hcd); 136 extern BOOL ms_RoothubPortConnectChg(struct usb_hcd *hcd); 137 extern BOOL ms_RoothubPortEnabled(struct usb_hcd *hcd); 138 extern BOOL ms_isHcdRunning(struct usb_hcd *hcd); 139 extern void ms_forceHcdRun(struct usb_hcd *hcd);
|
| H A D | drvMSC.c | 1055 struct usb_hcd *hcd = pMass_stor->pusb_dev->bus->hcpriv; in ms_bSCSI_Read_10() local 1057 bConnSts = ms_RoothubPortConnected(hcd) & !(hcd->isRootHubPortReset); in ms_bSCSI_Read_10() 1061 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ms_bSCSI_Read_10() 1067 if (hcd->isRootHubPortReset) // debug purpose in ms_bSCSI_Read_10() 1068 …done = %x, isRootHubPortReset = %x\n", (unsigned int)ehci->u32ResetEnd[0], hcd->isRootHubPortReset… in ms_bSCSI_Read_10() 1322 struct usb_hcd *hcd = pMass_stor->pusb_dev->bus->hcpriv; in ms_bSCSI_Write_10() local 1331 struct usb_hcd *hcd = pMass_stor->pusb_dev->bus->hcpriv; in ms_bSCSI_Write_10() local 1332 bConnSts = ms_RoothubPortConnected(hcd) & !(hcd->isRootHubPortReset); in ms_bSCSI_Write_10() 1337 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ms_bSCSI_Write_10() 1343 if (hcd->isRootHubPortReset) // debug purpose in ms_bSCSI_Write_10() [all …]
|
| H A D | drvMsg.c | 145 extern BOOL ms_isHcdRunning(struct usb_hcd *hcd); // debug 146 extern void ms_dumpHcdRegister(struct usb_hcd *hcd); // debug 160 struct usb_hcd *hcd = urb->dev->bus->hcpriv; in ms_usb_start_wait_urb() local 161 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ms_usb_start_wait_urb() 216 ms_dumpHcdRegister(hcd); in ms_usb_start_wait_urb() 217 if (ms_isHcdRunning(hcd)) // just for debugging in ms_usb_start_wait_urb() 220 hcd->isBadDevice = TRUE; in ms_usb_start_wait_urb() 221 hcd->badDeviceCnt++; in ms_usb_start_wait_urb()
|
| H A D | drvEHCI_SCHD.cxx | 78 int ms_ehci_get_frame_idx (struct usb_hcd *hcd); 157 pEhci->hcd.state = HCD_STATE_HALT; in ms_enable_periodic() 164 pEhci->hcd.state = HCD_STATE_RUNNING; in ms_enable_periodic() 245 if (((ms_ehci_get_frame_idx (&pEhci->hcd) - u32Frame) % pQh1->u16Period) == 0) in ms_intr_deschedule() 275 if (!list_empty(&pQh1->qtd_list) && HCD_IS_RUNNING(pEhci->hcd.state)) in ms_intr_deschedule() 300 if ( pEhci->hcd.eSpeed == USB_HIGH_SPEED ) in ms_check_period() 693 if (HCD_IS_RUNNING (pEhci->hcd.state)) in ms_scan_periodic() 750 if (!HCD_IS_RUNNING (pEhci->hcd.state) || pEhci->u32PeriodicSched == 0) in ms_scan_periodic()
|
| H A D | drvUsbd.h | 107 int (*ms_urb_enqueue) (struct usb_hcd *hcd, struct urb *urb, int mem_flags); 108 int (*ms_urb_dequeue) (struct usb_hcd *hcd, struct urb *urb); 191 int ms_hcd_buffer_create (struct usb_hcd *hcd); 192 void ms_hcd_buffer_destroy (struct usb_hcd *hcd); 262 extern int ms_register_root_hub (struct usb_hcd *hcd);
|
| H A D | drvBulktran.c | 307 struct usb_hcd *hcd = urb->dev->bus->hcpriv; in ms_usb_wait_for_completion_timeout() local 312 …&& (ms_RoothubPortConnectChg(hcd) || !ms_RoothubPortConnected(hcd))) // CSC or disconnect happen o… in ms_usb_wait_for_completion_timeout() 317 wait_remain, ms_RoothubPortConnectChg(hcd), ms_RoothubPortConnected(hcd)); in ms_usb_wait_for_completion_timeout() 390 struct usb_hcd *hcd = ptr->pusb_dev->bus->hcpriv; in ms_usb_msg_common() local 391 flag = hcd->USBWaitFlg; in ms_usb_msg_common()
|