Minidriver

Hi All

  1. Is hidi2c.sys in Windows 8 is a minidriver similar to hidusb.sys ? .
  2. Does it register with hidclass driver using Hidregisterminidriver like hidusb.sys does?
  3. I looked into the inf file of hidi2c driver . in that i found mshidkmdf.sys loaded as upper filter.is it loaded bcz hidclass driver owns the dispatch table and hidi2c driver cannot access that directly ?

1 hidi2c is a hid miniport. Since it is a kmdf driver, it uses the hid shim driver
2 no, the shim driver does
3 correct

d

Bent from my phone


From: xxxxx@gmail.commailto:xxxxx
Sent: ?8/?28/?2014 7:47 PM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] Minidriver

Hi All
1. Is hidi2c.sys in Windows 8 is a minidriver similar to hidusb.sys ? .
2. Does it register with hidclass driver using Hidregisterminidriver like hidusb.sys does?
3. I looked into the inf file of hidi2c driver . in that i found mshidkmdf.sys loaded as upper filter.is it loaded bcz hidclass driver owns the dispatch table and hidi2c driver cannot access that directly ?

—
NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

Hi Doron
Thanks for the reply . I have gone through HIDoverI2C spec and USB HID specification … In both the cases the HID descriptors format are different . In that case how will the class driver will ask for the HID descriptor from hidi2c and hidusb drivers , bcz in both the cases , the buffer size will be different rte?
Is hidclass driver is same for both windows 7 and windows 8 or Microsoft has updated the hidclass driver to accommodate HID over I2C in Windows 8 and above ?

Hidclass.sys itself is transport agnostic. It doesn’t care if it is usb or i2c, so no it wasn’t updated to be i2c aware. The minidriver normalizes the hid descriptor before reporting it to hidclass. The format of the hid descriptor, not the on the wire format, is standardized and that is what the minidriver reports to hidclass

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Tuesday, September 2, 2014 10:04 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Minidriver

Hi Doron
Thanks for the reply . I have gone through HIDoverI2C spec and USB HID specification … In both the cases the HID descriptors format are different . In that case how will the class driver will ask for the HID descriptor from hidi2c and hidusb drivers , bcz in both the cases , the buffer size will be different rte?
Is hidclass driver is same for both windows 7 and windows 8 or Microsoft has updated the hidclass driver to accommodate HID over I2C in Windows 8 and above ?


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hi Doron ,

  1. what is meant by "minidriver normalizing "…Whether hidi2c driver will send the hid descriptor in the way hidclass driver understands ?(irrespective of what is mentioned in the hid over i2c spec)

  2. “The format of the hid descriptor, not the on the wire format, is standardized and that is what the minidriver reports to hidclass”

==> I am not clear on this statement. Can you plz explain what exactly it means

To answer both, what I mean is that you are focusing too much on the on the wire format. The miniport’s job is to take the data off of the wire and makes sure it is reported in the bus agnostic format that the HID spec defines. The whole point of the miniport is to translate between bus agnostic requests and data and apply that it in a bus specific way.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Tuesday, September 2, 2014 5:44 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Minidriver

Hi Doron ,

  1. what is meant by "minidriver normalizing "…Whether hidi2c driver will send the hid descriptor in the way hidclass driver understands ?(irrespective of what is mentioned in the hid over i2c spec)

  2. “The format of the hid descriptor, not the on the wire format, is standardized and that is what the minidriver reports to hidclass”

==> I am not clear on this statement. Can you plz explain what exactly it means


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer