[GLLUG] Parallel Port
Scott Harrison
harris41 at msu.edu
Wed Jul 2 12:36:38 EDT 2003
Parallel ports generally reside at either 0x278, 0x3BC, or 0x378.
If you haven't already looked into this, then you might try
checking /proc/ioports and adjusting SPPDATAPORT accordingly.
Regards,
Scott
On Wed, 2003-07-02 at 03:23, Arief Ardhana wrote:
> Hi All,
>
> I'm using debian with kernel 2.4.10 under Vmware, and i asscociate the
> parallel port to a txt file lets just say Output.txt .
>
> I have succeeded accessing the parallel port using the command
> open("/dev/lp0",1) and write. The result of what i've written can be
> seen at Output.txt. For example I state write(theport,"11",2), then the
> Output.txt will has "11"
>
> What i did not succeed is i cannot access the parallel port (0x378)
> using the command outb(). I try the code from
> http://www.embeddedlinuxinterfacing.com/chapters/07/snowmakingcontrol.c
> it compiles OK with -02 and it didn't give me any errors but file
> Output.txt is empty.
>
> Does anybody have an idea what went wrong ?
>
> TIA
>
> -Arief-
>
>
>
> _______________________________________________
> linux-user mailing list
> linux-user at egr.msu.edu
> http://www.egr.msu.edu/mailman/listinfo/linux-user
--
Scott Harrison <harris41 at msu.edu>
Michigan State University
More information about the linux-user
mailing list