Re: could WDM sample code: selsusp work on any platform?
- From: matt_sykes <zzebowa@xxxxxxxxxxx>
- Date: Fri, 29 Aug 2008 00:52:24 -0700 (PDT)
On 28 Aug, 18:46, "Doron Holan [MSFT]" <dor...@xxxxxxxxxxxxxxxxxxxx>
wrote:
just b/c you move to KMDF does not mean you through away alot of your code.
i know alot of companies with drivers that have 100 of thousands of lines of
source that have easily moved to kmdf. KMDF changes how the driver
initially processes incoming io, the way you handle an isr or dpc or compute
the answer does not change at all.
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"matt_sykes" <zzeb...@xxxxxxxxxxx> wrote in message
news:53afb65b-d3c8-4f7c-b3e1-2752e11016e6@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 27 Aug, 19:48, "Doron Holan [MSFT]" <dor...@xxxxxxxxxxxxxxxxxxxx>
wrote:
you are right. usbsamp is a replacement for bulkusb.
src\kmdf\osrusbfx2\sys\final shows how to enable USB SS. When starting
from
scratch, esp for usb SS, i see really no point in going to WDM. usb SS is
a
pia to get right and the sample that you start from will be outdated by
the
time you release. at least with KMDF, if we find bugs in the
implemenation,
you pick up the fixes for free in the next minor version release
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no
rights.
"matt_sykes" <zzeb...@xxxxxxxxxxx> wrote in message
news:5c5c3a37-43a5-49bf-85ae-547730495a31@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 26 Aug, 21:03, "Doron Holan [MSFT]" <dor...@xxxxxxxxxxxxxxxxxxxx>
wrote:
you do NOT want to use this sample, it is full of bugs. Get the latest
WDK
(6001) and use the KMDF usbsamp sample. KMDF's implementation of usb
selective suspend is much more robust.
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no
rights.
"bluestar" <bluestar8...@xxxxxxxxx> wrote in message
news:b7d548cf-a54e-4963-945b-4e2762e02496@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I found the WDM sample code: selsusp and it will work well when the
device plug-in.
But I have some question if anyone know, please tell me.
(1) can this sample code work on XP-64, Vista 32/64 and Vista SP1
32/64?
(2) If can't work, how to fix it to match all platforms or any sample
to replace it?
(3) If the hardware is ok, does this sample code pass WHQL?
Thanks for your kindly answer.- Hide quoted text -
- Show quoted text -
6001.18000 must be old since the usbsamp it contains doesnt do sel
susp.
But the question was how to implement sel susp in a WDM driver, so
refering him to a KMDF source isnt very helpful even if it is in the
latest 6001 ddk.
Rather than develop KMDF Microsoft would have done better to have
doecumented WDM properly, suplied some propper sample code, and taken
the bugs out of the system components that cause such headaches for
driver developers.
So, apart from Walter Oneys Generic.sys code, IS there any decent
sample WDM sel susp code available?- Hide quoted text -
- Show quoted text -
SS is a pain, but should one be forced to move to KMDF just to
implemet it? How about the developement time this forces on
companies that have vast libraries of WDM code going back to NT 4 who
now might want to add SS? You are saying they must re-write the
entire driver!
IMO, Walter Oneys sample code for SS is the best to follow, with the
exception that it doesnt work with usbccgp.sys.- Hide quoted text -
- Show quoted text -
I must admit I havent looked at KMDF in much detail but if one can
just change the interface of the driver then perhaps it does offer
some advantages. Does it also run on XP (I seem to recall from
somewhere that it does)?
.
- Follow-Ups:
- Re: could WDM sample code: selsusp work on any platform?
- From: Doron Holan [MSFT]
- Re: could WDM sample code: selsusp work on any platform?
- References:
- could WDM sample code: selsusp work on any platform?
- From: bluestar
- Re: could WDM sample code: selsusp work on any platform?
- From: Doron Holan [MSFT]
- Re: could WDM sample code: selsusp work on any platform?
- From: Doron Holan [MSFT]
- Re: could WDM sample code: selsusp work on any platform?
- From: Doron Holan [MSFT]
- could WDM sample code: selsusp work on any platform?
- Prev by Date: Re: Virtual driver
- Next by Date: RE: how to install hid mini driver in vista 64
- Previous by thread: Re: could WDM sample code: selsusp work on any platform?
- Next by thread: Re: could WDM sample code: selsusp work on any platform?
- Index(es):
Relevant Pages
|