Lines Matching refs:hcd

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);
127 extern void ehci_endpoint_disable (struct usb_hcd *hcd, struct hcd_dev *dev, int ep);
128 extern int ehci_get_frame (struct usb_hcd *hcd);
129 extern int ehci_hub_status_data (struct usb_hcd *hcd, char *buf);
130 extern int ehci_hub_control (struct usb_hcd *hcd, U16 typeReq, U16 wValue, U16 wIndex, char *buf,…
145 struct usb_hcd *hcd = 0; in usb_hcd_cpe_ehci_probe_Port2() local
173 hcd = driver->hcd_alloc(); in usb_hcd_cpe_ehci_probe_Port2()
174 diag_printf("hcd: %lx\n", (U32)hcd); in usb_hcd_cpe_ehci_probe_Port2()
175 if (hcd == NULL){ in usb_hcd_cpe_ehci_probe_Port2()
181 hcd->driver = (struct hc_driver *) driver; in usb_hcd_cpe_ehci_probe_Port2()
184 memcpy((char*)hcd,(char*)driver,24); in usb_hcd_cpe_ehci_probe_Port2()
186 hcd->irq = gIrqUHC2; //CPE_USB_EHCI1_IRQ; in usb_hcd_cpe_ehci_probe_Port2()
187 hcd->regs = (U32*) gBaseUHC2; in usb_hcd_cpe_ehci_probe_Port2()
188 hcd->host_id = 2; // new in usb_hcd_cpe_ehci_probe_Port2()
189 hcd->phub_event = &hub_event_list_Port2; in usb_hcd_cpe_ehci_probe_Port2()
190 hcd->pdev = (struct pci_dev *)(1111); //Fake PCI device in usb_hcd_cpe_ehci_probe_Port2()
191 hcd->self.controller = &dev->dev; in usb_hcd_cpe_ehci_probe_Port2()
192 hcd->controller = hcd->self.controller; in usb_hcd_cpe_ehci_probe_Port2()
194 retval = hcd_buffer_create (hcd); in usb_hcd_cpe_ehci_probe_Port2()
201 if (driver->reset && (retval = driver->reset (hcd)) < 0) { in usb_hcd_cpe_ehci_probe_Port2()
202 dev_err (hcd->controller, "can't reset%s","\n"); in usb_hcd_cpe_ehci_probe_Port2()
207 fLib_CloseInt(hcd->irq); in usb_hcd_cpe_ehci_probe_Port2()
208 fLib_SetIntTrig(hcd->irq,LEVEL,L_ACTIVE); in usb_hcd_cpe_ehci_probe_Port2()
209 retval = fLib_ReqInt (hcd->irq, usb_hcd_cpe_ehci_hcim_irq, hcd); in usb_hcd_cpe_ehci_probe_Port2()
219 fLib_EnableInt(hcd->irq); in usb_hcd_cpe_ehci_probe_Port2()
225 fLib_EnableInt(hcd->irq); in usb_hcd_cpe_ehci_probe_Port2()
239 hcd->description, hcd->regs, hcd->irq); in usb_hcd_cpe_ehci_probe_Port2()
240 usb_bus_init (&hcd->self); in usb_hcd_cpe_ehci_probe_Port2()
241 hcd->self.op = &usb_hcd_operations; in usb_hcd_cpe_ehci_probe_Port2()
242 hcd->self.hcpriv = (void *) hcd; in usb_hcd_cpe_ehci_probe_Port2()
243 hcd->self.bus_name = "cpe_ehci_2"; in usb_hcd_cpe_ehci_probe_Port2()
245 memcpy(hcd->product_desc, "CPE_AMBA EHCI 2", sizeof(hcd->product_desc)); in usb_hcd_cpe_ehci_probe_Port2()
247 hcd->pre_sts = 0; // new in usb_hcd_cpe_ehci_probe_Port2()
248 hcd->pre_temp = 0; // new in usb_hcd_cpe_ehci_probe_Port2()
249 init_OS_Resource_EX(&hcd->USBWaitFlg); in usb_hcd_cpe_ehci_probe_Port2()
250 INIT_LIST_HEAD (&hcd->dev_list); in usb_hcd_cpe_ehci_probe_Port2()
251 usb_register_bus (&hcd->self); //For USB2, marked??? in usb_hcd_cpe_ehci_probe_Port2()
253 if ((retval = driver->start (hcd)) < 0) in usb_hcd_cpe_ehci_probe_Port2()
255 usb_hcd_cpe_ehci_remove(hcd, dev); in usb_hcd_cpe_ehci_probe_Port2()
259 *hcd_out = hcd; in usb_hcd_cpe_ehci_probe_Port2()
264 hcd_buffer_destroy (hcd); in usb_hcd_cpe_ehci_probe_Port2()
265 if (hcd) in usb_hcd_cpe_ehci_probe_Port2()
266 driver->hcd_free(hcd); in usb_hcd_cpe_ehci_probe_Port2()
316 extern void InitUSBIntr_Port2(struct usb_hcd * hcd);
320 struct usb_hcd *hcd = NULL; in ehci_hcd_cpe_ehci_drv_probe_Port2() local
332 ret = usb_hcd_cpe_ehci_probe_Port2(&ehci_cpe_hc_driver_Port2, &hcd, dev); in ehci_hcd_cpe_ehci_drv_probe_Port2()
336 dev->dev.driver_data = hcd; in ehci_hcd_cpe_ehci_drv_probe_Port2()
337 g_pUsbHcd_Port2 = hcd; in ehci_hcd_cpe_ehci_drv_probe_Port2()
338 InitUSBIntr_Port2(hcd); //add USB interrupt entry . yuwen in ehci_hcd_cpe_ehci_drv_probe_Port2()