summaryrefslogtreecommitdiff
path: root/src/drivers/xgi/z9s/z9s.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/xgi/z9s/z9s.c')
-rw-r--r--src/drivers/xgi/z9s/z9s.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/drivers/xgi/z9s/z9s.c b/src/drivers/xgi/z9s/z9s.c
index 095489ed8c..eaf04df55a 100644
--- a/src/drivers/xgi/z9s/z9s.c
+++ b/src/drivers/xgi/z9s/z9s.c
@@ -31,6 +31,15 @@
#include "../common/xgi_coreboot.h"
#include "../common/XGIfb.h"
+static void xgi_z9s_set_resources(device_t dev)
+{
+ /* Reserve VGA regions */
+ mmio_resource(dev, 3, 0xa0000 >> 10, 0x1ffff >> 10);
+
+ /* Run standard resource set routine */
+ pci_dev_set_resources(dev);
+}
+
static void xgi_z9s_init(struct device *dev)
{
u8 ret;
@@ -46,7 +55,7 @@ static void xgi_z9s_init(struct device *dev)
static struct device_operations xgi_z9s_ops = {
.read_resources = pci_dev_read_resources,
- .set_resources = pci_dev_set_resources,
+ .set_resources = xgi_z9s_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = xgi_z9s_init,
.scan_bus = 0,