Re: Getting the socket number from within the driver

dhinds <[email protected]> Sat, 30 Mar 2002 18:59:02 -0800
Newsgroups gmane.linux.pcmcia.devel
Message-ID <[email protected]>
On Sat, Mar 30, 2002 at 11:59:12PM +0100, Marcel Holtmann wrote:

> I have the 3Com Bluetooth card and this card needs a firmware download.
> This download must be done before we can register this device to the
> BlueZ HCI layer. As I can't distribute the firmware within the driver
> for legal reasons it should be loaded trough a user space program on
> card init. I want to call this program as a kernel thread and only give
> the socket as a parameter. The user program reads the iobase and the
> manfid from the socket and performs the firmware download. With the
> completation of the user program the device is fully initialized and can
> be registered to the HCI layer. I don't want to have a firmware loader
> that I have to call with the iobase. Are there any other possibilities
> to solve my problem?

What's the reason for not wanting to pass the iobase to the firmware
loader?  That seems convenient enough to me, and saves the loader from
having to do the lookup.

-- Dave