Re: writing usb drivers under 8.x

2010-08-26 Thread Jim Bryant
benefit from having both drivers once completed. Jim Bryant wrote: i have some usb devices, in the hid class, that i am wanting to write some drivers for. seeing that one of these previously had an older non-submitted driver for 5.x-7.x online, i thought that might be a good starting point

Re: writing usb drivers under 8.x

2010-08-26 Thread Jim Bryant
Actually, all of my test programs (for testing my reverse engineering efforts) have been done in libusb-1.0. I would actually like to write kernel-level drivers though for these. Hans Petter Selasky wrote: On Thursday 26 August 2010 19:59:18 Jim Bryant wrote: i have some usb devices

Re: writing usb drivers under 8.x

2010-08-26 Thread Jim Bryant
does the libusb interface apply to kernel-level drivers, or is it userland? Hans Petter Selasky wrote: On Thursday 26 August 2010 22:32:44 Hans Petter Selasky wrote: where can i find documentation on this subsystem? man libusb --HPS

Re: tiny ukbd num lock issue

2010-08-26 Thread Jim Bryant
under x for reverse behavior. Alexander Best wrote: On Thu Aug 26 10, Jim Bryant wrote: when you had to press it twice, was that only for the first attempt, and did pressing it once after that turn it off? and once after that, on? exactly. it might be a bit easier to understand if i

imon vfd driver complexity question

2010-08-27 Thread Jim Bryant
ok, here's a dilemma... the imon vfd has a bargraph mode (called equalizer mode using the soundgraph imon software in winblowz) has a certain level of wierdness in it. i am leaning towards inclucing it's data massaging into the kernel driver, as it's use is a bit touchy. it has off and

Re: imon vfd driver complexity question

2010-08-27 Thread Jim Bryant
yes, i will use mutexes in the kernel code. what i pasted was one function from a userland libusb-1 test program. the imonSendCommand(); function encapsulates the control request. Hans Petter Selasky wrote: On Friday 27 August 2010 09:17:24 Jim Bryant wrote: is this level of bit-fiddling

Re: imon vfd driver complexity question

2010-08-27 Thread Jim Bryant
:24 Jim Bryant wrote: unsigned char Try to use the: uint8_t uint16_t uint32_t int8_t int16_t int32_t types when describing data types. Also think about endianness and that 32-bit reads/writes must be 32-bit aligned. Else use UGETDW() and similar functions. --HPS

Re: writing usb drivers under 8.x

2010-08-27 Thread Jim Bryant
26 August 2010 23:29:35 Jim Bryant wrote: Actually, all of my test programs (for testing my reverse engineering efforts) have been done in libusb-1.0. I would actually like to write kernel-level drivers though for these. Then you should look at existing drivers in /sys/dev/usb/xxx

Re: writing usb drivers under 8.x

2010-08-28 Thread Jim Bryant
ULPT_IFQ_MAXLEN 2 /* units */ #define UR_GET_DEVICE_ID0x00 Hans Petter Selasky wrote: On Friday 27 August 2010 10:53:38 Jim Bryant wrote: it'll be a pair of character devices. lirc compat is a goal of this project though. most of the work is done

Re: writing usb drivers under 8.x

2010-08-29 Thread Jim Bryant
.LASFDE1-.Lframe1 .long .LFB3 .long .LFE3-.LFB3 .uleb128 0x0 .byte 0x4 .long .LCFI0-.LFB3 .byte 0xe .uleb128 0x10 .align 8 .LEFDE1: .ident GCC: (GNU) 4.2.1 20070719 [FreeBSD] per...@pluto.rain.com wrote: Jim Bryant kc5vdj.free

Re: writing usb drivers under 8.x

2010-08-29 Thread Jim Bryant
will help.) Jim Bryant wrote: u.. you were saying??? 8:58:44pm orb(19): cat bs3.c #include stdio.h int main(void) { int toshiftornottoshift = 0x8000; printf(%d\n, toshiftornottoshift); return(0); } 8:58:48pm orb(20): cc -S -O2 -o bs3.s bs3.c 8:58:53pm orb(21): cat bs3.s .file

Re: writing usb drivers under 8.x

2010-08-29 Thread Jim Bryant
.LEFDE1: .ident GCC: (GNU) 4.2.1 20070719 [FreeBSD] 9:22:00pm orb(16): Jim Bryant wrote: well, i can't speak for KR 1978, as i can't currently find my copy, but, for a quick brush up, you might want to read pages 80 and 81 from KR 2nd Ed. 1988. your idea that the preprocessor

