summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb/vga.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2001-10-06 09:27:43 +0000
committermarcel <marcel@FreeBSD.org>2001-10-06 09:27:43 +0000
commit452ebcd6f6f3a8dc0bf977b254be33be497cf1be (patch)
tree36c3e03080c49106426d20a4cce78ea73303d556 /sys/dev/fb/vga.c
parent1ccf57de34a8c8d3b3180985e03ffedc96ca8289 (diff)
downloadFreeBSD-src-452ebcd6f6f3a8dc0bf977b254be33be497cf1be.zip
FreeBSD-src-452ebcd6f6f3a8dc0bf977b254be33be497cf1be.tar.gz
Make this compile on ia64.
Diffstat (limited to 'sys/dev/fb/vga.c')
-rw-r--r--sys/dev/fb/vga.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/fb/vga.c b/sys/dev/fb/vga.c
index 19d6f1f..235709a 100644
--- a/sys/dev/fb/vga.c
+++ b/sys/dev/fb/vga.c
@@ -162,7 +162,7 @@ vga_mmap(dev_t dev, vga_softc_t *sc, vm_offset_t offset, int prot)
#endif
/* architecture dependent option */
-#ifdef __alpha__
+#if defined(__alpha__) || defined(__ia64__)
#define VGA_NO_BIOS 1
#endif
@@ -2469,6 +2469,9 @@ vga_mmap_buf(video_adapter_t *adp, vm_offset_t offset, int prot)
#ifdef __alpha__
return alpha_btop(adp->va_info.vi_window + offset);
#endif
+#ifdef __ia64__
+ return ia64_btop(adp->va_info.vi_window + offset);
+#endif
}
#ifndef VGA_NO_MODE_CHANGE
OpenPOWER on IntegriCloud