From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-2?q?Rafa=B3_Cygnarowski?= Subject: Re: Parallel PCI Port in Dosemu Date: Tue, 13 Jan 2009 21:25:57 +0100 Message-ID: <200901132125.57240.rafilists@gmail.com> References: <200901132017.04675.wawaks@uek.krakow.pl> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <200901132017.04675.wawaks@uek.krakow.pl> Content-Disposition: inline Sender: linux-msdos-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: linux-msdos@vger.kernel.org Dnia wtorek 13 stycze=F1 2009, Slawomir Wawak napisa=B3: > Hello, > I use under dosemu application which needs hardware key attached to > parallel port. It was ok, while I've had computer with parallel port = on the > motherboard. > > New motherboards have no parralel port, so I plugged port on PCI card= =2E > Linux and Dosemu can see this port, but my application can't. Port on= PCI > has ioports EC00-EC02, not 378-37f. Application tries to communicate = always > in 378-37f range. > > My question: Is it possible to remap ioports? Can dosemu translate > questions sent to port 378 to EC00? You must set your lpt port addres for LPTx name. Use following program: #include void setlpt(unsigned int num, unsigned int port) { unsigned int _offset; if ((num =3D=3D 0) || (num > 4)) return; _offset =3D 6 + (num * 2); printf("Setting LPT%d to 0x%X\n", num, port); asm { mov ax,0x0040 mov es,ax mov di,_offset mov ax,port stosw }; } =20 int main () { setlpt(1, 0xEC00); //set LPT1 to be at 0xEC00 return 0; } Regards, --=20 Rafa=B3 Cygnarowski rafilists [at] gmail [dot] com -- To unsubscribe from this list: send the line "unsubscribe linux-msdos" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html