summaryrefslogtreecommitdiff
path: root/Board/EM/SMBIOS/SMBiosStaticData/SmbiosStaticData.asm
blob: 2dea886b36ec542d8b3ac0efef5dde6689f87c7e (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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
;****************************************************************************
;****************************************************************************
;**                                                                        **
;**           (C)Copyright 1985-2016, American Megatrends, Inc.            **
;**                                                                        **
;**                          All Rights Reserved.                          **
;**                                                                        **
;**            5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093           **
;**                                                                        **
;**                          Phone: (770)-246-8600                         **
;**                                                                        **
;****************************************************************************
;****************************************************************************

;****************************************************************************
; $Header: /Alaska/BIN/Modules/SMBIOS/SmbiosStaticData/SmbiosStaticData.asm 12    4/07/16 5:53p Davidd $
;
; $Revision: 12 $
;
; $Date: 4/07/16 5:53p $
;****************************************************************************
; Revision History
; ----------------
; $Log: /Alaska/BIN/Modules/SMBIOS/SmbiosStaticData/SmbiosStaticData.asm $
; 
; 12    4/07/16 5:53p Davidd
; [TAG]  		EIP231162
; [Category]  	New Feature
; [Description]  	Merge Aptio V Smbios -09 changes for Aptio 4
; 4.6.5.5_SMBIOS_40 release
; [Files]  		Smbios.sdl
; SmbiosDynamicData.h
; Smbios.h
; SmbiosStaticData.sdl
; SmbiosStaticData.asm
; SmbData.mac
; SmbMacro.aid
; SmbDesc.def
; 
; 11    2/17/15 1:06p Davidd
; [TAG]  		EIP205509
; [Category]  	Improvement
; [Description]  	Merge Aptio V Smbios EIP193807, 193858, 196901 changes
; into Aptio 4 Smbios
; [Files]  		SmbiosStaticData.asm
; Smbdata.mac
; Smbdesc.def
; 
; 10    3/26/12 12:02p Davidd
; [TAG]  		EIP84370
; [Category]  	New Feature
; [Description]  	Flash memory(type 16 and 17) on aptio
; [Files]  		Smbdata.mac
; SmbiosStaticData.asm
; SmbiosStaticData.sdl
; Smbios.c
; Smbios.mak
; Smbios.h
; 
; 9     2/09/11 10:24a Davidd
; [TAG]           EIP53081
; [Category]      Bug Fix
; [Severity]      Minor
; [Symptom]       Smbios Management Device (type 34) must be enabled in
; order to
;                 see System Power Supply (type 39)
; [RootCause]     Macro to create System Power Supply structure (type 39)
;                 was grouped inside macro to create Smbios Management
; Device
;                 (type 34)
; [Solution]      Seperated Type 39 macro from 34.
; [Files]         SmbiosStaticData.asm
;                 Smbdata.mac
;                 Smbmacro.aid
;                 Smbdesc.def
; 
; 8     4/06/10 10:18a Davidd
; Removed CreateBiosLanguageInfo. It is now dynamically created if
; enabled - EIP 34939
; 
; 7     6/02/09 4:41p Davidd
; Reformatted for Coding Standard compliance.
; 
; 6     6/02/09 3:55p Davidd
; Updated AMI headers (EIP 22180)
; 
; 5     5/19/09 11:02a Davidd
; 
; 4     10/13/08 11:15a Davidd
; Added type 40 and 41 support per SMBIOS specification v2.6
; 
; 3     3/29/07 4:53p Davidd
; Changed the year in the AMI banner and adjust indentation to coding
; standard.
; 
; 2     12/15/06 5:21p Davidd
; Code cleanup and reformatted to coding  standard.
;
; 1     4/29/05 2:15p Davidd
; Initial checkin.
;
;****************************************************************************

;----------------------------------------------------------------------------

        INCLUDE token.equ
        INCLUDE smbhdr.equ
        INCLUDE smbmacro.aid
        INCLUDE smbstruc.def
        INCLUDE smb.equ
        INCLUDE smbdata.mac
        INCLUDE smbdesc.def

;----------------------------------------------------------------------------

SMBIOS_DSEG SEGMENT BYTE    PUBLIC  'DATA'
        ASSUME  cs: SMBIOS_DSEG
.586p

;----------------------------------------------------------------------------

;----------------------------------------------------------------------------
        PUBLIC  _SMBDATA_STARTS
_smbdata_starts         LABEL   BYTE    ; Marks start of module
;----------------------------------------------------------------------------

;----------------------------------------------------------------------------
;   SMBIOS DATA STRUCTURES
;----------------------------------------------------------------------------

;SMBDataModuleHeaderSTRUC   {'_AMIDMI_',0203h,0101h,00h,offset smbios_structures_end,00h}

;----------------------------------------------------------------------------
        PUBLIC  smbios_structures_start
smbios_structures_start LABEL   BYTE

        handle = 0
IF MKF_TYPE0_STRUCTURE
        handle = CreateBiosInfo(handle)
ENDIF
IF MKF_TYPE1_STRUCTURE
        handle = CreateSysInfo(handle)
ENDIF
IF MKF_TYPE2_STRUCTURE
        handle = CreateBaseBoardInfo(handle)
ENDIF
IF MKF_TYPE3_STRUCTURE
        handle = CreateSysChassisInfo(handle)
ENDIF
IF MKF_TYPE4_STRUCTURE
        handle = CreateProcessorInfo(handle)
ENDIF
IF MKF_TYPE5_STRUCTURE
        handle = CreateMemCtrlInfo(handle, handle+1)
ENDIF
IF MKF_TYPE6_STRUCTURE
        handle = CreateMemModuleInfo(handle)
ENDIF
IF MKF_TYPE7_STRUCTURE
        handle = CreateExternalCacheInfo(handle)
ENDIF
IF MKF_TYPE8_STRUCTURE
        handle = CreatePortConnectorInfo(handle)
ENDIF
IF MKF_TYPE9_STRUCTURE
        handle = CreateSystemSlotInfo(handle)
ENDIF
IF MKF_TYPE10_STRUCTURE
        handle = CreateOnboardDeviceInfo(handle)
ENDIF
IF MKF_TYPE11_STRUCTURE
        handle = CreateOemStringInfo(handle)
ENDIF
IF MKF_TYPE12_STRUCTURE
        handle = CreateSystemConfigOptionInfo(handle)
ENDIF
IF MKF_TYPE15_STRUCTURE
        handle = CreateEventLogInfo(handle)
ENDIF
IF MKF_TYPE16_STRUCTURE
        handle = CreateMemoryInfo(handle)
ENDIF
IF MKF_FLASH_MEMORY_ARRAY_INFO
        handle = CreateFlashMemoryInfo(handle)
ENDIF
IF MKF_TYPE21_STRUCTURE
        handle = CreateBuiltinPointingDeviceInfo(handle)
ENDIF
IF MKF_TYPE22_STRUCTURE
        handle = CreatePortableBatteryInfo(handle)
ENDIF
IF MKF_TYPE23_STRUCTURE
        handle = CreateSystemResetInfo(handle)
ENDIF
IF MKF_TYPE24_STRUCTURE
        handle = CreateHardwareSecurityInfo(handle)
ENDIF
IF MKF_TYPE25_STRUCTURE
        handle = CreateSystemPowerControlsInfo(handle)
ENDIF
IF MKF_TYPE30_STRUCTURE
        handle = CreateOutofBandRemoteAccessInfo(handle)
ENDIF
IF MKF_TYPE31_STRUCTURE
        handle = CreateBootIntegrityServicesInfo(handle)
ENDIF
IF MKF_TYPE32_STRUCTURE
        handle = CreateSystemBootInfo(handle)
ENDIF
IF MKF_TYPE33_STRUCTURE
        handle = CreateSixtyFourBitMemoryErrorInfo(handle)
ENDIF
IF MKF_TYPE34_STRUCTURE
        handle = CreateManagementDeviceInfo(handle)
ENDIF
IF MKF_TYPE37_STRUCTURE
        handle = CreateMemoryChannelInfo(handle)
ENDIF
IF MKF_TYPE39_STRUCTURE
        handle = CreateSystemPowerSupplyInfo(handle)
ENDIF
IF MKF_TYPE40_STRUCTURE
        handle = CreateAdditionalInformation(handle)
ENDIF
IF MKF_TYPE41_STRUCTURE
        handle = CreateOnboardDevicesExtendedInfo(handle)
ENDIF
IF MKF_TYPE241_STRUCTURE
        handle = CreateOEMMemoryMappedGpnvInfo(handle)
ENDIF
IF MKF_TYPE240_STRUCTURE
        handle = CreateOEMIOMappedGpnvInfo(handle)
ENDIF
IF MKF_TYPE38_STRUCTURE
        handle = CreateIPMIDeviceInfo(handle)
ENDIF
IF MKF_TYPE129_STRUCTURE
        handle = CreateIntelASFTable(handle)
ENDIF
        handle = CreateEndOfTable(handle)

        db      MKF_EXTRA_RESERVED_BYTES dup (0FFh)          ; Extra Space
SMBIOS_DSEG    ENDS                 ; End of Segment
END                                 ; End of File

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