summaryrefslogtreecommitdiff
path: root/Board/EM/RapidStartWrapper/AcpiTables/Ssdt/RapidStartWrapper.asl
blob: ad41ac1a3761450a7a97cd9a27812e5ce158aa26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2012, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093        **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************

//**********************************************************************
// $Header: /Alaska/SOURCE/Modules/Intel Fast Flash Standby/iRST_SharkBay/RapidStartWrapper/Ssdt/RapidStartWrapper.asl 1     12/27/12 2:25a Bensonlai $
//
// $Revision: 1 $
//
// $Date: 12/27/12 2:25a $
//**********************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/Intel Fast Flash Standby/iRST_SharkBay/RapidStartWrapper/Ssdt/RapidStartWrapper.asl $
// 
// 1     12/27/12 2:25a Bensonlai
// [TAG]  		EIP110680
// [Category]  	New Feature
// [Description]  	When iRST application is run under OS, and change
// timer.
// BIOS should update the changed to Setup option as well.
// [Files]  		Board\EM\RapidStartWrapper\Smm\RapidStartWrapperSmm.c
// Board\EM\RapidStartWrapper\Smm\RapidStartWrapperSmm.h
// Board\EM\RapidStartWrapper\Smm\RapidStartWrapperSmm.mak
// Board\EM\RapidStartWrapper\Smm\RapidStartWrapperSmm.dxs
// Board\EM\RapidStartWrapper\Smm\RapidStartWrapperSmm.sdl
// Board\EM\RapidStartWrapper\Smm\RapidStartWrapperSmm.cif
// Board\EM\RapidStartWrapper\AcpiTables\RapidStartWrapperAcpiTables.cif
// Board\EM\RapidStartWrapper\AcpiTables\RapidStartWrapperAcpiTables.sdl
// Board\EM\RapidStartWrapper\AcpiTables\Ssdt\RapidStartWrapper.asl
// Board\EM\RapidStartWrapper\RapidStartSetup\RapidStartSetup.sd
// 
//**********************************************************************
//<AMI_FHDR_START>
//
// Name: RapidStartWrapper.asl
//
// Description: RapidStart ACPI ASL code to support OS control
//
//<AMI_FHDR_END>
//**********************************************************************

DefinitionBlock (
  "RapidStart.aml",
  "SSDT",
  0x01,
  "Iffs",
  "IffsAsl",
  0x3000
  )
{

  Scope (\_SB) {
    Device(IFFS) {
      OperationRegion(FFSN,SystemMemory,0xFFFF0000,0xAA55)
      Field(FFSN,AnyAcc,Lock,Preserve)
      {
        FFSA,	8,      // (0) iFFS available events
        FFSS,	8,      // (1) iFFS enabled events
        FFST,	16,     // (2) iFFS wake timer in minutes
        FFSP,	32      // (4) iFFS performance monitoring data
      }

//AMIOVERRIDE_BEGIN
      OperationRegion (RSMI, SystemIO, 0xB2, 0x02)
      Field (RSMI, ByteAcc, NoLock, Preserve) {
        SMIC, 8,
        SMID, 8
      }
//AMIOVERRIDE_END

      Name(_HID,EISAID("INT3392"))
      Name(_CID,EISAID("PNP0C02"))

      Method(GFFS,0,Serialized) {
        Return(FFSS)
      }
      Method(SFFS,1,Serialized) {
        And(Arg0, FFSA, FFSS)
//AMIOVERRIDE_BEGIN
        Store(0x01, SMID)
        Store(0xB4, SMIC)
//AMIOVERRIDE_END
        Return(FFSS)
      }
      Method(GFTV,0,Serialized) {
        Return(FFST)
      }
      Method(SFTV,1,Serialized) {
        //
        //  24*60=1440 minutes (24 Hours)
        //
        If (LLessEqual(Arg0,1440)) {
          Store(Arg0,FFST)
        } Else {
          And(FFSS,0xFFFE,FFSS)
          Store(10,FFST)
        }
//AMIOVERRIDE_BEGIN
        Store(0x01, SMID)
        Store(0xB4, SMIC)
//AMIOVERRIDE_END
        Return(FFST)
      }
    }
  }
}

//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2012, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093        **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************