Hello
I would like to make a device driver for printer.
So, I want to use g_serial to develop device driver, but there are some
questions.

There are two requests. Those are Standard Request and Class-Specific
Request.
In g_serial, it handles Standard Request in gs_setup function which is
called by net2280_irq in net2280.c
However, it does not handle Class-Specific Request.
Of course, it does not need to handle Class-Specific Request, but if I want
to insert codes handling Class-Specific Request into g_serial.c, how can I
do it?

In file_storage.c from /driver/usb/gadget, there are two parts handling
Standard Request and Class-Specific Request. However, in my opinion, there
is one part handling Requests in net2280.c, that is...
 tmp = dev->driver->setup (&dev->gadget, &u.r); 
If so, how file_storage.c distinguishes two Requests?
"distinguish" means that one case, it calls 'class_setup_req' function and
another case, it calls 'standard_setup_req'.

If you know any references for gadget driver of printer, could you tell me
the way how I get?




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to