Re: Porting an USB software from linux (libusb)

2010-08-30 Thread Jim Bryant
easy fix. just drop the _np the functions are there under legacy naming. Alexander Leidinger wrote: Hi, I try to port a linux userland USB program and I get the following error message when trying to link to libusb (current as of r210105): ---snip--- cc -lusb -lm -o fowsr fowsr.o

Re: Porting an USB software from linux (libusb)

2010-08-31 Thread Jim Bryant
ah, i'm under -stable. Alexander Leidinger wrote: Quoting Jim Bryant kc5vdj.free...@gmail.com (from Mon, 30 Aug 2010 19:22:49 -0500): easy fix. just drop the _np the functions are there under legacy naming. Not in my revision of FreeBSD-current. I commented it out like HPS suggested

request for usbdevs additions

2011-05-11 Thread Jim Bryant
Can someone please add the following entries to usbdevs? vendor SOUNDGRAPH0x15C2 Soundgraph, Inc. product SOUNDGRAPH IMON_VFD 0x0044 Antec Veris Elite VFD Panel and Remote product SOUNDGRAPH SILVERSTONE_LC16 0xFFDC Silverstone LC16 VFD Panel and Remote

Re: request for usbdevs additions

2011-05-12 Thread Jim Bryant
thanks, I shall take a look at youtube when I can. The context diff patch is attached, cwd for the patch should be /usr/src. Hans Petter Selasky wrote: On Wednesday 11 May 2011 22:57:32 Jim Bryant wrote: Can someone please add the following entries to usbdevs? vendor SOUNDGRAPH

Re: request for usbdevs additions

2011-05-13 Thread Jim Bryant
Antec Veris Elite VFD Panel, Knob, and Remote + product SOUNDGRAPH SSTONE_LC160xffdc Silverstone LC16 VFD Panel, Knob, and Remote + /* Speed Dragon Multimedia products */ product SPEEDDRAGON MS3303H0x110b MS3303H Serial Jim Bryant wrote: thanks, I shall take a look

Re: request for usbdevs additions

2011-05-19 Thread Jim Bryant
thank you. i forgot to add.. ultimately, this was intended for -STABLE Hans Petter Selasky wrote: On Thursday 12 May 2011 22:15:47 Jim Bryant wrote: thanks, I shall take a look at youtube when I can. The context diff patch is attached, cwd for the patch should be /usr/src. http

traditional syscalls with DRIVER_MODULE ????

2011-05-24 Thread Jim Bryant
i'm in the process of both learning the driver interface and writing a usb driver for a multimedia product. i'm kind of stuck here, as i'm seeing two distinct, and possibly mutually exclusive interfaces here. the test framework i'm currently using is the DRIVER_MODULE macro, but it lacks

Re: traditional syscalls with DRIVER_MODULE ????

2011-05-25 Thread Jim Bryant
/cdevsw? i would prefer to not have DRIVER_MODULE create the device nodes. am i missing something? i again apologize for the newbie questions... jim Hans Petter Selasky wrote: On Tuesday 24 May 2011 23:19:27 Jim Bryant wrote: if i add such an interface to the current DRIVER_MODULE version

Re: traditional syscalls with DRIVER_MODULE ????

2011-05-26 Thread Jim Bryant
excuse me while i pull my head out of my posterior... yup. it wasn't DRIVER_MODULE() doing it... it was the usb_fifo_attach i think i'm back on the right track now... thanks for pointing me in the right direction. Hans Petter Selasky wrote: Hi, On Wednesday 25 May 2011 21:02:29 Jim

problem with urtw

2011-06-09 Thread Jim Bryant
I just bought one of those chinese (apparently the same unit relabeled and being sold by multiple companies) realtek RTL8187B wifi units. The price is right. The label name on this one is WiFySky 1500mW. other than the fact that the case it is enclosed in is really cheesy, there is a more

Re: problem with urtw

2011-06-10 Thread Jim Bryant
.. any more ideas? If anyone wants to play themselves, look on ebay for WiFiSky 1500mW B/G with 6dBi antenna. It seems that half of Hong Kong is selling these for under $20 USD. Bernhard Schmidt wrote: On Thursday, June 09, 2011 22:34:18 Jim Bryant wrote: I just bought one of those chinese