2 * Copyright (c) 2007-2008, Juniper Networks, Inc.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation version 2 of
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
26 #include "ehci-core.h"
28 #ifdef CONFIG_PCI_EHCI_DEVICE
29 static struct pci_device_id ehci_pci_ids[] = {
30 /* Please add supported PCI EHCI controller ids here */
36 * Create the appropriate control structures to manage
37 * a new EHCI host controller.
39 int ehci_hcd_init(void)
44 pdev = pci_find_devices(ehci_pci_ids, CONFIG_PCI_EHCI_DEVICE);
46 printf("EHCI host controller not found\n");
50 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &addr);
51 hccr = (struct ehci_hccr *)addr;
52 hcor = (struct ehci_hcor *)((uint32_t) hccr +
53 HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
59 * Destroy the appropriate control structures corresponding
60 * the the EHCI host controller.
62 int ehci_hcd_stop(void)