tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / southbridge / amd / agesa / hudson / usb.c
blob0f924c2fb5ad1cd32961e74e0d4d5fc226143d40
1 /*
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>
22 #include <arch/io.h>
23 #include "hudson.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,
37 .init = usb_init,
38 .scan_bus = 0,
39 .ops_pci = &lops_pci,
42 static const struct pci_driver usb_0_driver __pci_driver = {
43 .ops = &usb_ops,
44 .vendor = PCI_VENDOR_ID_AMD,
45 .device = PCI_DEVICE_ID_ATI_SB900_USB_18_0,
47 static const struct pci_driver usb_1_driver __pci_driver = {
48 .ops = &usb_ops,
49 .vendor = PCI_VENDOR_ID_AMD,
50 .device = PCI_DEVICE_ID_ATI_SB900_USB_18_2,
53 /* the pci id of usb ctrl 0 and 1 are the same. */
55 * static const struct pci_driver usb_3_driver __pci_driver = {
56 * .ops = &usb_ops,
57 * .vendor = PCI_VENDOR_ID_AMD,
58 * .device = PCI_DEVICE_ID_ATI_HUDSON_USB_19_0,
59 * };
60 * static const struct pci_driver usb_4_driver __pci_driver = {
61 * .ops = &usb_ops,
62 * .vendor = PCI_VENDOR_ID_AMD,
63 * .device = PCI_DEVICE_ID_ATI_HUDSON_USB_19_1,
64 * };
67 static const struct pci_driver usb_4_driver __pci_driver = {
68 .ops = &usb_ops,
69 .vendor = PCI_VENDOR_ID_AMD,
70 .device = PCI_DEVICE_ID_ATI_SB900_USB_20_5,
74 static struct device_operations usb_ops2 = {
75 .read_resources = pci_ehci_read_resources,
76 .set_resources = pci_dev_set_resources,
77 .enable_resources = pci_dev_enable_resources,
78 .init = usb_init2,
79 .scan_bus = 0,
80 .ops_pci = &lops_pci,
84 static const struct pci_driver usb_5_driver __pci_driver = {
85 .ops = &usb_ops2,
86 .vendor = PCI_VENDOR_ID_AMD,
87 .device = PCI_DEVICE_ID_ATI_HUDSON_USB_18_2,
91 * static const struct pci_driver usb_5_driver __pci_driver = {
92 * .ops = &usb_ops2,
93 * .vendor = PCI_VENDOR_ID_AMD,
94 * .device = PCI_DEVICE_ID_ATI_HUDSON_USB_19_2,
95 * };