summaryrefslogtreecommitdiff
path: root/src/northbridge/via
diff options
context:
space:
mode:
Diffstat (limited to 'src/northbridge/via')
-rw-r--r--src/northbridge/via/cn400/vga.c9
-rw-r--r--src/northbridge/via/cn700/vga.c9
-rw-r--r--src/northbridge/via/cx700/cx700_vga.c9
-rw-r--r--src/northbridge/via/vt8623/northbridge.c14
-rw-r--r--src/northbridge/via/vx800/vga.c9
5 files changed, 5 insertions, 45 deletions
diff --git a/src/northbridge/via/cn400/vga.c b/src/northbridge/via/cn400/vga.c
index 6c61f3de5d..5a58d17550 100644
--- a/src/northbridge/via/cn400/vga.c
+++ b/src/northbridge/via/cn400/vga.c
@@ -121,15 +121,8 @@ static void vga_init(device_t dev)
#endif
}
-static void vga_read_resources(device_t dev)
-{
- dev->rom_address = 0xfff80000;
- dev->on_mainboard = 1;
- pci_dev_read_resources(dev);
-}
-
static const struct device_operations vga_operations = {
- .read_resources = vga_read_resources,
+ .read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = vga_init,
diff --git a/src/northbridge/via/cn700/vga.c b/src/northbridge/via/cn700/vga.c
index 3c8fb61ce6..e4f9d93b6f 100644
--- a/src/northbridge/via/cn700/vga.c
+++ b/src/northbridge/via/cn700/vga.c
@@ -101,15 +101,8 @@ static void vga_init(device_t dev)
memset(0xf0000, 0, 0x10000);
}
-static void vga_read_resources(device_t dev)
-{
- dev->rom_address = 0xfff80000;
- dev->on_mainboard = 1;
- pci_dev_read_resources(dev);
-}
-
static const struct device_operations vga_operations = {
- .read_resources = vga_read_resources,
+ .read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = vga_init,
diff --git a/src/northbridge/via/cx700/cx700_vga.c b/src/northbridge/via/cx700/cx700_vga.c
index 96bb769e20..bcb7d9e8a9 100644
--- a/src/northbridge/via/cx700/cx700_vga.c
+++ b/src/northbridge/via/cx700/cx700_vga.c
@@ -97,15 +97,8 @@ static void vga_init(device_t dev)
outb(reg8, SR_DATA);
}
-static void vga_read_resources(device_t dev)
-{
- dev->rom_address = 0xfff80000;
- dev->on_mainboard = 1;
- pci_dev_read_resources(dev);
-}
-
static struct device_operations vga_operations = {
- .read_resources = vga_read_resources,
+ .read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = vga_init,
diff --git a/src/northbridge/via/vt8623/northbridge.c b/src/northbridge/via/vt8623/northbridge.c
index d384a9809c..15910fe74d 100644
--- a/src/northbridge/via/vt8623/northbridge.c
+++ b/src/northbridge/via/vt8623/northbridge.c
@@ -124,9 +124,6 @@ static void vga_init(device_t dev)
#if 0
/* code to make vga init go through the emulator - as of yet this does not workfor the epia-m */
- dev->on_mainboard=1;
- dev->rom_address = (void *)0xfffc0000;
-
pci_dev_init(dev);
call_bios_interrupt(0x10,0x4f1f,0x8003,1,0);
@@ -167,17 +164,8 @@ static void vga_init(device_t dev)
#endif
}
-static void vga_read_resources(device_t dev)
-{
-
- dev->rom_address = (void *)0xfffc0000;
- dev->on_mainboard=1;
- pci_dev_read_resources(dev);
-
-}
-
static struct device_operations vga_operations = {
- .read_resources = vga_read_resources,
+ .read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = vga_init,
diff --git a/src/northbridge/via/vx800/vga.c b/src/northbridge/via/vx800/vga.c
index a3bf81bd08..732963de46 100644
--- a/src/northbridge/via/vx800/vga.c
+++ b/src/northbridge/via/vx800/vga.c
@@ -126,15 +126,8 @@ static void vga_init(device_t dev)
}
-static void vga_read_resources(device_t dev)
-{
- dev->rom_address = (void *)(0xffffffff - CONFIG_ROM_SIZE + 1);
- dev->on_mainboard = 1;
- pci_dev_read_resources(dev);
-}
-
static struct device_operations vga_operations = {
- .read_resources = vga_read_resources,
+ .read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = vga_init,