From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Underwood Subject: vgaemu reserving 0x3b0-0x3bf incorrectly Date: Sat, 12 Jun 2004 07:25:03 -0500 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <20040612122503.GA9959@dbz.icequake.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s2ZSL+KKDSLx8OML" Return-path: Content-Disposition: inline List-Id: To: linux-msdos@vger.kernel.org --s2ZSL+KKDSLx8OML Content-Type: multipart/mixed; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I noticed that I was unable to use a direct-access parallel port program with dosemu -X because the port range was reserved for Hercules emulation. Looking into some Hercules programming docs, it looks like only 0x3b0-0x3bb and 0x3bf are necessary for the graphics chip, leaving 0x3bc-0x3be (the 3 parallel port registers) open for the parallel port which used to also come on a Hercules graphics card. Also, linux hgcfb follows the same approach. The attached patch fixed that and let my program run under dosemu -X --=20 Ryan Underwood, --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="dosemu-hercules-ports.diff" --- src/env/video/vgaemu.bak 2004-06-12 04:29:27.000000000 -0500 +++ src/env/video/vgaemu.c 2004-06-12 07:03:54.000000000 -0500 @@ -1458,8 +1458,13 @@ * if something is missing. -- sw */ if(vga.config.mono_support) { - io_device.handler_name = "VGAEmu Mono/Hercules Card"; + io_device.handler_name = "VGAEmu Mono/Hercules Card Range 0"; io_device.start_addr = 0x3b0; + io_device.end_addr = 0x3bb; + port_register_handler(io_device, 0); + + io_device.handler_name = "VGAEmu Mono/Hercules Card Range 1"; + io_device.start_addr = 0x3bf; io_device.end_addr = 0x3bf; port_register_handler(io_device, 0); } --X1bOJ3K7DJ5YkBrT-- --s2ZSL+KKDSLx8OML Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAyvYfIonHnh+67jkRAtkPAJ9bKmOY9Unvr2GMxGqa0YA4dZaBlwCdF8o+ Tl6pjhgTWyTxjQ+9xmQGZKk= =h93i -----END PGP SIGNATURE----- --s2ZSL+KKDSLx8OML--