- Moved hlt() to it's own header.
[coreboot.git] / src / southbridge / amd / amd8111 / amd8111_usb2.c
1 //2003 Copywright Tyan
2 //BY LYH
3
4
5 #include <console/console.h>
6 #include <device/device.h>
7 #include <device/pci.h>
8 #include <device/pci_ids.h>
9 #include <device/pci_ops.h>
10 #include "amd8111.h"
11
12 static void usb2_init(struct device *dev)
13 {
14         uint32_t cmd;
15
16 #if 0
17         printk_debug("USB: Setting up controller.. ");
18         cmd = pci_read_config32(dev, PCI_COMMAND);
19         pci_write_config32(dev, PCI_COMMAND, 
20                 cmd | PCI_COMMAND_IO | PCI_COMMAND_MEMORY | 
21                 PCI_COMMAND_MASTER | PCI_COMMAND_INVALIDATE);
22
23
24         printk_debug("done.\n");
25 #endif
26 }
27
28 static struct device_operations usb2_ops  = {
29         .read_resources   = pci_dev_read_resources,
30         .set_resources    = pci_dev_set_resources,
31         .enable_resources = pci_dev_enable_resources,
32         .init             = usb2_init,
33         .scan_bus         = 0,
34         .enable           = amd8111_enable,
35 };
36
37 static struct pci_driver usb2_driver __pci_driver = {
38         .ops    = &usb2_ops,
39         .vendor = PCI_VENDOR_ID_AMD,
40         .device = PCI_DEVICE_ID_AMD_8111_USB2,
41 };