⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dsdt.asl

📁 AWARD BIOS 99源代码 非常难得的东西
💻 ASL
📖 第 1 页 / 共 2 页
字号:

DefinitionBlock (
        "DSDT.AML",
        "DSDT",
        0x01,
        "INTELR",				//OEMID
        "AWRDACPI",
        0x1000
        )
{						// Start of ASL File

Scope(\_PR) {
        Processor(\_PR.CPU0,
         1,			//processor number
         0x4010,		//System IO address of Pblk Registers
         0x06			//length in bytes of PBlk
        ) {}
}


Name(FLAG,0x00)			//R13
Name(\_S0,Package(2){Zero,Zero}) 	// Value to be set in SLP_TYP register (S0)working state
Name(\_S1,Package(2){One,One}) 	// Value to be set in SLP_TYP register for S1 state

OperationRegion	(CMOS, SystemIO, 0x70, 0x2)				
Field (CMOS, ByteAcc, NoLock, Preserve) 
{   					      						
         INX,8,		//field named INDX is 8 bits wide
                 DTA,8 		//field named DATA is 8 bits wide
}										
                 Store(0x02,Local0)
                 Store(0x53,INX)
                 Store(DTA,Local1)
                 And(Local1,Local0,Local1)
if(Lequal(Local1,0x02)){	
Name(\_S3,Package(2){5,5}) 		//R21 Suspend to RAM
}	     

Name(\_S4,Package(2){7,7}) 	// Value to be set in SLP_TYP register for Soft Off
Name(\_S5,Package(2){7,7}) 	// Value to be set in SLP_TYP register for Soft Off

OperationRegion(\DEBG, SystemIO, 0x80, 0x1)
        Field(\DEBG, ByteAcc, NoLock, Preserve) {
                DBG1, 8,
                }

OperationRegion(EXTM, SystemMemory, 0x000ff830, 0x10)
Field(EXTM, WordAcc, NoLock, Preserve) {	
                ROM1, 16,				//length=16bit
                RMS1, 16,				//length=16bit
                ROM2, 16,				//length=16bit
                RMS2, 16,				//length=16bit
                ROM3, 16,				//length=16bit
                RMS3, 16,				//length=16bit
                AMEM, 32,				//length=32bit
                }

OperationRegion(VGAM, SystemMemory, 0x000C0002, 0x1)
Field(VGAM, ByteAcc, NoLock, Preserve) {	
                VGA1, 8,
                }

OperationRegion(\SMIC, SystemIO, 0xB2, 0x1)	//SMI_CMD port
        Field(\SMIC, ByteAcc, NoLock, Preserve)		
        {						
        SCP_, 8,					
        }				
OperationRegion(\SPEn, SystemIO, 0x4030, 0x1)
        Field(\SPEN, ByteAcc, NoLock, Preserve) {
                , 4,				
                TRAP, 1,			
                }				


OperationRegion(\GBLE, SystemIO, 0x4021, 0x1)
        Field(\GBLE, ByteAcc, NoLock, Preserve) {
                ESMI, 8,			
                }				

Name(CMDB, Buffer(8){})
CreateByteField(CMDB, 0, BYT0)
CreateByteField(CMDB, 1, BYT1)
CreateByteField(CMDB, 2, BYT2)
CreateByteField(CMDB, 3, BYT3)
CreateByteField(CMDB, 4, BYT4)
CreateByteField(CMDB, 5, BYT5)
CreateByteField(CMDB, 6, BYT6)
CreateByteField(CMDB, 7, BYT7)

Name(IDEB, Buffer(56){})
CreateField(IDEB,   0, 56, CMD0)
CreateField(IDEB,  56, 56, CMD1)
CreateField(IDEB, 112, 56, CMD2)
CreateField(IDEB, 168, 56, CMD3)
CreateField(IDEB, 224, 56, CMD4)
CreateField(IDEB, 280, 56, CMD5)
CreateField(IDEB, 336, 56, CMD6)
CreateField(IDEB, 392, 56, CMD7)

OperationRegion(\Trp1, SystemIO, 0x4041, 0x1)
        Field(\Trp1, ByteAcc, NoLock, Preserve) {
                TR01,1
                }

OperationRegion (APMP, SystemIO, 0xB2, 0x02)
Field (APMP, ByteAcc, Nolock, Preserve) {
                APMC,   8,
                APMD,   8
}

OperationRegion (ELCR, SystemIO, 0x4D0, 0x02)
Field (ELCR, ByteAcc, Nolock, Preserve) {
                ELC1,   8,
                ELC2,   8
}

OperationRegion(\GPO,SystemIO,0x408C,0x2)
        Field(\GPO,ByteAcc,NoLock,Preserve) {
                GO10,1,
                GO11,1,
                ,1,
                ,1,
                ,1,
                GO15,1,
                GO16,1,
                GO17,1,
                GO18,1,
                GO19,1,
                GO1A,1,
                GO1B,1,
                GO1C,1,
                }

        include	("CT_Func.asl")


Method(\_PTS,1) {		
        Or (Arg0, 0xF0,  Local0)	
        Store (Local0, DBG1)		


        IF (LEqual(Arg0, 0x01)) 
        {
        SALD(Arg0)






             Store(One, TR01)			//R01
        SFOF()

        }			// End of S1

        IF (LEqual(Arg0, 0x02)) 
        {
        }			// End of S2
        IF(LEqual(Arg0,0x03)) 
        {		
        Store(One,TR01)	
        SALD(Arg0)
        }			// End of S3

        IF (LEqual(Arg0, 0x05))
        {
             Store(ESMI, Local0)
             And(Local0, 0xFB, Local0)		//Disable external SMI
             Store(Local0, ESMI)
             Store(One, TR01)			//R01
        SALD(Arg0)
        }			// End of S5
}						//End of PTS

Method(\_WAK,1){
        Store (0xFF, DBG1)




        SALD(0)



        SFON()
        Notify(\_SB.PWRB,0x2)				
}		//End of WAK


Scope(\_SI) 
{ // Start of _SI

        Method(_MSG, 1) {
                Store (Local0, Local0)	
                } 			// End of Method

        Method(_SST, 1) {


                Store (Local0, Local0)	
        } 			// End of SST Method 
} // End of _SI


Scope(\_GPE) {
} // Scope(\_GPE)

Scope(\_SB) {
        Device(PWRB)	{
                Name (_HID, EISAID("PNP0C0C"))	// Hardware Device ID PWRBTN
                Method(_STA, 0) {
                        Return(0x0B)	// non-present, enabled, functioning
                }
        } //END of PWRB


                        include	("memory.asl")		

        Device(PCI0)	{
                Name (_HID, EISAID("PNP0A03"))	// Hardware Device ID
                Name (_ADR, 0x00000000)
                Method(_STA, 0) {
                        Return(0x0F)	// present, enabled, functioning
                }

                       Method(_CRS,0)	{ 
                           Name(BUF0,ResourceTemplate() 
                {
                        WORDBusNumber(		// Bus 0
                        ResourceConsumer,
                        MinNotFixed,
                        MaxNotFixed,
                        PosDecode,
                               0x0000,
                               0x0000,
                               0x00FF,
                               0x0000,
                               0x0100
                        )

                        IO(			// IO Resource for PCI Bus
                        Decode16,
                        0x0CF8,
                        0x0CF8,
                        1,
                        8
                        ,IO_1			//R08B
                        )

                               IO(			// IO Resource for SMBus
                               Decode16,
                               0x5000,			//_MIN
                               0x5000,			//_MAN
                               1,			//_ALN
                               0x10			//_LEN
                        ,IO_2
                               )

                        WORDIO(			// IO from 0x0000 - 0x0cf7
                        ResourceProducer,
                        MinFixed,
                        MaxFixed,
                        PosDecode,
                        EntireRange,
                        0x0000,		
                        0x0000,
                        0x0CF7,
                        0x0000,
                        0x0CF8
                        )

                        WORDIO(			// IO from 0x0d00 - 0xffff
                        ResourceProducer,
                        MinFixed,
                        MaxFixed,
                        PosDecode,
                        EntireRange,
                        0x0000,		
                        0x0D00,
                        0x3FFF,
                        0x0000,
                        0x3300
                        )

                        IO(			// IO Resource for ACPI IO
                        Decode16,
                        0x4000,
                        0x4000,
                        1,
                        0xF8			//R14A
                        )

                        WORDIO(			// IO from 0x0d00 - 0xffff
                        ResourceProducer,
                        MinFixed,
                        MaxFixed,
                        PosDecode,
                        EntireRange,
                        0x0000,		
                        0x4042,
                        0x4FFF,
                        0x0000,
                        0x0FBE
                        )



                        WORDIO(			// IO from 0x0d00 - 0xffff
                        ResourceProducer,
                        MinFixed,
                        MaxFixed,
                        PosDecode,
                        EntireRange,
                        0x0000,		
                        0x5010,
                        0xFFFF,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -