Tobias Arp wrote:
Hi, i want to write a gadget driver for the AT91RM9200. I started with the skeleton udc driver skel_udc.c . What is similar to struct device (which only seems to exist in kernel 2.5 and higher) in kernel 2.4.26 ?

There is no analogue of "struct device" in older kernels; it's part of the driver model work. You don't need the driver model to support 2.4 though ... see what the other controller drivers do instead. (I usually suggest goku_udc as the simplest driver to study, for someone starting out.)

Note that the "gadget driver" is the hardware-neutral driver that
goes on top of the controller driver, and gives the system some
sort of functionality like "printer" or "network link".


Is it right that i do not need request_mem_region when the udc-controller registers are statically ioremapped ?

The region is requested mostly to make sure that two different drivers don't try to "own" the hardware at the same time; so you should always do that.

- Dave




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&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