简体   繁体   English

PS / 2鼠标的deviceID格式

[英]deviceID format for PS/2 mouse

I would like to know the DeviceID and PNPDeviceID format for PS/2 Mouse. 我想知道PS / 2鼠标的DeviceID和PNPDeviceID格式。 On my system Device ID for PS/2 mouse is ACPI\\PNP0F13\\4&1F1D307&0. 在我的系统上,用于PS / 2鼠标的设备ID是ACPI \\ PNP0F13 \\ 4&1F1D307&0。 So is the format is ACPI\\PNPxxxx{something} or some thing else? 那么格式是ACPI \\ PNPxxxx {something}还是其他? I mean is ACPI is mandatory for PS/2 mouse? 我的意思是PS / 2鼠标必须使用ACPI吗?

The PS/2 port is not on a bus that can discover all devices connected to it. PS / 2端口不在可以发现与其连接的所有设备的总线上。 ie it is not Plug-n-Play. 即它不是即插即用。 Therefore the OS relies on the system's firmware to find all the devices that would otherwise be undiscoverable. 因此,操作系统依赖于系统的固件来查找所有否则无法发现的设备。 On modern x86 systems, this mechanism is ACPI. 在现代x86系统上,此机制是ACPI。 However, older OSes such as Windows 95 used a different firmware interface called PNPBIOS to do the same thing. 但是,较早的操作系统(例如Windows 95)使用称为PNPBIOS的不同固件接口来执行相同的操作。 the PNP0F13 pnpid is a carry-over from PNPBIOS. PNP0F13 pnpid是PNPBIOS的残留物。 The ACPI\\ prefix is there to indicate that it was enumerated by the ACPI bus driver. 那里的ACPI \\前缀表明它是由ACPI总线驱动程序枚举的。 The Windows driver model hides such details from the mouse driver -- it can just list the pnpid in its .inf, and get an AddDevice irrespective of what platform enumerator its device was found by. Windows驱动程序模型对鼠标驱动程序隐藏了此类详细信息-它可以仅在其.inf文件中列出pnpid,并获得AddDevice,而与查找其设备的平台枚举数无关。

Of course, PS/2 mice existed before ACPI and even Win95. 当然,PS / 2小鼠早于ACPI甚至Win95。 Back when you used your mouse on DOS, the device driver just assumed the port was at a particular io or memory location, and probed those itself. 回到在DOS上使用鼠标时,设备驱动程序仅假定端口位于特定的io或内存位置,并对其进行了探测。 Fun! 好玩!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM