www.pudn.com > hpbios.rar > 686_PS2.ASX
//----------------------------------------------------------------------------
//Rev Date Name Description
//----------------------------------------------------------------------------
//R01 05/11/99 ADS Let GRAM report by kernel.
//R00 12/02/98 ADS Start of Definitions for VT686 super I/O device
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
//R01 OperationRegion(\GRAM, SystemMemory, 0x00000400, 0x100)
//R01 Field(\GRAM, ByteAcc, NoLock, Preserve) {
//R01 Offset(0x10),
//R01 FLG0, 8
//R01 }
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