ref: 96eb90fba188f73d2172f8e8de6a96be85b6d823
parent: 50bea0348ce8f8af3ad506affe256d22e4ffdeab
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Dec 22 23:26:50 EST 2017
devvga: removing #v/vgabios, use /dev/realmodemem instead
--- a/sys/man/3/vga
+++ b/sys/man/3/vga
@@ -5,7 +5,6 @@
.nf
.B bind #v /dev
-.B /dev/vgabios
.B /dev/vgactl
.B /dev/vgaovl
.B /dev/vgaovlctl
@@ -22,10 +21,6 @@
it is used to implement configuration and setup of VGA controller cards.
This is usually performed by
.IR vga (8).
-.PP
-.B Vgabios
-provides read-only access to the low 640kB of memory,
-where the VGA and other BIOS ROMs are located.
.PP
Writing strings to
.B vgactl
--- a/sys/src/9/pc/devvga.c
+++ b/sys/src/9/pc/devvga.c
@@ -17,7 +17,6 @@
enum {
Qdir,
- Qvgabios,
Qvgactl,
Qvgaovl,
Qvgaovlctl,
@@ -25,7 +24,6 @@
static Dirtab vgadir[] = {
".", { Qdir, 0, QTDIR }, 0, 0550,
- "vgabios", { Qvgabios, 0 }, 0x100000, 0440,
"vgactl", { Qvgactl, 0 }, 0, 0660,
"vgaovl", { Qvgaovl, 0 }, 0, 0660,
"vgaovlctl", { Qvgaovlctl, 0 }, 0, 0660,
@@ -154,14 +152,6 @@
case Qdir:
return devdirread(c, a, n, vgadir, nelem(vgadir), devgen);
-
- case Qvgabios:
- if(offset >= 0x100000)
- return 0;
- if(offset+n >= 0x100000)
- n = 0x100000 - offset;
- memmove(a, (uchar*)kaddr(0)+offset, n);
- return n;
case Qvgactl:
scr = &vgascreen[0];
--- a/sys/src/cmd/aux/vga/io.c
+++ b/sys/src/cmd/aux/vga/io.c
@@ -245,7 +245,7 @@
if(biosfd < 0)
biosfd = open("/dev/realmodemem", OREAD);
if(biosfd < 0)
- biosfd = devopen("#v/vgabios", OREAD);
+ biosfd = open("#P/realmodemem", OREAD);
if(biosfd < 0)
return -1;
seek(biosfd, offset, 0);