MDA console driver

Philip Blundell (pjb27@cam.ac.uk)
Mon, 31 Jul 1995 13:17:18 +0100 (BST)


Is there any reason why the MDA driver reserves 16 bytes of I/O space for
itself? As far as I can tell, the last 4 bytes are always either used for a
printer port or empty.

The following trivial patch fixes the driver to only grab the first 12
bytes, which makes the lp port at 0x3BC available for use.

--- linux/drivers/char/console.c Thu Jun 29 12:01:17 1995
+++ linux/drivers/char/console.c Sun Jul 30 21:38:51 1995
@@ -2052,7 +2052,7 @@
video_type = VIDEO_TYPE_MDA;
video_mem_term = 0xb2000;
display_desc = "*MDA";
- request_region(0x3b0,16,"mda");
+ request_region(0x3b0,12,"mda");
}
}
else /* If not, it is color. */

--
Philip Blundell <pjb27@cam.ac.uk>       phone +44 1223 302522
.sig under construction