Re: Modify USB driver for fixed tty port mapping

From: Vasili I Galchin (bhalchin_at_earthlink.net)
Date: 03/20/04

  • Next message: Vasili I Galchin: "Is there a list of devices that don't have drivers?"
    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


  • Next message: Vasili I Galchin: "Is there a list of devices that don't have drivers?"

    Relevant Pages

    • Re: USB Driver crashing
      ... driver is a standard MS one! ... I am trying to include the USB Mass Storage Class Driver. ... While this IOCTL is handled in SD card and ATADISK ...
      (microsoft.public.windowsce.platbuilder)
    • Re: USB Driver crashing
      ... Since you refer to CStore class, ... I am trying to include the USB Mass Storage Class Driver. ... While this IOCTL is handled in SD card and ATADISK ...
      (microsoft.public.windowsce.platbuilder)
    • Re: USB Driver crashing
      ... and SD can support this, it does not mean that the other device driver ... I am trying to include the USB Mass Storage Class Driver. ... While this IOCTL is handled in SD card and ATADISK ...
      (microsoft.public.windowsce.platbuilder)
    • Re: [PATCH 0/7] [RFC] Sizing zones and holes in an architecture independent manner V2
      ... RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize ... SCSI device sda: drive cache: write back w/ FUA ... usbcore: registered new driver hub ... hub 1-0:1.0: USB hub found ...
      (Linux-Kernel)
    • WARNING: at net/ipv4/tcp_input.c:2927 tcp_ack+0xd55/0x1991()
      ... I'm running the latest git kernel and I've got ... # Bus options (PCI etc.) ... # Generic Driver Options ... # USB Network Adapters ...
      (Linux-Kernel)