Re: Modify USB driver for fixed tty port mapping
From: Vasili I Galchin (bhalchin_at_earthlink.net)
Date: 03/20/04
- Previous message: Jack: "devfs_register succeeds but no device appears"
- Maybe in reply to: Simon Wu: "Re: Modify USB driver for fixed tty port mapping"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 20 Mar 2004 20:20:34 GMT
David Schwartz wrote:
>
> "Simon Wu" <simonwu@nortelnetworks.com> wrote in message
> news:c1oegp$cr4$1@zcars0v6.ca.nortel.com...
>
>> I need to connect 16 USB modems on the same PC. Due to USB tty port
>> mapping
>> is dynamic, I often don't know which modem has which ttyUSB or ttyACM
>> port.
>>
>> Therefore, I want to modify the kernel's USB driver to achieve fixed
>> mapping.
>>
>> Can anyone point me to any kernel development book webpage on how to
>> open/read/write to a file in the kernel? I plan to put the fixed port
>> mapping in a config file and have kernel read from it.
>
>
> No. Have some program send the mapping table to the kernel.
>
> DS
I agree ... typically for these kinds of issues where I am trying to
configure the driver or pass tables, etc. I have some ioctls
that I implement to due precisely this, i.e. pass config table
via am ioctl that is implemented in the driver. You have some
global state flag that will disable the driver until the config
table ioctl has been called and the table correctly "installed"
at which point the ioctl code will mark the driver as "enabled",
i.e. "open for business". I have seen firmware loaded this way
in some drivers.
Regards, Vasili
- Previous message: Jack: "devfs_register succeeds but no device appears"
- Maybe in reply to: Simon Wu: "Re: Modify USB driver for fixed tty port mapping"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|