Re: PCI device initialization.

From: Rui Sousa (rsousa@grad.physics.sunysb.edu)
Date: Thu Mar 30 2000 - 11:32:10 EST


Martin Mares wrote:
>
> Hello!
>
> > Right now the driver searches for two independent devices which works
> > ok except for the fact that I need to make some connection between joystick
> > and sound card (I need to access the sound card pci_dev->driver_data from the
> > joystick
> > initialization routine). I could always look for another device on the same
> > slot but who guarantees this has already been initialized?
>
> This is hard to say -- what exactly do you need to do with sound card
> driver private data in the joystick driver?
>

The sound card has a register to enable the joystick port so I need to know
where the sound card IO ports begin (and maybe to make use of a spinlock that
serializes hardware registers access).

Giving it a little more thought I will probably just set the register from the
sound card initialization, it's much easier and should work just fine...

Thanks for your help,

Rui Sousa

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:27 EST