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

Erwin Volz erwvolz at bluewin.ch
Mon Jun 21 12:11:51 EDT 2004


Hello

When I do a  cat parport_pc.c | grep PCI_VENDOR_ID_TITAN
        { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_010L,
so the card is not contained in the parport_pc

But if I do a evo at vserv:/usr/src/linux-2.6.5-7.75/drivers/parport> cat
parport_serial.c | grep PCI_VENDOR_ID_TITAN
        { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_110L,
        { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_210L,
the card is there.

I have now really the impression, that this is a problem of the
Suse-kernel, because other people seem to have also problems with the
moduls which are linked to the parport_pc (see [Linux-parport] problems
with libieee1284 on SuSE 9.1 ).

Probably I should try on the Suse-Mailing-list


Am So, den 20.06.2004 schrieb Dino Klein um 22:31:
> My patch is for facilitating detection via ACPI of onboard parallel devices, 
> so it would not have helped you with the PCI card.
> I took a quick look at the patch that the company provides for the 2.4 
> kernels, followed by a quick look at some source files in 2.6.7, and I think 
> that 2.6.7 should be able to handle your card. Perhaps the 2.6.5 kernel that 
> comes with suse doesn't have support for it.
> If you have the source, grep for PCI_VENDOR_ID_TITAN and 
> PCI_VENDOR_ID_TITAN_210L.
> I'm not familiar with this code, so don't hold me responsible :)
> Hope it helps.
> 
> 
> >From: Erwin Volz <erwvolz at bluewin.ch>
> >To: Dino Klein <dinoklein at hotmail.com>
> >CC: linux-parport at lists.infradead.org
> >Subject: Re: [Linux-parport] [PATCH 2.6.7] Parallel port detection via ACPI
> >Date: Sun, 20 Jun 2004 21:26:54 +0200
> >
> >Hello
> >
> >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
> >problem:
> >   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
> >`acpi_parport_pc_resource':
> >/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?
> >
> >Erwin
> >
> >
> >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
> >
> 
> _________________________________________________________________
> MSN Messenger: instale grtis e converse com seus amigos. 
> http://messenger.msn.com.br
> 




More information about the Linux-parport mailing list