Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Modify USB device descriptor by filter driver

Reply
Thread Tools Display Modes

Modify USB device descriptor by filter driver

 
 
Abei
Guest
Posts: n/a

 
      04-27-2010
Hi, All
I want to build a lower filter driver to modify my USB device descriptor
before USB host controller driver get it. Can I achieve this goal?
Thanks a lot!

--
Abei
 
Reply With Quote
 
 
 
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      04-27-2010
who do you want to see the changed descriptor? ie what affect do you want it
to have? do you want the host controller to change the way it enumerates
the device? or the client driver that loads on top of the enumerated device
sees the change?

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"Abei" <> wrote in message
news:B693042B-CB1C-41C9-8197-...
> Hi, All
> I want to build a lower filter driver to modify my USB device descriptor
> before USB host controller driver get it. Can I achieve this goal?
> Thanks a lot!
>
> --
> Abei


 
Reply With Quote
 
Abei
Guest
Posts: n/a

 
      04-28-2010
Hi, Doron!
Yes, I want the host controller to enumerate my device as a compsite device.
My device reports it as a single function device. It will cause S3/S4 resume
system failed. But if I modify the device descriptor to a compsite device, it
can't duplicate this issue.
Since device descriptor (firmed in chip) can't be changed, I want to modify
it in a lower filter driver before host controller driver gets my devcie
descriptor. Can this lower filter driver achieve this goal?
Thank you very much!!
--
Abei


"Doron Holan [MSFT]" wrote:

> who do you want to see the changed descriptor? ie what affect do you want it
> to have? do you want the host controller to change the way it enumerates
> the device? or the client driver that loads on top of the enumerated device
> sees the change?
>
> d
>
> --
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "Abei" <> wrote in message
> news:B693042B-CB1C-41C9-8197-...
> > Hi, All
> > I want to build a lower filter driver to modify my USB device descriptor
> > before USB host controller driver get it. Can I achieve this goal?
> > Thanks a lot!
> >
> > --
> > Abei

>
> .
>

 
Reply With Quote
 
Tim Roberts
Guest
Posts: n/a

 
      04-28-2010
Abei <> wrote:
>
>Yes, I want the host controller to enumerate my device as a compsite device.
>My device reports it as a single function device. It will cause S3/S4 resume
>system failed. But if I modify the device descriptor to a compsite device, it
>can't duplicate this issue.


That is a driver issue, not a hardware issue. When you make it composite,
all you are doing is adding another driver to the stack. Anything it can
do, you can do in YOUR driver. What class of device is this?

>Since device descriptor (firmed in chip) can't be changed, I want to modify
>it in a lower filter driver before host controller driver gets my devcie
>descriptor. Can this lower filter driver achieve this goal?


No. The host controller driver is the bottom-most driver in the USB stack.
It performs transfers through DMA. It doesn't send any requests down for
you to filter, because there IS no driver below it.
--
Tim Roberts,
Providenza & Boekelheide, Inc.
 
Reply With Quote
 
Abei
Guest
Posts: n/a

 
      04-28-2010
Hi, Tim!
Our device driver can pass Windows 7/vista/XP x86 & x64 all device DTM test
items and get log already.
But it failed on system DTM test for a type of netbook.
We can't know where is wrong of our driver.

--
Abei


"Tim Roberts" wrote:

> Abei <> wrote:
> >
> >Yes, I want the host controller to enumerate my device as a compsite device.
> >My device reports it as a single function device. It will cause S3/S4 resume
> >system failed. But if I modify the device descriptor to a compsite device, it
> >can't duplicate this issue.

>
> That is a driver issue, not a hardware issue. When you make it composite,
> all you are doing is adding another driver to the stack. Anything it can
> do, you can do in YOUR driver. What class of device is this?
>
> >Since device descriptor (firmed in chip) can't be changed, I want to modify
> >it in a lower filter driver before host controller driver gets my devcie
> >descriptor. Can this lower filter driver achieve this goal?

>
> No. The host controller driver is the bottom-most driver in the USB stack.
> It performs transfers through DMA. It doesn't send any requests down for
> you to filter, because there IS no driver below it.
> --
> Tim Roberts,
> Providenza & Boekelheide, Inc.
> .
>

 
Reply With Quote
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      04-28-2010
start adding logging to your driver and try to root cause it. changing how
the device enumerates is a band aid, not the real fix (and as tim pointed
out, there is no way to do what you want to do here, there is nothing for
you to filter)

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"Abei" <> wrote in message
news:725E07C8-8A4C-4B78-B079-...
> Hi, Tim!
> Our device driver can pass Windows 7/vista/XP x86 & x64 all device DTM
> test
> items and get log already.
> But it failed on system DTM test for a type of netbook.
> We can't know where is wrong of our driver.
>
> --
> Abei
>
>
> "Tim Roberts" wrote:
>
>> Abei <> wrote:
>> >
>> >Yes, I want the host controller to enumerate my device as a compsite
>> >device.
>> >My device reports it as a single function device. It will cause S3/S4
>> >resume
>> >system failed. But if I modify the device descriptor to a compsite
>> >device, it
>> >can't duplicate this issue.

>>
>> That is a driver issue, not a hardware issue. When you make it
>> composite,
>> all you are doing is adding another driver to the stack. Anything it can
>> do, you can do in YOUR driver. What class of device is this?
>>
>> >Since device descriptor (firmed in chip) can't be changed, I want to
>> >modify
>> >it in a lower filter driver before host controller driver gets my devcie
>> >descriptor. Can this lower filter driver achieve this goal?

>>
>> No. The host controller driver is the bottom-most driver in the USB
>> stack.
>> It performs transfers through DMA. It doesn't send any requests down for
>> you to filter, because there IS no driver below it.
>> --
>> Tim Roberts,
>> Providenza & Boekelheide, Inc.
>> .
>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Game Compatibility BCurrey Windows Vista Games 6 11-29-2007 08:11 PM
BUGCODE_USB_DRIVER with external USB HDD PHILIPS Deathwing00 Windows Vista Hardware 11 06-15-2007 07:02 PM
Going Golfing but not with Vista markbyrn Windows Vista Games 15 03-08-2007 10:59 AM
americas army stuttering under vista premium ernie Windows Vista Games 0 02-27-2007 10:20 PM
problem in dxdiag Peewee64 Windows Vista Games 0 02-14-2007 09:49 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59