first round name simplification. drop the <component>_ prefix.
[coreboot.git] / src / southbridge / amd / amd8111 / usb.c
1 /*
2  * (C) 2004 Linux Networx
3  */
4 #include <console/console.h>
5 #include <device/device.h>
6 #include <device/pci.h>
7 #include <device/pci_ids.h>
8 #include <device/pci_ops.h>
9 #include <arch/io.h>
10 #include "amd8111.h"
11
12
13 static void lpci_set_subsystem(device_t dev, unsigned vendor, unsigned device)
14 {
15         pci_write_config32(dev, 0x70,
16                 ((device & 0xffff) << 16) | (vendor & 0xffff));
17 }
18
19 static struct pci_operations lops_pci = {
20         .set_subsystem = lpci_set_subsystem,
21 };
22
23 static struct device_operations usb_ops = {
24         .read_resources   = pci_dev_read_resources,
25         .set_resources    = pci_dev_set_resources,
26         .enable_resources = pci_dev_enable_resources,
27         .init             = 0,
28         .scan_bus         = scan_static_bus,
29 //      .enable           = amd8111_enable,
30         .ops_pci          = &lops_pci,
31 };
32
33 static const struct pci_driver usb_driver __pci_driver = {
34         .ops    = &usb_ops,
35         .vendor = PCI_VENDOR_ID_AMD,
36         .device = PCI_DEVICE_ID_AMD_8111_USB,
37 };