Re: [linux-usb-devel] how can i use usb_skeleton.c

2007-04-22 Thread Alan Stern
On Sat, 21 Apr 2007, Wael Adel wrote: > forgive me, i still have another question: > i m using kerenl 2.6.18 and inside the kernel source there is > usb-skeleton.c that contains the defines the following: > > #define USB_SKEL_MINOR_BASE 192 > > 1. so when i make my device node i should make th

Re: [linux-usb-devel] how can i use usb_skeleton.c

2007-04-21 Thread Wael Adel
forgive me, i still have another question: i m using kerenl 2.6.18 and inside the kernel source there is usb-skeleton.c that contains the defines the following: #define USB_SKEL_MINOR_BASE 192 1. so when i make my device node i should make the major number 180 and the minor number 192 , 2. an

Re: [linux-usb-devel] how can i use usb_skeleton.c

2007-04-21 Thread Alan Stern
On Fri, 20 Apr 2007, Wael Adel wrote: > but if the OMAP kit have different endpoints i.e it has 2 out endpoints and > 2 in endpoints, can my both application talk to the kit in the same time. > since i cant make differenet endpoints on the host side for each > application? Your driver can registe

Re: [linux-usb-devel] how can i use usb_skeleton.c

2007-04-19 Thread Alan Stern
On Thu, 19 Apr 2007, Wael Adel wrote: > suppose that i have 2 different applications on the host and both > talks to the OMAP device so i can achieve this by making 2 device > nodes with different minor numbers or what? You don't have to do anything. Use one device node with one minor number an

Re: [linux-usb-devel] how can i use usb_skeleton.c

2007-04-19 Thread Wael Adel
On 4/19/07, Alan Stern <[EMAIL PROTECTED]> wrote: > On Thu, 19 Apr 2007, Wael Adel wrote: > > > Sorry may be i just express what i want in a wrong way so again what i > > want is to load skeleton driver on my host computer side then make it > > communicate with my OMAP kit. > > > > so i think this

Re: [linux-usb-devel] how can i use usb_skeleton.c

2007-04-19 Thread Alan Stern
On Thu, 19 Apr 2007, Wael Adel wrote: > Sorry may be i just express what i want in a wrong way so again what i > want is to load skeleton driver on my host computer side then make it > communicate with my OMAP kit. > > so i think this could be the steps for using skeleton driver: > 1) i should ch

Re: [linux-usb-devel] how can i use usb_skeleton.c

2007-04-19 Thread Wael Adel
On 4/19/07, Alan Stern <[EMAIL PROTECTED]> wrote: > On Thu, 19 Apr 2007, nesta wrote: > > > hi all, > > > > 1. is skeleton.c a host driver? > > It is an example of how to write a USB device driver. However it does run > on the host computer, if that's what you want to know. yes, that is what i wa

Re: [linux-usb-devel] how can i use usb_skeleton.c

2007-04-19 Thread Alan Stern
On Thu, 19 Apr 2007, nesta wrote: > hi all, > > 1. is skeleton.c a host driver? It is an example of how to write a USB device driver. However it does run on the host computer, if that's what you want to know. > second i want to ask about the steps for using skeleton.c with my device > which

[linux-usb-devel] how can i use usb_skeleton.c

2007-04-19 Thread nesta
hi all, 1. is skeleton.c a host driver? second i want to ask about the steps for using skeleton.c with my device which is OMAP kit. 1) i should change the vendor id and product id to be like the id of my kit. 2) mknod my_dev_node -c 180 0 3)in my user space application i can open (my_dev_node