max at bruningsystems.com wrote:
> Alan Coopersmith wrote:
>   
>> max at bruningsystems.com wrote:
>>   
>>     
>>> Laszlo (Laca) Peter wrote:
>>>     
>>>       
>>>> Sounds awesome, looking forward to using it :)
>>>>  
>>>> I suggest contacting the Tamarack project [1] regarding HAL
>>>> and the X Window System community [2] regarding X.Org.
>>>> Albert Lee (Cc'd - Trisk) has also done some work porting
>>>> linuxwacom to Solaris.  The spec files[3] are here:
>>>> http://pkgbuild.svn.sourceforge.net/viewvc/pkgbuild/spec-files-extra/trunk/SFExorg-input-wacom.spec?view=log
>>>>   
>>>>       
>>>>         
>>> I have taken a look at the spec file, and I guess I don't understand 
>>> it.  It looks
>>> like a specification for building the linux Xorg (xdrv) package for Solaris.
>>> How is this supposed to work without kernel support?  Or am I missing 
>>> something?
>>>     
>>>       
>> Most Xorg drivers have no specific kernel counterpart but use generic
>> kernel drivers.   Keyboard & mouse have specific drivers, but other
>> input drivers generally use the generic serial or USB drivers to
>> connect to the device and handle whatever protocol is needed in the user
>> space code.   The x86 video drivers use /dev/xsvc to reach right through
>> the kernel to the PCI config space and device registers/memory.
>>   
>>     
> Great.  My new kernel driver (Streams module) went from 1500 lines of code
> down to 500 lines.  In fact, maybe I don't need this at all.  I could use
> user level code to send the appropriate info directly to the hid driver...
>   
>> Of course, this isn't a good situation, and we know kernel drivers
>> are needed for supporting things like suspend-and-resume, but haven't
>> had the time, hardware, or information to write kernel drivers for
>> all of the devices we have Xorg drivers for.
>>
>>   
>>     
> Yes, but for usb hid devices, suspend/resume should be handled by the 
> HID driver, no?
>   

If this is a USB HID device, then ideally you should not need to touch 
the kernel driver at all.

What you should do is add handling for the HID reports to the userland 
consumers (the Xorg driver, I guess.)

    - Garrett
> max
>
>
> _______________________________________________
> driver-discuss mailing list
> driver-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/driver-discuss
>   


Reply via email to