2 * This file is part of the coreboot project.
4 * Copyright (C) 2010 Advanced Micro Devices, Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
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.
16 #include <console/console.h>
17 #include <device/device.h>
18 #include <device/pci.h>
19 #include <device/pci_ids.h>
20 #include <device/pci_ops.h>
21 #include <device/pci_ehci.h>
25 static struct pci_operations lops_pci
= {
26 .set_subsystem
= pci_dev_set_subsystem
,
29 static void usb_init(struct device
*dev
)
33 static struct device_operations usb_ops
= {
34 .read_resources
= pci_ehci_read_resources
,
35 .set_resources
= pci_dev_set_resources
,
36 .enable_resources
= pci_dev_enable_resources
,
42 static const unsigned short pci_device_ids
[] = {
43 PCI_DEVICE_ID_ATI_SB900_USB_18_0
,
44 PCI_DEVICE_ID_ATI_SB900_USB_18_2
,
45 PCI_DEVICE_ID_ATI_SB900_USB_20_5
,
46 PCI_DEVICE_ID_AMD_CZ_USB_0
,
47 PCI_DEVICE_ID_AMD_CZ_USB_1
,
48 PCI_DEVICE_ID_AMD_CZ_USB3_0
,
52 static const struct pci_driver usb_0_driver __pci_driver
= {
54 .vendor
= PCI_VENDOR_ID_AMD
,
55 .devices
= pci_device_ids
,
59 static struct device_operations usb_ops2 = {
60 .read_resources = pci_ehci_read_resources,
61 .set_resources = pci_dev_set_resources,
62 .enable_resources = pci_dev_enable_resources,
69 static const struct pci_driver usb_5_driver __pci_driver = {
71 .vendor = PCI_VENDOR_ID_AMD,
72 .device = PCI_DEVICE_ID_ATI_HUDSON_USB_18_2,
76 * static const struct pci_driver usb_5_driver __pci_driver = {
78 * .vendor = PCI_VENDOR_ID_AMD,
79 * .device = PCI_DEVICE_ID_ATI_HUDSON_USB_19_2,