• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/host/

Lines Matching refs:pdev

59 void uhci_reset_hc(struct pci_dev *pdev, unsigned long base)
64 pci_write_config_word(pdev, UHCI_USBLEGSUP, UHCI_USBLEGSUP_RWC);
75 dev_warn(&pdev->dev, "HCRESET not completed yet!\n");
91 int uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base)
106 pci_read_config_word(pdev, UHCI_USBLEGSUP, &legsup);
108 dev_dbg(&pdev->dev, "%s: legsup = 0x%04x\n",
116 dev_dbg(&pdev->dev, "%s: cmd = 0x%04x\n",
123 dev_dbg(&pdev->dev, "%s: intr = 0x%04x\n",
130 dev_dbg(&pdev->dev, "Performing full reset\n");
131 uhci_reset_hc(pdev, base);
136 static inline int io_type_enabled(struct pci_dev *pdev, unsigned int mask)
139 return !pci_read_config_word(pdev, PCI_COMMAND, &cmd) && (cmd & mask);
145 static void __devinit quirk_usb_handoff_uhci(struct pci_dev *pdev)
150 if (!pio_enabled(pdev))
154 if ((pci_resource_flags(pdev, i) & IORESOURCE_IO)) {
155 base = pci_resource_start(pdev, i);
160 uhci_check_and_reset_hc(pdev, base);
163 static int __devinit mmio_resource_enabled(struct pci_dev *pdev, int idx)
165 return pci_resource_start(pdev, idx) && mmio_enabled(pdev);
168 static void __devinit quirk_usb_handoff_ohci(struct pci_dev *pdev)
172 if (!mmio_resource_enabled(pdev, 0))
175 base = ioremap_nocache(pci_resource_start(pdev, 0),
176 pci_resource_len(pdev, 0));
195 pdev->dev.bus_id, "OHCI",
213 static void __devinit quirk_usb_disable_ehci(struct pci_dev *pdev)
222 if (!mmio_resource_enabled(pdev, 0))
225 base = ioremap_nocache(pci_resource_start(pdev, 0),
226 pci_resource_len(pdev, 0));
242 pci_read_config_dword(pdev, offset, &cap);
247 pdev->dev.bus_id, "EHCI");
254 pci_write_config_byte(pdev, offset + 3, 1);
265 pci_read_config_dword(pdev, offset, &cap);
274 pdev->dev.bus_id, "EHCI", cap);
275 pci_write_config_byte(pdev, offset + 2, 0);
279 pci_write_config_dword(pdev,
295 pdev->dev.bus_id, "EHCI",
303 pdev->dev.bus_id, "EHCI");
336 static void __devinit quirk_usb_early_handoff(struct pci_dev *pdev)
338 if (pdev->class == PCI_CLASS_SERIAL_USB_UHCI)
339 quirk_usb_handoff_uhci(pdev);
340 else if (pdev->class == PCI_CLASS_SERIAL_USB_OHCI)
341 quirk_usb_handoff_ohci(pdev);
342 else if (pdev->class == PCI_CLASS_SERIAL_USB_EHCI)
343 quirk_usb_disable_ehci(pdev);