From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Underwood Subject: Re: Can I use DOSEMU for testing device driver code? Date: Sat, 14 Feb 2004 23:04:34 -0600 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <20040215050434.GC20725@dbz.icequake.net> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4ZLFUWh1odzi/v6L" Return-path: Content-Disposition: inline In-Reply-To: List-Id: To: linux-msdos@vger.kernel.org --4ZLFUWh1odzi/v6L Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 12, 2004 at 04:53:38PM -0500, easlab@absamail.co.za wrote: >=20 > All my DOS application can't do is toggle 2 pins of the par-port. > No interupts. dosemu-1.1.99 as root, won't do it, even with > editing dosemu.conf to: > $_ports { device /dev/lp1 fast range 0x378 0x37f } # lpt1 > and other combinations You don't want to use the lp device. In fact, it will work better if you remove the lp and all parport drivers before using dosemu. I can use the parallel port with: 1) removed all linux parallel port support (lp,ppdev,parport_pc,parport) 2) $_ports =3D "range 0x3bc,0x3be range 0x7bc,0x7be" and $_irqpassing =3D "= 7" 3) sudo dosemu This is for a port at 0x3bc. The 0x7bc range is the ECP registers, which are usually unnecessary but in my case they were (even though ECP DMA mode cannot be used under dosemu). ECP control register is used to set the parallel port's mode from spp to tristate on some chips that boot up in spp mode. If you are not using the interrupt, then you do not need irqpassing. I was unable to get anything to work until removing the linux pp drivers, probably because (Stas said) dosemu checks /proc/ioports for already used port ranges by linux drivers and refuses to use them again. --=20 Ryan Underwood, --4ZLFUWh1odzi/v6L 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) iD8DBQFALv3iIonHnh+67jkRArcfAJ9s95eSclOMmX5kh+TJjaReka3pVQCguofB 1qAl92En3OYdxUFmcbQtPL4= =MreG -----END PGP SIGNATURE----- --4ZLFUWh1odzi/v6L--