Re: Patch to allow dynamic USB quirks at boot

2015-09-23 Thread Mehmet Erol Sanliturk
On Wed, Sep 23, 2015 at 9:26 AM, Warner Losh wrote: > Nearly all the PCI drivers have tables of vendor/device IDs. > They all have slightly different forms, and none of them use > a common macro / format like USB. So each driver needs a > line or two to describe the table so we can extract the da

Re: Patch to allow dynamic USB quirks at boot

2015-09-23 Thread Warner Losh
Nearly all the PCI drivers have tables of vendor/device IDs. They all have slightly different forms, and none of them use a common macro / format like USB. So each driver needs a line or two to describe the table so we can extract the data from the .ko. Some drivers don't have lists, and those will

Re: Patch to allow dynamic USB quirks at boot

2015-09-22 Thread Mehmet Erol Sanliturk
On Tue, Sep 22, 2015 at 2:38 PM, Warner Losh wrote: > I need help with PCI driver marking. Grab my patches and we can talk. > > Basically, it marks all the .ko modules in a similar way that we do > inter-module > dependencies with plug and play info. kldxref then takes this data and > stuffs > it

Re: Patch to allow dynamic USB quirks at boot

2015-09-22 Thread Warner Losh
I need help with PCI driver marking. Grab my patches and we can talk. Basically, it marks all the .ko modules in a similar way that we do inter-module dependencies with plug and play info. kldxref then takes this data and stuffs it in loader.hints. I also need to write something that will parse th

Re: Patch to allow dynamic USB quirks at boot

2015-09-22 Thread Mehmet Erol Sanliturk
On Mon, Sep 21, 2015 at 11:58 PM, Hans Petter Selasky wrote: > On 09/22/15 00:58, Mehmet Erol Sanliturk wrote: > >> On Mon, Sep 21, 2015 at 2:16 PM, Maxime Soulé >> wrote: >> >> One of my wishes is to move ALL of the device definition information for ( >> NIC , USB , and other devices ) into file

Re: Patch to allow dynamic USB quirks at boot

2015-09-21 Thread Hans Petter Selasky
On 09/22/15 00:58, Mehmet Erol Sanliturk wrote: On Mon, Sep 21, 2015 at 2:16 PM, Maxime Soulé wrote: One of my wishes is to move ALL of the device definition information for ( NIC , USB , and other devices ) into files where for each device ( a unique file to dedicated itself containing informat

Re: Patch to allow dynamic USB quirks at boot

2015-09-21 Thread Mehmet Erol Sanliturk
On Mon, Sep 21, 2015 at 2:16 PM, Maxime Soulé wrote: > Le 21.09.2015 08:51, Hans Petter Selasky a écrit : > > On 09/20/15 23:42, Maxime Soulé wrote: > >> Hi all, > >> > >> I own a X9800 Tecknet mouse with 3 side buttons. When I plug it in, a > >> ukbd device appears handling each 3 buttons with k

Re: Patch to allow dynamic USB quirks at boot

2015-09-21 Thread Maxime Soulé
Le 21.09.2015 08:51, Hans Petter Selasky a écrit : > On 09/20/15 23:42, Maxime Soulé wrote: >> Hi all, >> >> I own a X9800 Tecknet mouse with 3 side buttons. When I plug it in, a >> ukbd device appears handling each 3 buttons with key modifiers Control, >> Shift and Alt, with one device uhid. >> >>

[Bug 203249] [patch] Patch to allow dynamic USB quirks at boot (USB 2 stack)

2015-09-21 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203249 Hans Petter Selasky changed: What|Removed |Added CC||hsela...@freebsd.org

[Bug 203249] [patch] Patch to allow dynamic USB quirks at boot (USB 2 stack)

2015-09-21 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203249 Bug ID: 203249 Summary: [patch] Patch to allow dynamic USB quirks at boot (USB 2 stack) Product: Base System Version: 10.2-RELEASE Hardware: Any OS

Re: Patch to allow dynamic USB quirks at boot

2015-09-20 Thread Hans Petter Selasky
On 09/20/15 23:42, Maxime Soulé wrote: Hi all, I own a X9800 Tecknet mouse with 3 side buttons. When I plug it in, a ukbd device appears handling each 3 buttons with key modifiers Control, Shift and Alt, with one device uhid. As I wanted to see these buttons as buttons under X and not as key mo

Patch to allow dynamic USB quirks at boot

2015-09-20 Thread Maxime Soulé
Hi all, I own a X9800 Tecknet mouse with 3 side buttons. When I plug it in, a ukbd device appears handling each 3 buttons with key modifiers Control, Shift and Alt, with one device uhid. As I wanted to see these buttons as buttons under X and not as key modifiers, I first thought about using USB