In XP DDK USB sample code, it can detect current USB speed mode of device.
It creates a Irp with IRP_MJ_PNP/IRP_MN_QUERY_INTERFACE and
pass a USB_BUS_INTERFACE_USBDI_V1 data structure as parameter.
Irp is passed down to USB hub driver and the data structure is filled.
There is one function member “IsDeviceHighSpeed” in
USB_BUS_INTERFACE_USBDI_V1.
It can be used to know the current usb mode.
However, DDK document said that this interface is only available on XP and
later OS.
How does the USB device driver detect the current USB mode on Win98/ME/2000?
Best Regards
Jack Huang
the docs are unclear here. What it emans to say is that on win98/me/2000
as they originally shipped on the CD, they do not support this
interface. Furthermore, they originally shipped without usb 2.0 support.
You can install the usb 2.0 stack though and you can still query for
this interface on win98/me/2000. If you have the original stack, the QI
fails and you know you are at 1.1 speed. If it succeeds, you can make
this function call to determine your speed.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of huangjj
Sent: Friday, June 22, 2007 3:51 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How does USB device driver detect USB speed mode on
Win98/ME/2000?
In XP DDK USB sample code, it can detect current USB speed mode of
device.
It creates a Irp with IRP_MJ_PNP/IRP_MN_QUERY_INTERFACE and
pass a USB_BUS_INTERFACE_USBDI_V1 data structure as parameter.
Irp is passed down to USB hub driver and the data structure is filled.
There is one function member “IsDeviceHighSpeed” in
USB_BUS_INTERFACE_USBDI_V1.
It can be used to know the current usb mode.
However, DDK document said that this interface is only available on XP
and
later OS.
How does the USB device driver detect the current USB mode on
Win98/ME/2000?
Best Regards
Jack Huang
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Thanks for your help!
Does “install usb 2.0 stack” mean install vendor supplied EHCI host driver?
Do all vendor supplied drivers support this interface query?
Best Regards
Jack Huang
“Doron Holan”
the docs are unclear here. What it emans to say is that on win98/me/2000
as they originally shipped on the CD, they do not support this
interface. Furthermore, they originally shipped without usb 2.0 support.
You can install the usb 2.0 stack though and you can still query for
this interface on win98/me/2000. If you have the original stack, the QI
fails and you know you are at 1.1 speed. If it succeeds, you can make
this function call to determine your speed.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of huangjj
Sent: Friday, June 22, 2007 3:51 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How does USB device driver detect USB speed mode on
Win98/ME/2000?
In XP DDK USB sample code, it can detect current USB speed mode of
device.
It creates a Irp with IRP_MJ_PNP/IRP_MN_QUERY_INTERFACE and
pass a USB_BUS_INTERFACE_USBDI_V1 data structure as parameter.
Irp is passed down to USB hub driver and the data structure is filled.
There is one function member “IsDeviceHighSpeed” in
USB_BUS_INTERFACE_USBDI_V1.
It can be used to know the current usb mode.
However, DDK document said that this interface is only available on XP
and
later OS.
How does the USB device driver detect the current USB mode on
Win98/ME/2000?
Best Regards
Jack Huang
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Jack Huang wrote:
Does “install usb 2.0 stack” mean install vendor supplied
EHCI host driver?
No, if you upgrade to SP4 you will pick up a Microsoft-supplied EHCI stack. You can do “update drivers” on your 2.0 controllers (loaded as UHCI) to upgrade afterward.
May I say that it’s impossible to detect USB speed mode on Win98/ME/2000
if I install vendor supplied EHCI driver?
Jack Huang
…
> Jack Huang wrote:
>
>> Does “install usb 2.0 stack” mean install vendor supplied
>> EHCI host driver?
>
> No, if you upgrade to SP4 you will pick up a Microsoft-supplied EHCI
> stack. You can do “update drivers” on your 2.0 controllers (loaded as
> UHCI) to upgrade afterward.
>
You have to ask the 3rd party vendor. How many of the documented
interfaces they support is their decision, I would assume that for any
3rd party ehci driver to be viable, it would have to support this QI
interface.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of huangjj
Sent: Saturday, June 23, 2007 12:45 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] How does USB device driver detect USB speed mode on
Win98/ME/2000?
May I say that it’s impossible to detect USB speed mode on Win98/ME/2000
if I install vendor supplied EHCI driver?
Jack Huang
…
> Jack Huang wrote:
>
>> Does “install usb 2.0 stack” mean install vendor supplied
>> EHCI host driver?
>
> No, if you upgrade to SP4 you will pick up a Microsoft-supplied EHCI
> stack. You can do “update drivers” on your 2.0 controllers (loaded as
> UHCI) to upgrade afterward.
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer