Method and system for latency-independent peripheral device
identification. The computer system receives an interrupt from a
peripheral device via a communications port. In response, an interrupt
notification message is posted to alert a notification handler, and
compliant peripheral class is determined. The voltage on a device may
sense pin of the communications port for this determination. If the
interrupt is indicative of the compliant peripheral class and the
communications port is inactive, the port is opened, and an inquiry is
sent and a response is received. If a response is received within a
predetermined time period, an identification notification message is
posted based on the response including information for classifying the
peripheral device, so that a software handler registered with the
operating system can handle the identification notification message when
the software handler receives it. Thus, no time-critical interrupt
response requirement is imposed for its successful operation.