Help writing my first USB driver ( no user space code needed )



hello,

I am trying to write a device driver for a USB device that is not currently
supported by Linux. Trouble is all the examples I have found so far (
usb-skel.c and others ) give an example of a driver that is a middle man
between a userspace application and the device. So there are no examples on
how to actually send the data to the device.

In my case, the device I am using simply uses the machine it is connected
to as an internet connection. The driver should send/receive data from the
device and allow the device to go and make TCP connections to the internet.

( The device is intelligent ).

Are there any examples that are available that would help me get started on
this?

Basically the USB device sends plain text with words like "connect, send,
recv, close" and the driver needs to make connections, send/receive data
(TCP ) and close the connection.

Thanks,

David

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



Relevant Pages

  • [bug] stuck localhost TCP connections, v2.6.26-rc3+
    ... That connection has been stuck for 9 ... and it occured on two boxes, both are SMP ... # Bus options ... # Generic Driver Options ...
    (Linux-Kernel)
  • Re: HP JetDirect (now media center and HP 3310)
    ... The problem I am having is not with a HP printer driver. ... In this situation the drive is accessible through Windows Explorer. ... Windows Explorer to force a connection and get Transfer Images to work. ... I am not sure if this will completely work since the setup program may do ...
    (microsoft.public.windowsxp.print_fax)
  • Re: HP JetDirect (now media center and HP 3310)
    ... The problem I am having is not with a HP printer driver. ... In this situation the drive is accessible through Windows Explorer. ... Windows Explorer to force a connection and get Transfer Images to work. ... I am not sure if this will completely work since the setup program may do ...
    (microsoft.public.windowsxp.print_fax)
  • Re: Driver AutoCommit issue
    ... Isn't the XA driver for the distributed transaction, ... the connection pool was getting created. ... When in the code do you do a commit? ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Re: TCP/IP over USB
    ... So I think that your best chance is getting the RNDIS driver to work ... sort of a device it is and the PC loads a corresponding driver for it. ... The Advanced option is set via the ActiveSync ... Use the ActiveSync connection ...
    (microsoft.public.windowsce.embedded.vc)