diff options
Diffstat (limited to 'src/southbridge/via/k8t890/k8t890_host_ctrl.c')
-rw-r--r-- | src/southbridge/via/k8t890/k8t890_host_ctrl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/southbridge/via/k8t890/k8t890_host_ctrl.c b/src/southbridge/via/k8t890/k8t890_host_ctrl.c index a1c42b7d59..43d01ee369 100644 --- a/src/southbridge/via/k8t890/k8t890_host_ctrl.c +++ b/src/southbridge/via/k8t890/k8t890_host_ctrl.c @@ -22,6 +22,8 @@ #include <device/pci_ops.h> #include <device/pci_ids.h> #include <console/console.h> +#include <cbmem.h> +#include <arch/io.h> #include "k8t890.h" /* this may be later merged */ @@ -111,6 +113,14 @@ static void host_ctrl_enable_k8m890(struct device *dev) { pci_write_config8(dev, 0xa6, 0x83); } +#if 0 +struct cbmem_entry *get_cbmem_toc(void) { + return (struct cbmem_entry *) inl(K8T890_NVRAM_IO_BASE+K8T890_NVRAM_CBMEM_TOC); +} +#endif +void set_cbmem_toc(struct cbmem_entry *toc) { + outl((u32) toc, K8T890_NVRAM_IO_BASE+K8T890_NVRAM_CBMEM_TOC); +} static const struct device_operations host_ctrl_ops_t = { .read_resources = pci_dev_read_resources, |