Hi, Doron,
I guess your suggestion is just what I want to do,
Well, I don't really know how to implement the following...
>"Have this driver enumerate a
> PDO, use the KMDF kbdfiltr driver as an example. The PDO you will be
> enumerating is not raw though. On top of this new PDO you will install
> your HID miniport."
And also how to combine hid and mouse upper filter into one inf
file...
More details would be appreciated...
(do that when bus_relation_pnp?)
So far we have tried to install a virtual hid driver and set i8042prt
as its lower filter,,
well, we try to send out internal_mouse_connect down to i8042prt, it
is ok,
but i8042prt failed to send out ps2 hook to our driver...
We are trying Eliyas's suggestion,, well not finished yet...
Any more details would be appreciated!
Thanks.
-chueh888
On 8 29 , 12 44 , "Doron Holan [MSFT]" <dor...@online.microsoft.com>
wrote:
> as the previous owner of i8042prt, you do not want to go down this path, it
> will be very complicated. I think what you can do is insert a device upper
> filter driver between i8042prt and mouclass. Have this driver enumerate a
> PDO, use the KMDF kbdfiltr driver as an example. The PDO you will be
> enumerating is not raw though. On top of this new PDO you will install
> your HID miniport. You can create a custom i/o interface to get the mouse
> input data from your filter. This way you leave the i8042prt stack in tact
> and create a 2nd HID stack on the side.
>
> 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.
>
> "Maxim S. Shatskih" <ma...@storagecraft.com> wrote in messagenews:.. .
>
>
>
> > Note: PS/2 devices are not designed (even electrically) for hotplug.
>
> > --
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > ma...@storagecraft.com
> >http://www.storagecraft.com
>
> > "chueh8" <steelch...@gmail.com> wrote in message
> >news: oups.com...
> >> Hi, Eliyas
> >> Thanks for your hint!
> >> 1. If the stack should be the one you described, then how the inf
> >> would be?
> >> 2. I have the similar thinking as yours, somewhat different is that I
> >> modified the vhidmini sample, and ask i8042prt to be a lower filter of
> >> vhidmini, is it the same as your comment? (and now we are trying to
> >> get hooked by i8042prt..)
> >> 3. Actually, our device is a digitier with different interface to
> >> system, USB/UART/PS2, for USB I/F we go as the HID class and no more
> >> vendor driver needed, we could trasfer digitier data to system with
> >> inbox hid driver. For UART I/F, we modify the hidpen sample, which is
> >> a hid mini driver but ask serial.sys as its lower filter. As to
> >> report to system that we are a hid digitier, also to be the same hid
> >> interface for our utility, we'd like to write a driver which report to
> >> system we are a hid digitier but hook into ps2 stack.
> >> Any comment or hint would be welcomed and appreciated!
> >> -chueh888
>
> >> On 8 27 , 10 51 , "Eliyas Yakub [MSFT]"
> >> <eliy...@online.discussion.microsoft.com> wrote:
> >> > No you cannot replace kbdclass. It's a class filter driver and it's
> > required
> >> > even for hid keyboard devices. You have to install the i8042prt driver
> >> > as a
> >> > HID device (or custom class device - PS2) with an upper device filter.
> >> > This
> >> > is required to preven the kbdclass from attaching to your stack. The
> >> > job of
> >> > the device filter is to register with HIDCLASS as hid minidriver and
> > emulate
> >> > a HID keyboard device. The filter then would talk to the port driver to
> >> > get
> >> > the data and feed it to the HIDclass as hid reports.
>
> >> > The final stack would look like:
>
> >> > kbdclass - class filter
> >> > kdbhid - FDO
> >> > hidclass - PDO
> >> > hidmini-driver - as upper filter
> >> > i8042prt - FDO
> >> > Root bus - PD0
>
> >> > Question to the OP, why do you want to make your PS2 device appear as a
> >> > device?
>
> >> > --
> >> > - This posting is provided "AS IS" with no warranties, and confers no
> >> > rights.- -
>
> - -