* Parallel PCI Port in Dosemu
@ 2009-01-13 19:17 Slawomir Wawak
2009-01-13 20:25 ` Rafał Cygnarowski
0 siblings, 1 reply; 2+ messages in thread
From: Slawomir Wawak @ 2009-01-13 19:17 UTC (permalink / raw)
To: linux-msdos
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. 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?
Thanks.
Regards, Slawomir Wawak.
--
Slawomir Wawak - Uniwersytet Ekonomiczny w Krakowie
31-510 Kraków, ul. Rakowicka 27
http://mfiles.uek.krakow.pl wawaks@uek.krakow.pl GG: 4197128
We use Linux. You will be assimilated. Resistance is futile.
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Parallel PCI Port in Dosemu
2009-01-13 19:17 Parallel PCI Port in Dosemu Slawomir Wawak
@ 2009-01-13 20:25 ` Rafał Cygnarowski
0 siblings, 0 replies; 2+ messages in thread
From: Rafał Cygnarowski @ 2009-01-13 20:25 UTC (permalink / raw)
To: linux-msdos
Dnia wtorek 13 styczeñ 2009, Slawomir Wawak napisa³:
> 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.
> 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 <stdio.h>
void setlpt(unsigned int num, unsigned int port)
{
unsigned int _offset;
if ((num == 0) || (num > 4))
return;
_offset = 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
};
}
int main ()
{
setlpt(1, 0xEC00); //set LPT1 to be at 0xEC00
return 0;
}
Regards,
--
Rafa³ 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-13 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13 19:17 Parallel PCI Port in Dosemu Slawomir Wawak
2009-01-13 20:25 ` Rafał Cygnarowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox