Patent ID: 7552371
Filing Date: 2009-06-23
Classification: G06F

Abstract:
1. A method for automatically diagnosing disability of computer peripheral devices, applied on a computer platform disposed with a CPU, a boot control unit, an interrupt controller, and a peripheral device control unit, wherein the peripheral device control unit is connected to at least one peripheral device through a bus interface for providing a disability detecting function to the peripheral device, the method for automatically diagnosing disability of computer peripheral devices at least comprising: executing an interrupt configuration data check process, comprising the steps of reading a set of inputted Interrupt Request (IRQ) routing configuration data relevant to the peripheral device; then comparing the read IRQ routing configuration data with existing data in a PCI IRQ routing table pre-established in the boot control unit; if inconsistent, sending an interrupt configuration data inconsistent message; executing an interrupt line register check process, comprising the steps of reading a current setting value in an interrupt line register of the peripheral device; then querying the PCI IRQ routing table pre-stored in the boot control unit to find a PIRQ routing control register in the peripheral device control unit corresponding to the peripheral device; then comparing with the current setting values of the interrupt line register and the PIRQ routing control register; if inconsistent, sending an interrupt line register error message; executing an interrupt controller check process, comprising the steps of checking whether the interrupt controller has masked each currently used interrupt line; if no, sending an interrupt line not masked message; and executing an interrupt flag register (IFR) check process, comprising the steps of checking whether a current setting value of the interrupt flag in the IFR in the CPU is a set value of enable setting; if no, sending an interrupt flag not enabled message.