diff options
author | Li-Ta Lo <ollie@lanl.gov> | 2006-04-20 21:31:47 +0000 |
---|---|---|
committer | Li-Ta Lo <ollie@lanl.gov> | 2006-04-20 21:31:47 +0000 |
commit | 5d69896c8728d02b7c25f13192b3266b792312e1 (patch) | |
tree | 2f5efcff1ac2d42445f7e989fa6c5985fa5743ec /src/southbridge/amd/cs5536/cs5536.c | |
parent | 05c0869fac22cae8a35897310fef64ad94caed01 (diff) |
add cs5536
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2265 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/amd/cs5536/cs5536.c')
-rw-r--r-- | src/southbridge/amd/cs5536/cs5536.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/southbridge/amd/cs5536/cs5536.c b/src/southbridge/amd/cs5536/cs5536.c new file mode 100644 index 0000000000..953670f783 --- /dev/null +++ b/src/southbridge/amd/cs5536/cs5536.c @@ -0,0 +1,41 @@ + +#include <arch/io.h> +#include <device/device.h> +#include <device/pci.h> +#include <device/pci_ops.h> +#include <device/pci_ids.h> +#include <console/console.h> +#include "cs5536.h" + +static void southbridge_init(struct device *dev) +{ + printk_err("cs5536: %s\n", __FUNCTION__); + setup_i8259(); +} + +static void southbridge_enable(struct device *dev) +{ + printk_err("%s: dev is %p\n", __FUNCTION__, dev); +} + +static void cs5536_pci_dev_enable_resources(device_t dev) +{ + printk_err("cs5536.c: %s()\n", __FUNCTION__); + pci_dev_enable_resources(dev); + enable_childrens_resources(dev); +} + +static struct device_operations southbridge_ops = { + .read_resources = pci_dev_read_resources, + .set_resources = pci_dev_set_resources, + .enable_resources = cs5536_pci_dev_enable_resources, + .init = southbridge_init, + .enable = southbridge_enable, + .scan_bus = scan_static_bus, +}; + +static struct pci_driver cs5535_pci_driver __pci_driver = { + .ops = &southbridge_ops, + .vendor = PCI_VENDOR_ID_AMD, + .device = PCI_DEVICE_ID_AMD_CS5536_ISA +}; |