[Linux-parport] [PATCH 2.6.7] Parallel port detection via ACPI

Erwin Volz erwvolz at bluewin.ch
Sun Jun 20 15:26:54 EDT 2004


I tried my hand at building the module, but so far with no success. I
had a few warnings when building the module, but I don't think thats the
  CC [M]  /usr/src/linux-2.6.5-7.75/drivers/parport/parport_pc.o
/usr/src/linux-2.6.5-7.75/drivers/parport/parport_pc.c: In function
/usr/src/linux-2.6.5-7.75/drivers/parport/parport_pc.c:2939: warning:
unused variable `status'
/usr/src/linux-2.6.5-7.75/drivers/parport/parport_pc.c: At top level:
include2/asm/parport.h:14: warning: `parport_pc_find_nonpci_ports'
defined but not used
/usr/src/linux-2.6.5-7.75/drivers/parport/parport_pc.c:2834: warning:
`parport_pc_init_superio' defined but not used

Still, the card (VScom 210L) is not reacting (same situation as before).
Any ideas how I could proceed?


Am Fr, den 18.06.2004 schrieb Dino Klein um 21:46:
> Hi,
> I've modified the parport_pc.c file to detect parallel ports via ACPI; it is 
> partially a cut & paste from the serial port (8250) acpi code. It's kinda 
> crude, but it works. It utilizes the ACPI subsystem to get the resources 
> assigned to the port, and then passes them on to the detection routine. I've 
> verified that it is working on my machine by cycling between the modes in 
> the BIOS (spp, epp, ecp+epp), and observing proper detection in the logs.
> I commented out the pnp & non-pci detection calls, since ACPI replaces them. 
> I also disabled the SuperIO detection, since it was grabbing the parallel 
> port before the ACPI detection kicked in on my motherboard with a via686 
> southbridge.
> Again, this is is kinda of crude, but I would really like to see some 
> parallel port detection via ACPI, so I won't have to manually specify irq & 
> dma. Perhaps there should be an option to choose between PnP and ACPI, since 
> there shouldn't be a reason to use both.
> --- linux-2.6.7-orig/drivers/parport/parport_pc.c	2004-06-18 
> 14:20:00.000000000 -0400
> +++ linux-2.6.7/drivers/parport/parport_pc.c	2004-06-18 13:05:01.000000000 
> -0400
> 	spin_lock(&ports_lock);
> 	while (!list_empty(&ports_list)) {
> _________________________________________________________________
> MSN Messenger: instale grtis e converse com seus amigos. 
> http://messenger.msn.com.br
> _______________________________________________
> Linux-parport mailing list
> Linux-parport at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-parport

More information about the Linux-parport mailing list