www.pudn.com > hpbios.rar > 686_PS2.ASL


 
Device(PS2K) {      
        Name(_HID,EISAID("PNP0303")) 
        Name(_CRS, ResourceTemplate(){ 
                IO( 
                        Decode16,	// KIO1._DEC 
                        0x0060,		// Min base I/O addr, KIO1._MIN 
                        0x0060,		// Max base I/O addr, KIO1._MAX 
                        0x01,		// Base alignment, KIO1._ALN  
                        0x01,		// Number of contig I/O ports, KIO1._LEN 
                               KIO1		// Name 
                ) 
                IO( 
                        Decode16,	// KIO2._DEC 
                        0x0064,		// Min base I/O addr, KIO2._MIN 
                        0x0064,		// Max base I/O addr, KIO2._MAX 
                        0x01,		// Base alignment, KIO2._ALN  
                        0x01,		// Number of contig I/O ports, KIO2._LEN 
                               KIO2		// Name 
                ) 
                       IRQNoFlags( 
                               KIRQ 
                ) 
                        {0x01}      	// IRQ 1, KIRQ._INT 
                } // end Resource Template 
        ) // end _CRS 
 
}  // end PS2K 
 
 
Device(PS2M) {		// PS2 Mouse Device 
 
        Name(_HID,EISAID("PNP0F13"))	// Hardware Device ID 
               Method(_STA,0){ 		//Status of the PS2 Mouse device 
                       And(FLG0,0x04,Local0) 
                       If(Lequal(Local0,0x04)) { 
                               Return(0x0F) 
                       } 
                       Else	{ 
                               Return(0x00) 
                       } 
        }  //end _STA 
                        
        Name(_CRS, ResourceTemplate(){ 
                IRQNoFlags( 
                               MIRQ 
                ) 
                        {0x0C}      		// IRQ 12, MIRQ._INT 
                } //end Resource Template 
        )  //end _CRS 
 
 
}  // End of PS2M