[sane-devel] Question on Parallel port devices

Daniel Glöckner daniel-gl at gmx.net
Sat Jan 12 21:21:57 GMT 2019


Hi,

On Sat, Jan 12, 2019 at 08:40:42PM +0000, Mauricio Hunt wrote:
> [    7.130079] parport0: PC-style at 0xd020, irq 26 [PCSPP]
> 
> so the parallel port is there and 'active' at 0xd020, using that IO address in the procedure above gives no results, the scan front-end (scanlite, xsane, etc..) or by shell command returns that there are no devices found.

the pio_open function in sanei_pio.c uses ioperm() to request access
to those io ports, but ioperm only works up to io port 0x3ff. For
higher port addresses iopl() must be used.

Btw, it's strange for the PCI card to be detected as a plain SPP
parallel port. Which PCI vendor/device ID does this card have?

Best regards,

  Daniel




More information about the sane-devel mailing list