FrameworkSpecConformance.txt 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342
  1. ##
  2. # This file is used to document mismatches between Intel Platform Innovation Framework specification
  3. # (http://www.intel.com/technology/framework/spec.htm) and data structures defind at IntelFrameworkPkg
  4. # package in EdkII Open Source Project (https://github.com/tianocore/edk2/tree/master/IntelFrameworkPkg)
  5. ##
  6. ##
  7. # The general consideration about keeping the mismatches in EdkII:
  8. # 1. Some definitions defined in Framework specification may bring a little complexity on implementation. EdkII
  9. # makes changes on them from the view of code development.
  10. # 2. Some definitions are NOT defined in Framework specification, but introduced in Edk. EdkII chooses to keep
  11. # them for backward-compatibility.
  12. # 3. The name of some definitions are NOT consistent with Framework specification. If the name doesn't bring
  13. # misunderstanding literally, EdkII chooses to keep them for backward-compatibility.
  14. # 4. Some defintitions don't exactly match Framework specification, some new field members are introduced in EdkII
  15. # to reflect the latest industry standard.
  16. #
  17. # Note:
  18. # The IntelFrameworkPkg contains Framework specification contents that were not adopted by UEFI/PI, and names may be
  19. # changed (such as adding "FRAMEWORK_") to avoid name collisions with approved UEFI/PI specifications.
  20. ##
  21. ##
  22. # Mismatch with Intel Platform Innovation Framework for DataHubSubclass Specification (Version 0.90)
  23. ##
  24. 1. Guid/DataHubRecords.h
  25. #define EFI_STRING_TOKEN UINT16
  26. This macro named "EFI_STRING_TOKEN" is *NOT* defined in Framework specification. Keeping this inconsistency
  27. for backward compatibility.
  28. 2. Guid/DataHubRecords.h
  29. #pragma pack(1)
  30. typedef struct {
  31. UINT8 LastPciBus;
  32. } EFI_MISC_LAST_PCI_BUS_DATA;
  33. ...
  34. typedef struct {
  35. EFI_SUBCLASS_TYPE1_HEADER Header;
  36. EFI_MISC_SUBCLASS_RECORDS Record;
  37. } EFI_MISC_SUBCLASS_DRIVER_DATA;
  38. #pragma pack()
  39. Section "Alignment" in DataHubSubclass specification say "Fields in a data hub record should be aligned at their
  40. natural boundaries". But in EdkII, the data structures above are packed.
  41. Keeping this inconsistency for backward compatibility.
  42. 3. Guid/DataHubRecords.h
  43. #define EFI_SUBCLASS_INSTANCE_RESERVED 0
  44. #define EFI_SUBCLASS_INSTANCE_NON_APPLICABLE 0xFFFF
  45. The symbols above are *NOT* defined in DataHubSubclass specification. But the values are defined and are meaningful.
  46. According to DataHubSubclass spec, value 0 means Reserved and -1 means Not Applicable. EdkII introduces these macros
  47. to faciliate user development.
  48. ##
  49. # Mismatch with Intel Platform Innovation Framework for CacheSubclass Specification (Version 0.90)
  50. ##
  51. 1. Guid/DataHubRecords.h
  52. typedef EFI_EXP_BASE2_DATA EFI_MAXIMUM_CACHE_SIZE_DATA;
  53. The definition named "EFI_MAXIMUM_CACHE_SIZE_DATA" is *NOT* consistent with CacheSubclass specification, in which
  54. the name should be EFI_CACHE_MAXIMUM_SIZE_DATA. Keeping this inconsistency for backward compatibility.
  55. 2. Guid/DataHubRecords.h
  56. typedef struct {
  57. UINT32 Level :3;
  58. UINT32 Socketed :1;
  59. UINT32 Reserved2 :1;
  60. UINT32 Location :2;
  61. UINT32 Enable :1;
  62. UINT32 OperationalMode :2;
  63. UINT32 Reserved1 :22;
  64. } EFI_CACHE_CONFIGURATION_DATA;
  65. The field type of the definition is *NOT* consistent with CacheSubclass specification. Specification defines
  66. them as UINT16, which is incorrect and should be UINT32 because the total width of bit-fields is 32bits width.
  67. 3. Guid/DataHubRecords.h
  68. typedef enum {
  69. CacheSizeRecordType = 1,
  70. MaximumSizeCacheRecordType = 2,
  71. CacheSpeedRecordType = 3,
  72. CacheSocketRecordType = 4,
  73. CacheSramTypeRecordType = 5,
  74. CacheInstalledSramTypeRecordType = 6,
  75. CacheErrorTypeRecordType = 7,
  76. CacheTypeRecordType = 8,
  77. CacheAssociativityRecordType = 9,
  78. CacheConfigRecordType = 10
  79. } EFI_CACHE_VARIABLE_RECORD_TYPE;
  80. The data structure and all enumeration fields are *NOT* defined in CacheSubclass specification, which only
  81. defines the following macros to specify the record number of the data record:
  82. #define EFI_CACHE_SIZE_RECORD_NUMBER 0x00000001
  83. #define EFI_CACHE_MAXIMUM_SIZE_RECORD_NUMBER 0x00000002
  84. #define EFI_CACHE_SPEED_RECORD_NUMBER 0x00000003
  85. #define EFI_CACHE_SOCKET_RECORD_NUMBER 0x00000004
  86. #define EFI_CACHE_SRAM_SUPPORT_RECORD_NUMBER 0x00000005
  87. #define EFI_CACHE_SRAM_INSTALL_RECORD_NUMBER 0x00000006
  88. #define EFI_CACHE_ERROR_SUPPORT_RECORD_NUMBER 0x00000007
  89. #define EFI_CACHE_TYPE_RECORD_NUMBER 0x00000008
  90. #define EFI_CACHE_ASSOCIATIVITY_RECORD_NUMBER 0x00000009
  91. #define EFI_CACHE_CONFIGURATION_RECORD_NUMBER 0x0000000A
  92. Keeping this inconsistency for backward compatibility.
  93. 4. Guid/DataHubRecords.h
  94. typedef union {
  95. EFI_CACHE_SIZE_DATA CacheSize;
  96. ...
  97. EFI_CACHE_ASSOCIATION_DATA CacheAssociation;
  98. } EFI_CACHE_VARIABLE_RECORD;
  99. typedef struct {
  100. EFI_SUBCLASS_TYPE1_HEADER DataRecordHeader;
  101. EFI_CACHE_VARIABLE_RECORD VariableRecord;
  102. } EFI_CACHE_DATA_RECORD;
  103. The definitions above are *NOT* defined in CacheSubclass specification. EdkII introduces them to simplify the
  104. code logic. Therefore developer doesn't need to allocate memory dynamically to construct variable length data record.
  105. Keeping this inconsistency for backward compatibility.
  106. ##
  107. # Mismatch with Intel Platform Innovation Framework for ProcSubclass Specification (Version 0.90)
  108. ##
  109. 1. Guid/DataHubRecords.h
  110. #define EFI_PROCESSOR_SUBCLASS_VERSION 0x00010000
  111. The value of the definition is *NOT* consistent with ProcSubclass specification, in which the value is 0x0100.
  112. Keeping this inconsistency from the perspective of binary consistency.
  113. 2. Guid/DataHubRecords.h
  114. typedef struct {
  115. UINT32 ProcessorBrandIndex :8;
  116. UINT32 ProcessorClflush :8;
  117. UINT32 ProcessorReserved :8;
  118. UINT32 ProcessorDfltApicId :8;
  119. } EFI_PROCESSOR_MISC_INFO;
  120. The definition is *NOT* consistent with ProcSubclass specification, in which the name of third field is defined
  121. as "LogicalProcessorCount" rather than "ProcessorReserved".
  122. Keeping this inconsistency for backward compatibility.
  123. 3. Guid/DataHubRecords.h
  124. typedef enum {
  125. ...
  126. EfiProcessorFamilyUltraSparcIIIi = 0x58,
  127. ...
  128. EfiProcessorFamilyIntelPentiumM = 0xB9,
  129. EfiProcessorFamilyIntelCeleronD = 0xBA,
  130. EfiProcessorFamilyIntelPentiumD = 0xBB,
  131. EfiProcessorFamilyIntelPentiumEx = 0xBC,
  132. EfiProcessorFamilyIntelCoreSolo = 0xBD,
  133. EfiProcessorFamilyReserved = 0xBE,
  134. EfiProcessorFamilyIntelCore2 = 0xBF,
  135. ...
  136. EfiProcessorFamilyG6 = 0xCB,
  137. EfiProcessorFamilyzArchitectur = 0xCC,
  138. EfiProcessorFamilyViaC7M = 0xD2,
  139. EfiProcessorFamilyViaC7D = 0xD3,
  140. EfiProcessorFamilyViaC7 = 0xD4,
  141. EfiProcessorFamilyViaEden = 0xD5,
  142. ...
  143. EfiProcessorFamilyIndicatorFamily2 = 0xFE,
  144. EfiProcessorFamilyReserved1 = 0xFF
  145. } EFI_PROCESSOR_FAMILY_DATA;
  146. a. In ProcSubclass specification 0.9, the field name whose value equals to 0x58 is "EfiProcessorFamilyUltraSparcIIi".
  147. Due to the name has been defined in previous field, changing it to "EfiProcessorFamilyUltraSparcIIIi" to avoid
  148. build break.
  149. b. The other fields listed here are *NOT* defined in ProcSubclass specification 0.9. They are introduced to
  150. support new processor family (type 4) defined in SmBios 2.6 specification.
  151. Keeping this inconsistency to reflect the latest industry standard.
  152. 4. Guid/DataHubRecords.h
  153. typedef enum {
  154. ...
  155. EfiProcessorSocket939 = 0x12,
  156. EfiProcessorSocketmPGA604 = 0x13,
  157. EfiProcessorSocketLGA771 = 0x14,
  158. EfiProcessorSocketLGA775 = 0x15
  159. } EFI_PROCESSOR_SOCKET_TYPE_DATA;
  160. The fields listed here are *NOT* defined in ProcSubclass specification 0.9. They are introduced to support
  161. new processor upgrade (type 4 offset 19h) defined in SmBios 2.6 specification.
  162. Keeping this inconsistency to reflect the latest industry standard.
  163. 5. Guid/DataHubRecords.h
  164. typedef EFI_INTER_LINK_DATA EFI_CACHE_ASSOCIATION_DATA;
  165. The definition name "EFI_CACHE_ASSOCIATION_DATA" is *NOT* consistent with ProcSubclass specification 0.9, in which
  166. the name should be "EFI_PROCESSOR_CACHE_ASSOCIATION_DATA". Keeping this inconsistency for backward compatibility.
  167. 6. Guid/DataHubRecords.h
  168. typedef enum {
  169. EfiProcessorHealthy = 1,
  170. EfiProcessorPerfRestricted = 2,
  171. EfiProcessorFuncRestricted = 3
  172. } EFI_PROCESSOR_HEALTH_STATUS;
  173. The structure name "EFI_PROCESSOR_HEALTH_STATUS" is *NOT* consistent with ProcSubclass specification 0.9, in which
  174. the name should be "EFI_PROCESSOR_HEALTH_STATUS_DATA". Keeping this inconsistency for backward compatibility.
  175. 7. Guid/DataHubRecords.h
  176. typedef enum {
  177. ProcessorCoreFrequencyRecordType = 1,
  178. ProcessorFsbFrequencyRecordType = 2,
  179. ProcessorVersionRecordType = 3,
  180. ProcessorManufacturerRecordType = 4,
  181. ProcessorSerialNumberRecordType = 5,
  182. ProcessorIdRecordType = 6,
  183. ProcessorTypeRecordType = 7,
  184. ProcessorFamilyRecordType = 8,
  185. ProcessorVoltageRecordType = 9,
  186. ProcessorApicBaseAddressRecordType = 10,
  187. ProcessorApicIdRecordType = 11,
  188. ProcessorApicVersionNumberRecordType = 12,
  189. CpuUcodeRevisionDataRecordType = 13,
  190. ProcessorStatusRecordType = 14,
  191. ProcessorSocketTypeRecordType = 15,
  192. ProcessorSocketNameRecordType = 16,
  193. CacheAssociationRecordType = 17,
  194. ProcessorMaxCoreFrequencyRecordType = 18,
  195. ProcessorAssetTagRecordType = 19,
  196. ProcessorMaxFsbFrequencyRecordType = 20,
  197. ProcessorPackageNumberRecordType = 21,
  198. ProcessorCoreFrequencyListRecordType = 22,
  199. ProcessorFsbFrequencyListRecordType = 23,
  200. ProcessorHealthStatusRecordType = 24,
  201. ProcessorCoreCountRecordType = 25,
  202. ProcessorEnabledCoreCountRecordType = 26,
  203. ProcessorThreadCountRecordType = 27,
  204. ProcessorCharacteristicsRecordType = 28,
  205. ProcessorFamily2RecordType = 29,
  206. ProcessorPartNumberRecordType = 30,
  207. } EFI_CPU_VARIABLE_RECORD_TYPE;
  208. The enumeration fields from ProcessorCoreFrequencyRecordType to ProcessorHealthStatusRecordType are *NOT* defined
  209. in ProcSubclass specification 0.9, which only defines the following macros to specify the record number of the data record:
  210. #define EFI_PROCESSOR_FREQUENCY_RECORD_NUMBER 0x00000001
  211. #define EFI_PROCESSOR_BUS_FREQUENCY_RECORD_NUMBER 0x00000002
  212. #define EFI_PROCESSOR_VERSION_RECORD_NUMBER 0x00000003
  213. #define EFI_PROCESSOR_MANUFACTURER_RECORD_NUMBER 0x00000004
  214. #define EFI_PROCESSOR_SERIAL_NUMBER_RECORD_NUMBER 0x00000005
  215. #define EFI_PROCESSOR_ID_RECORD_NUMBER 0x00000006
  216. #define EFI_PROCESSOR_TYPE_RECORD_NUMBER 0x00000007
  217. #define EFI_PROCESSOR_FAMILY_RECORD_NUMBER 0x00000008
  218. #define EFI_PROCESSOR_VOLTAGE_RECORD_NUMBER 0x00000009
  219. #define EFI_PROCESSOR_APIC_BASE_ADDRESS_RECORD_NUMBER 0x0000000A
  220. #define EFI_PROCESSOR_APIC_ID_RECORD_NUMBER 0x0000000B
  221. #define EFI_PROCESSOR_APIC_VER_NUMBER_RECORD_NUMBER 0x0000000C
  222. #define EFI_PROCESSOR_MICROCODE_REVISION_RECORD_NUMBER 0x0000000D
  223. #define EFI_PROCESSOR_STATUS_RECORD_NUMBER 0x0000000E
  224. #define EFI_PROCESSOR_SOCKET_TYPE_RECORD_NUMBER 0x0000000F
  225. #define EFI_PROCESSOR_SOCKET_NAME_RECORD_NUMBER 0x00000010
  226. #define EFI_PROCESSOR_CACHE_ASSOCIATION_RECORD_NUMBER 0x00000011
  227. #define EFI_PROCESSOR_MAX_FREQUENCY_RECORD_NUMBER 0x00000012
  228. #define EFI_PROCESSOR_ASSET_TAG_RECORD_NUMBER 0x00000013
  229. #define EFI_PROCESSOR_MAX_FSB_FREQUENCY_RECORD_NUMBER 0x00000014
  230. #define EFI_PROCESSOR_PACKAGE_NUMBER_RECORD_NUMBER 0x00000015
  231. #define EFI_PROCESSOR_FREQUENCY_LIST_RECORD_NUMBER 0x00000016
  232. #define EFI_PROCESSOR_FSB_FREQUENCY_LIST_RECORD_NUMBER 0x00000017
  233. #define EFI_PROCESSOR_HEALTH_STATUS_RECORD_NUMBER 0x00000018
  234. Keeping this inconsistency for backward compatibility.
  235. The enumeration fields from ProcessorCoreCountRecordType to ProcessorPartNumberRecordType are *NOT* defined
  236. in ProcSubclass specification 0.9.
  237. They are introduced to support new fields for type 4 defined in SmBios 2.6 specification.
  238. Keeping this inconsistency to reflect the latest industry standard.
  239. 8. Guid/DataHubRecords.h
  240. typedef union {
  241. EFI_PROCESSOR_CORE_FREQUENCY_LIST_DATA ProcessorCoreFrequencyList;
  242. ...
  243. EFI_PROCESSOR_FAMILY2_DATA ProcessorFamily2;
  244. } EFI_CPU_VARIABLE_RECORD;
  245. typedef struct {
  246. EFI_SUBCLASS_TYPE1_HEADER DataRecordHeader;
  247. EFI_CPU_VARIABLE_RECORD VariableRecord;
  248. } EFI_CPU_DATA_RECORD;
  249. The definitions above are *NOT* defined in ProcSubclass specification 0.9. EdkII introduces them to simplify the
  250. code logic. Therefore developer doesn't need to allocate memory dynamically to construct variable length data record.
  251. Keeping this inconsistency for backward compatibility.
  252. 9. Guid/DataHubRecords.h
  253. typedef STRING_REF EFI_PROCESSOR_PART_NUMBER_DATA;
  254. typedef enum {
  255. EfiProcessorFamilySh3 = 0x104,
  256. EfiProcessorFamilySh4 = 0x105,
  257. EfiProcessorFamilyArm = 0x118,
  258. EfiProcessorFamilyStrongArm = 0x119,
  259. EfiProcessorFamily6x86 = 0x12C,
  260. EfiProcessorFamilyMediaGx = 0x12D,
  261. EfiProcessorFamilyMii = 0x12E,
  262. EfiProcessorFamilyWinChip = 0x140,
  263. EfiProcessorFamilyDsp = 0x15E,
  264. EfiProcessorFamilyVideo = 0x1F4
  265. } EFI_PROCESSOR_FAMILY2_DATA;
  266. typedef UINT8 EFI_PROCESSOR_CORE_COUNT_DATA;
  267. typedef UINT8 EFI_PROCESSOR_ENABLED_CORE_COUNT_DATA;
  268. typedef UINT8 EFI_PROCESSOR_THREAD_COUNT_DATA;
  269. typedef struct {
  270. UINT16 Reserved :1;
  271. UINT16 Unknown :1;
  272. UINT16 Capable64Bit :1;
  273. UINT16 Reserved2 :13;
  274. } EFI_PROCESSOR_CHARACTERISTICS_DATA;
  275. The fields listed here are *NOT* defined in ProcSubclass specification 0.9. They are introduced to support
  276. new fields for type 4 defined in SmBios 2.6 specification.
  277. Keeping this inconsistency to reflect the latest industry standard.
  278. ##
  279. # Mismatch with Intel Platform Innovation Framework for MemSubclass Specification (Version 0.90)
  280. ##
  281. 1. Guid/DataHubRecords.h
  282. typedef enum _EFI_MEMORY_FORM_FACTOR {
  283. ...
  284. EfiMemoryFormFactorFbDimm = 0x0F
  285. } EFI_MEMORY_FORM_FACTOR;
  286. typedef enum _EFI_MEMORY_ARRAY_TYPE {
  287. ...
  288. EfiMemoryTypeDdr2 = 0x13,
  289. EfiMemoryTypeDdr2FbDimm = 0x14
  290. } EFI_MEMORY_ARRAY_TYPE;
  291. typedef enum {
  292. ...
  293. EfiMemoryStatePartial = 6
  294. } EFI_MEMORY_STATE;
  295. The fields listed above are *NOT* defined in MemSubclass specification 0.9. They are introduced to support
  296. new memory device (type 17) defined in SmBios 2.6 specification.
  297. Keeping this inconsistency to reflect the latest industry standard.
  298. 2. Guid/DataHubRecords.h
  299. typedef struct {
  300. ...
  301. EFI_EXP_BASE10_DATA MemorySpeed;
  302. ...
  303. } EFI_MEMORY_ARRAY_LINK_DATA;
  304. The field name "MemorySpeed" in the definition above is *NOT* consistent with MemSubclass specification 0.9,
  305. in which it is defined as MemoryTypeSpeed. Keeping this inconsistency for backward compatibility.
  306. 3. Guid/DataHubRecords.h
  307. #define EFI_MEMORY_CONTROLLER_INFORMATION_RECORD_NUMBER 0x00000008
  308. typedef enum {
  309. EfiErrorDetectingMethodOther = 1,
  310. EfiErrorDetectingMethodUnknown = 2,
  311. EfiErrorDetectingMethodNone = 3,
  312. EfiErrorDetectingMethodParity = 4,
  313. EfiErrorDetectingMethod32Ecc = 5,
  314. EfiErrorDetectingMethod64Ecc = 6,
  315. EfiErrorDetectingMethod128Ecc = 7,
  316. EfiErrorDetectingMethodCrc = 8
  317. } EFI_MEMORY_ERROR_DETECT_METHOD_TYPE;
  318. typedef struct {
  319. UINT8 Other :1;
  320. UINT8 Unknown :1;
  321. UINT8 None :1;
  322. UINT8 SingleBitErrorCorrect :1;
  323. UINT8 DoubleBitErrorCorrect :1;
  324. UINT8 ErrorScrubbing :1;
  325. UINT8 Reserved :2;
  326. } EFI_MEMORY_ERROR_CORRECT_CAPABILITY;
  327. typedef enum {
  328. EfiMemoryInterleaveOther = 1,
  329. EfiMemoryInterleaveUnknown = 2,
  330. EfiMemoryInterleaveOneWay = 3,
  331. EfiMemoryInterleaveTwoWay = 4,
  332. EfiMemoryInterleaveFourWay = 5,
  333. EfiMemoryInterleaveEightWay = 6,
  334. EfiMemoryInterleaveSixteenWay = 7
  335. } EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE;
  336. typedef struct {
  337. UINT16 Other :1;
  338. UINT16 Unknown :1;
  339. UINT16 SeventyNs:1;
  340. UINT16 SixtyNs :1;
  341. UINT16 FiftyNs :1;
  342. UINT16 Reserved :11;
  343. } EFI_MEMORY_SPEED_TYPE;
  344. typedef struct {
  345. UINT16 Other :1;
  346. UINT16 Unknown :1;
  347. UINT16 Standard :1;
  348. UINT16 FastPageMode:1;
  349. UINT16 EDO :1;
  350. UINT16 Parity :1;
  351. UINT16 ECC :1;
  352. UINT16 SIMM :1;
  353. UINT16 DIMM :1;
  354. UINT16 BurstEdo :1;
  355. UINT16 SDRAM :1;
  356. UINT16 Reserved :5;
  357. } EFI_MEMORY_SUPPORTED_TYPE;
  358. typedef struct {
  359. UINT8 Five :1;
  360. UINT8 Three :1;
  361. UINT8 Two :1;
  362. UINT8 Reserved:5;
  363. } EFI_MEMORY_MODULE_VOLTAGE_TYPE;
  364. typedef struct {
  365. EFI_MEMORY_ERROR_DETECT_METHOD_TYPE ErrorDetectingMethod;
  366. EFI_MEMORY_ERROR_CORRECT_CAPABILITY ErrorCorrectingCapability;
  367. EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemorySupportedInterleave;
  368. EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemoryCurrentInterleave;
  369. UINT8 MaxMemoryModuleSize;
  370. EFI_MEMORY_SPEED_TYPE MemorySpeedType;
  371. EFI_MEMORY_SUPPORTED_TYPE MemorySupportedType;
  372. EFI_MEMORY_MODULE_VOLTAGE_TYPE MemoryModuleVoltage;
  373. UINT8 NumberofMemorySlot;
  374. EFI_MEMORY_ERROR_CORRECT_CAPABILITY EnabledCorrectingCapability;
  375. UINT16 *MemoryModuleConfigHandles;
  376. } EFI_MEMORY_CONTROLLER_INFORMATION;
  377. typedef struct {
  378. EFI_MEMORY_ERROR_DETECT_METHOD_TYPE ErrorDetectingMethod;
  379. EFI_MEMORY_ERROR_CORRECT_CAPABILITY ErrorCorrectingCapability;
  380. EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemorySupportedInterleave;
  381. EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemoryCurrentInterleave;
  382. UINT8 MaxMemoryModuleSize;
  383. EFI_MEMORY_SPEED_TYPE MemorySpeedType;
  384. EFI_MEMORY_SUPPORTED_TYPE MemorySupportedType;
  385. EFI_MEMORY_MODULE_VOLTAGE_TYPE MemoryModuleVoltage;
  386. UINT8 NumberofMemorySlot;
  387. EFI_MEMORY_ERROR_CORRECT_CAPABILITY EnabledCorrectingCapability;
  388. EFI_INTER_LINK_DATA MemoryModuleConfig[1];
  389. } EFI_MEMORY_CONTROLLER_INFORMATION_DATA;
  390. The definitions above are *NOT* defined in MemSubclass specification 0.9. They are introduced to support
  391. new memory controller information (type 5) defined in SmBios 2.6 specification.
  392. Keeping this inconsistency to reflect the latest industry standard.
  393. 4. Guid/DataHubRecords.h
  394. #define EFI_MEMORY_32BIT_ERROR_INFORMATION_RECORD_NUMBER 0x00000009
  395. typedef enum {
  396. EfiMemoryErrorOther = 1,
  397. EfiMemoryErrorUnknown = 2,
  398. EfiMemoryErrorOk = 3,
  399. EfiMemoryErrorBadRead = 4,
  400. EfiMemoryErrorParity = 5,
  401. EfiMemoryErrorSigleBit = 6,
  402. EfiMemoryErrorDoubleBit = 7,
  403. EfiMemoryErrorMultiBit = 8,
  404. EfiMemoryErrorNibble = 9,
  405. EfiMemoryErrorChecksum = 10,
  406. EfiMemoryErrorCrc = 11,
  407. EfiMemoryErrorCorrectSingleBit = 12,
  408. EfiMemoryErrorCorrected = 13,
  409. EfiMemoryErrorUnCorrectable = 14
  410. } EFI_MEMORY_ERROR_TYPE;
  411. typedef enum {
  412. EfiMemoryGranularityOther = 1,
  413. EfiMemoryGranularityOtherUnknown = 2,
  414. EfiMemoryGranularityDeviceLevel = 3,
  415. EfiMemoryGranularityMemPartitionLevel = 4
  416. } EFI_MEMORY_ERROR_GRANULARITY_TYPE;
  417. typedef enum {
  418. EfiMemoryErrorOperationOther = 1,
  419. EfiMemoryErrorOperationUnknown = 2,
  420. EfiMemoryErrorOperationRead = 3,
  421. EfiMemoryErrorOperationWrite = 4,
  422. EfiMemoryErrorOperationPartialWrite = 5
  423. } EFI_MEMORY_ERROR_OPERATION_TYPE;
  424. typedef struct {
  425. EFI_MEMORY_ERROR_TYPE MemoryErrorType;
  426. EFI_MEMORY_ERROR_GRANULARITY_TYPE MemoryErrorGranularity;
  427. EFI_MEMORY_ERROR_OPERATION_TYPE MemoryErrorOperation;
  428. UINT32 VendorSyndrome;
  429. UINT32 MemoryArrayErrorAddress;
  430. UINT32 DeviceErrorAddress;
  431. UINT32 DeviceErrorResolution;
  432. } EFI_MEMORY_32BIT_ERROR_INFORMATION;
  433. The definitions above are *NOT* defined in MemSubclass specification 0.9. They are introduced to support
  434. new 32-bit memory error information (type 18) defined in SmBios 2.6 specification.
  435. Keeping this inconsistency to reflect the latest industry standard.
  436. 5. Guid/DataHubRecords.h
  437. #define EFI_MEMORY_64BIT_ERROR_INFORMATION_RECORD_NUMBER 0x0000000A
  438. typedef struct {
  439. EFI_MEMORY_ERROR_TYPE MemoryErrorType;
  440. EFI_MEMORY_ERROR_GRANULARITY_TYPE MemoryErrorGranularity;
  441. EFI_MEMORY_ERROR_OPERATION_TYPE MemoryErrorOperation;
  442. UINT32 VendorSyndrome;
  443. UINT64 MemoryArrayErrorAddress;
  444. UINT64 DeviceErrorAddress;
  445. UINT32 DeviceErrorResolution;
  446. } EFI_MEMORY_64BIT_ERROR_INFORMATION;
  447. The definitions above are *NOT* defined in MemSubclass specification 0.9. They are introduced to support
  448. new 64-bit memory error information (type 33) defined in SmBios 2.6 specification.
  449. Keeping this inconsistency to reflect the latest industry standard.
  450. 6. Guid/DataHubRecords.h
  451. typedef union _EFI_MEMORY_SUBCLASS_RECORDS {
  452. EFI_MEMORY_SIZE_DATA SizeData;
  453. ...
  454. EFI_MEMORY_64BIT_ERROR_INFORMATION Memory64bitErrorInfo;
  455. } EFI_MEMORY_SUBCLASS_RECORDS;
  456. typedef struct {
  457. EFI_SUBCLASS_TYPE1_HEADER Header;
  458. EFI_MEMORY_SUBCLASS_RECORDS Record;
  459. } EFI_MEMORY_SUBCLASS_DRIVER_DATA;
  460. The definitions above are *NOT* defined in MemSubclass specification 0.9. EdkII introduces them to simplify the
  461. code logic. Therefore developer doesn't need to allocate memory dynamically to construct variable length data record.
  462. Keeping this inconsistency for backward compatibility.
  463. ##
  464. # Mismatch with Intel Platform Innovation Framework for MiscSubclass Specification (Version 0.90)
  465. ##
  466. 1. Guid/DataHubRecords.h
  467. #pragma pack(1)
  468. typedef struct _USB_PORT_DEVICE_PATH {
  469. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  470. PCI_DEVICE_PATH PciBusDevicePath;
  471. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  472. } USB_PORT_DEVICE_PATH;
  473. typedef struct _IDE_DEVICE_PATH {
  474. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  475. PCI_DEVICE_PATH PciBusDevicePath;
  476. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  477. } IDE_DEVICE_PATH;
  478. typedef struct _RMC_CONN_DEVICE_PATH {
  479. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  480. PCI_DEVICE_PATH PciBridgeDevicePath;
  481. PCI_DEVICE_PATH PciBusDevicePath;
  482. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  483. } RMC_CONN_DEVICE_PATH;
  484. typedef struct _RIDE_DEVICE_PATH {
  485. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  486. PCI_DEVICE_PATH PciBridgeDevicePath;
  487. PCI_DEVICE_PATH PciBusDevicePath;
  488. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  489. } RIDE_DEVICE_PATH;
  490. typedef struct _GB_NIC_DEVICE_PATH {
  491. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  492. PCI_DEVICE_PATH PciBridgeDevicePath;
  493. PCI_DEVICE_PATH PciXBridgeDevicePath;
  494. PCI_DEVICE_PATH PciXBusDevicePath;
  495. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  496. } GB_NIC_DEVICE_PATH;
  497. typedef struct _PS2_CONN_DEVICE_PATH {
  498. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  499. PCI_DEVICE_PATH LpcBridgeDevicePath;
  500. ACPI_HID_DEVICE_PATH LpcBusDevicePath;
  501. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  502. } PS2_CONN_DEVICE_PATH;
  503. typedef struct _SERIAL_CONN_DEVICE_PATH {
  504. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  505. PCI_DEVICE_PATH LpcBridgeDevicePath;
  506. ACPI_HID_DEVICE_PATH LpcBusDevicePath;
  507. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  508. } SERIAL_CONN_DEVICE_PATH;
  509. typedef struct _PARALLEL_CONN_DEVICE_PATH {
  510. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  511. PCI_DEVICE_PATH LpcBridgeDevicePath;
  512. ACPI_HID_DEVICE_PATH LpcBusDevicePath;
  513. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  514. } PARALLEL_CONN_DEVICE_PATH;
  515. typedef struct _FLOOPY_CONN_DEVICE_PATH {
  516. ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
  517. PCI_DEVICE_PATH LpcBridgeDevicePath;
  518. ACPI_HID_DEVICE_PATH LpcBusDevicePath;
  519. EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
  520. } FLOOPY_CONN_DEVICE_PATH;
  521. typedef union _EFI_MISC_PORT_DEVICE_PATH {
  522. USB_PORT_DEVICE_PATH UsbDevicePath;
  523. IDE_DEVICE_PATH IdeDevicePath;
  524. RMC_CONN_DEVICE_PATH RmcConnDevicePath;
  525. RIDE_DEVICE_PATH RideDevicePath;
  526. GB_NIC_DEVICE_PATH GbNicDevicePath;
  527. PS2_CONN_DEVICE_PATH Ps2ConnDevicePath;
  528. SERIAL_CONN_DEVICE_PATH SerialConnDevicePath;
  529. PARALLEL_CONN_DEVICE_PATH ParallelConnDevicePath;
  530. FLOOPY_CONN_DEVICE_PATH FloppyConnDevicePath;
  531. } EFI_MISC_PORT_DEVICE_PATH;
  532. #pragma pack()
  533. a. The definitions above are *NOT* defined in MiscSubclass specifications 0.9. EdkII introduces them to simplify the
  534. code logic. Therefore developer doesn't need to allocate memory dynamically to construct variable length device
  535. path for various device.
  536. Keeping this inconsistency for backward compatibility.
  537. b. The definitions above are packed. This way violates the rule of alignment defined in DataHubSubclass specification.
  538. Section "Alignment" in DataHubSubclass specification say "Fields in a data hub record should be aligned at their
  539. natural boundaries". Keeping this inconsistency for backward compatibility.
  540. 2. Guid/DataHubRecords.h
  541. typedef struct {
  542. ...
  543. EFI_MISC_PORT_DEVICE_PATH PortPath;
  544. } EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA;
  545. The definition is *NOT* consistent with MiscSubclass specification, in which the type of last field is defined as
  546. "EFI_DEVICE_PATH_PROTOCOL". The definition in Specification may bring a little complexity on implementation. User
  547. have to allocate variable length memory to contain device path info and free them finially.
  548. EdkII introduced an union type named EFI_MISC_PORT_DEVICE_PATH to avoid the logic above.
  549. 3. Guid/DataHubRecords.h
  550. typedef struct {
  551. ...
  552. UINT8 BiosMajorRelease;
  553. UINT8 BiosMinorRelease;
  554. UINT8 BiosEmbeddedFirmwareMajorRelease;
  555. UINT8 BiosEmbeddedFirmwareMinorRelease;
  556. } EFI_MISC_BIOS_VENDOR_DATA;
  557. The fields listed above are *NOT* defined in MiscSubclass specification 0.9. They are introduced to support
  558. new bios information (type 0) defined in SmBios 2.6 specification.
  559. Keeping this inconsistency to reflect the latest industry standard.
  560. 4. Guid/DataHubRecords.h
  561. typedef struct {
  562. ...
  563. STRING_REF SystemSKUNumber;
  564. STRING_REF SystemFamily;
  565. } EFI_MISC_SYSTEM_MANUFACTURER_DATA;
  566. The fields listed above are *NOT* defined in MiscSubclass specification 0.9. They are introduced to support
  567. new system information (type 1) defined in SmBios 2.6 specification.
  568. Keeping this inconsistency to reflect the latest industry standard.
  569. 5. Guid/DataHubRecords.h
  570. typedef struct {
  571. ...
  572. EFI_INTER_LINK_DATA ManagementDeviceThresholdLink;
  573. UINT8 ComponentType;
  574. } EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_DATA;
  575. a. The field "ManagementDeviceThresholdLink" above is *NOT* defined in MiscSubclass specification 0.9. It is introduced to support
  576. new management device component (type 35) defined in SmBios 2.6 specification.
  577. Keeping this inconsistency to reflect the latest industry standard.
  578. b. The field "ComponentType" above is *NOT* defined in MiscSubclass specifications 0.9. It's implementation-specific to simplify the code logic.
  579. Keeping this inconsistency for backward compatibility.
  580. 6. Guid/DataHubRecords.h
  581. typedef struct {
  582. UINT32 ChassisType :16;
  583. UINT32 ChassisLockPresent:1;
  584. UINT32 Reserved :15;
  585. } EFI_MISC_CHASSIS_STATUS;
  586. The definition is *NOT* consistent with MiscSubclass specification 0.9, in which the first field is assigned a wrong field
  587. name "EFI_MISC_CHASSIS_TYPE". Due to EFI_MISC_CHASSIS_TYPE has been declared as a data type, it can not be used as a
  588. field name again. EdkII changes its name to "ChassisType" to pass build.
  589. 7. Guid/DataHubRecords.h
  590. typedef enum {
  591. ...
  592. EfiSlotTypeAgp2X = 0x10,
  593. ...
  594. EfiSlotTypePciExpress = 0xA5,
  595. EfiSlotTypePciExpressX1 = 0xA6,
  596. EfiSlotTypePciExpressX2 = 0xA7,
  597. EfiSlotTypePciExpressX4 = 0xA8,
  598. EfiSlotTypePciExpressX8 = 0xA9,
  599. EfiSlotTypePciExpressX16 = 0xAA
  600. } EFI_MISC_SLOT_TYPE;
  601. a. The field name "EfiSlotTypeAgp2X" is *NOT* consistent with MiscSubclass specification 0.9, in which it is named
  602. "EfiSlotTypeApg2X".
  603. From its literal sense, this field represents a AGP type display card, so it should be named as "EfiSlotTypeAgp2X".
  604. b. The enumeration fields from "EfiSlotTypePciExpress" to "EfiSlotTypePciExpressX16" are *NOT* defined in MiscSubclass specification 0.9.
  605. They are introduced to support new system slots (type 9) defined in SmBios 2.6 specification.
  606. Keeping this inconsistency to reflect the latest industry standard.
  607. 8. Guid/DataHubRecords.h
  608. typedef struct {
  609. ...
  610. EFI_MISC_ONBOARD_DEVICE_STATUS OnBoardDeviceStatus;
  611. ...
  612. } EFI_MISC_ONBOARD_DEVICE_DATA;
  613. The definition is *NOT* consistent with MiscSubclass specification 0.9, in which the field "OnBoardDeviceStatus" is
  614. named as "OnBoardDeviceType". Keeping this inconsistency for backward compatibility.
  615. 9. Guid/DataHubRecords.h
  616. #define EFI_MISC_PORTABLE_BATTERY_RECORD_NUMBER 0x00000010
  617. The name of the definition is *NOT* consistent with MiscSubclass specification 0.9, in which it is defined as
  618. "EFI_MISC_BATTERY_LOCATION_RECORD_NUMBER". Keeping this inconsistency for backward compatibility.
  619. 10. Guid/DataHubRecords.h
  620. typedef enum {
  621. EfiPortableBatteryDeviceChemistryOther = 1,
  622. EfiPortableBatteryDeviceChemistryUnknown = 2,
  623. EfiPortableBatteryDeviceChemistryLeadAcid = 3,
  624. EfiPortableBatteryDeviceChemistryNickelCadmium = 4,
  625. EfiPortableBatteryDeviceChemistryNickelMetalHydride = 5,
  626. EfiPortableBatteryDeviceChemistryLithiumIon = 6,
  627. EfiPortableBatteryDeviceChemistryZincAir = 7,
  628. EfiPortableBatteryDeviceChemistryLithiumPolymer = 8
  629. } EFI_MISC_PORTABLE_BATTERY_DEVICE_CHEMISTRY;
  630. The name of the definition is *NOT* consistent with MiscSubclass specification, in which it is defined as
  631. "EFI_MISC_BATTERY_DEVICE_CHEMISTRY". And all field names have a redundant "Portable" string compared with MisSubclass
  632. specification 0.9.
  633. Keeping this inconsistency for backward compatibility.
  634. 11. Guid/DataHubRecords.h
  635. typedef struct {
  636. STRING_REF Location;
  637. STRING_REF Manufacturer;
  638. STRING_REF ManufactureDate;
  639. STRING_REF SerialNumber;
  640. STRING_REF DeviceName;
  641. EFI_MISC_PORTABLE_BATTERY_DEVICE_CHEMISTRY DeviceChemistry;
  642. UINT16 DesignCapacity;
  643. UINT16 DesignVoltage;
  644. STRING_REF SBDSVersionNumber;
  645. UINT8 MaximumError;
  646. UINT16 SBDSSerialNumber;
  647. UINT16 SBDSManufactureDate;
  648. STRING_REF SBDSDeviceChemistry;
  649. UINT8 DesignCapacityMultiplier;
  650. UINT32 OEMSpecific;
  651. UINT8 BatteryNumber;
  652. BOOLEAN Valid;
  653. } EFI_MISC_PORTABLE_BATTERY;
  654. The definition is *NOT* consistent with MiscSubclass specification 0.9, in which the structure name is defined as
  655. "EFI_MISC_BATTERY_LOCATION_DATA". Moreover, the name and the order of all fields are also different with MiscSubclass
  656. specification 0.9. Keeping this inconsistency for backward compatibility.
  657. 12. Guid/DataHubRecords.h
  658. typedef enum {
  659. ...
  660. } EFI_MISC_BOOT_INFORMATION_STATUS_DATA_TYPE;
  661. The name of the definition is *NOT* consistent with MiscSubclass specification 0.9, in which it is defined as
  662. "EFI_MISC_BOOT_INFORMATION_STATUS_TYPE". Keeping this inconsistency for backward compatibility.
  663. 13. Guid/DataHubRecords.h
  664. typedef struct {
  665. EFI_MISC_BOOT_INFORMATION_STATUS_DATA_TYPE BootInformationStatus;
  666. ...
  667. } EFI_MISC_BOOT_INFORMATION_STATUS_DATA;
  668. The definition is *NOT* consistent with MiscSubclass specification 0.9, in which the type of the first field is
  669. "EFI_MISC_BOOT_INFORMATION_STATUS_TYPE". Keeping this inconsistency for backward compatibility.
  670. 14. Guid/DataHubRecords.h
  671. typedef struct {
  672. ...
  673. } EFI_MISC_SYSTEM_POWER_SUPPLY_DATA;
  674. The name of the definition is *NOT* consistent with MiscSubclass specification 0.9, in which it is defined as
  675. "EFI_MISC_POWER_SUPPLY_UNIT_GROUP_DATA". Keeping this inconsistency for backward compatibility.
  676. 15. Guid/DataHubRecords.h
  677. typedef struct {
  678. ...
  679. } SMBIOS_STRUCTURE_HDR;
  680. The name of the definition is *NOT* consistent with MiscSubclass specification 0.9, in which the structure name
  681. is defined as "EFI_SMBIOS_STRUCTURE_HDR". Due to this structure is commonly used by vendor to construct SmBios
  682. type 0x80~0xFF table, Keeping this inconsistency for backward compatibility.
  683. 16. Guid/DataHubRecords.h
  684. typedef struct {
  685. SMBIOS_STRUCTURE_HDR Header;
  686. ...
  687. } EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA;
  688. The definition is *NOT* consistent with MiscSubclass specification 0.9, in which the type of the first field is
  689. "EFI_SMBIOS_STRUCTURE_HDR". Keeping this inconsistency for backward compatibility.
  690. 17. Guid/DataHubRecords.h
  691. typedef struct {
  692. UINT16 PowerSupplyHotReplaceable:1;
  693. UINT16 PowerSupplyPresent :1;
  694. UINT16 PowerSupplyUnplugged :1;
  695. UINT16 InputVoltageRangeSwitch :4;
  696. UINT16 PowerSupplyStatus :3;
  697. UINT16 PowerSupplyType :4;
  698. UINT16 Reserved :2;
  699. } EFI_MISC_POWER_SUPPLY_CHARACTERISTICS;
  700. all field type in the definition are *NOT* consistent with MiscSubclass specification 0.9, in which it is defined as
  701. "UINT32" and the total width of bit-fields is 32bits width.
  702. Keeping this inconsistency for backward compatibility.
  703. 18. Guid/DataHubRecords.h
  704. #define EFI_MISC_SYSTEM_EVENT_LOG_RECORD_NUMBER 0x00000020
  705. typedef struct {
  706. UINT16 LogAreaLength;
  707. UINT16 LogHeaderStartOffset;
  708. UINT16 LogDataStartOffset;
  709. UINT8 AccessMethod;
  710. UINT8 LogStatus;
  711. UINT32 LogChangeToken;
  712. UINT32 AccessMethodAddress;
  713. UINT8 LogHeaderFormat;
  714. UINT8 NumberOfSupportedLogType;
  715. UINT8 LengthOfLogDescriptor;
  716. } EFI_MISC_SYSTEM_EVENT_LOG_DATA;
  717. #define ACCESS_INDEXIO_1INDEX8BIT_DATA8BIT 0x00
  718. #define ACCESS_INDEXIO_2INDEX8BIT_DATA8BIT 0X01
  719. #define ACCESS_INDEXIO_1INDEX16BIT_DATA8BIT 0X02
  720. #define ACCESS_MEMORY_MAPPED 0x03
  721. #define ACCESS_GPNV 0x04
  722. The definitions listed above are *NOT* defined in MiscSubclass specification 0.9. It is introduced to support
  723. new system event log (type 15) defined in SmBios 2.6 specification.
  724. Keeping this inconsistency to reflect the latest industry standard.
  725. 19. Guid/DataHubRecords.h
  726. #define EFI_MISC_MANAGEMENT_DEVICE_THRESHOLD_RECORD_NUMBER 0x00000021
  727. typedef struct {
  728. UINT16 LowerThresNonCritical;
  729. UINT16 UpperThresNonCritical;
  730. UINT16 LowerThresCritical;
  731. UINT16 UpperThresCritical;
  732. UINT16 LowerThresNonRecover;
  733. UINT16 UpperThresNonRecover;
  734. } EFI_MISC_MANAGEMENT_DEVICE_THRESHOLD;
  735. The definitions listed above are *NOT* defined in MiscSubclass specification 0.9. It is introduced to support
  736. new management device threshold data (type 36) defined in SmBios 2.6 specification.
  737. Keeping this inconsistency to reflect the latest industry standard.
  738. 20. Guid/DataHubRecords.h
  739. typedef union {
  740. EFI_MISC_LAST_PCI_BUS_DATA LastPciBus;
  741. ...
  742. EFI_MISC_MANAGEMENT_DEVICE_THRESHOLD MiscManagementDeviceThreshold;
  743. } EFI_MISC_SUBCLASS_RECORDS;
  744. typedef struct {
  745. EFI_SUBCLASS_TYPE1_HEADER Header;
  746. EFI_MISC_SUBCLASS_RECORDS Record;
  747. } EFI_MISC_SUBCLASS_DRIVER_DATA;
  748. The definitions above are *NOT* defined in MemSubclass specification 0.9. EdkII introduces them to simplify the
  749. code logic. Therefore developer doesn't need to allocate memory dynamically to construct variable length data record.
  750. Keeping this inconsistency for backward compatibility.
  751. 21. Guid/DataHubRecords.h
  752. typedef struct {
  753. EFI_MISC_COOLING_DEVICE_TYPE CoolingDeviceType;
  754. EFI_INTER_LINK_DATA CoolingDeviceTemperatureLink;
  755. UINT8 CoolingDeviceUnitGroup;
  756. UINT16 CoolingDeviceNominalSpeed;
  757. UINT32 CoolingDeviceOemDefined;
  758. } EFI_MISC_COOLING_DEVICE_TEMP_LINK_DATA;
  759. The "CoolingDeviceUnitGroup" field and "CoolingDeviceNominalSpeed" field are *NOT* consistent with
  760. MiscSubclass specification 0.9. These fields are aligned with SMBIOS 2.6 specification. And user can easily
  761. assign any value to CoolingDeviceNominalSpeed.
  762. 22. Guid/DataHubRecords.h
  763. typedef enum {
  764. ...
  765. EfiSlotDataBusWidth1xOrx1 = 0x8,
  766. EfiSlotDataBusWidth2xOrx2 = 0x9,
  767. EfiSlotDataBusWidth4xOrx4 = 0xA,
  768. EfiSlotDataBusWidth8xOrx8 = 0xB,
  769. EfiSlotDataBusWidth12xOrx12 = 0xC,
  770. EfiSlotDataBusWidth16xOrx16 = 0xD,
  771. EfiSlotDataBusWidth32xOrx32 = 0xE
  772. } EFI_MISC_SLOT_DATA_BUS_WIDTH;
  773. The enumeration fields from "EfiSlotDataBusWidth1xOrx1" to "EfiSlotDataBusWidth32xOrx32" are *NOT* defined in MiscSubclass specification 0.9.
  774. They are introduced to support new system slots (type 9) defined in SmBios 2.6 specification.
  775. Keeping this inconsistency to reflect the latest industry standard.
  776. 23. Guid/DataHubRecords.h
  777. typedef struct {
  778. ...
  779. UINT16 TemperatureProbeMaximumValue;
  780. UINT16 TemperatureProbeMinimumValue;
  781. UINT16 TemperatureProbeResolution;
  782. UINT16 TemperatureProbeTolerance;
  783. UINT16 TemperatureProbeAccuracy;
  784. UINT16 TemperatureProbeNominalValue;
  785. UINT16 MDLowerNoncriticalThreshold;
  786. UINT16 MDUpperNoncriticalThreshold;
  787. UINT16 MDLowerCriticalThreshold;
  788. UINT16 MDUpperCriticalThreshold;
  789. UINT16 MDLowerNonrecoverableThreshold;
  790. UINT16 MDUpperNonrecoverableThreshold;
  791. ...
  792. } EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_DATA;
  793. The structure fields from "TemperatureProbeMaximumValue" to "MDUpperNonrecoverableThreshold" are *NOT* consistent with MiscSubclass specification 0.9.
  794. The specification defines the fields type as EFI_EXP_BASE10_DATA. In fact, they should be UINT16 type because they refer to 16bit width data.
  795. Keeping this inconsistency for backward compatibility.
  796. 24. Guid/DataHubRecords.h
  797. #define EFI_MISC_IPMI_INTERFACE_TYPE_DATA_RECORD_NUMBER EFI_MISC_IPMI_INTERFACE_TYPE_RECORD_NUMBER
  798. The definition above is *NOT* defined in MiscSubclass specifications 0.9. It's defined for backward compatibility.
  799. ##
  800. # Mismatch with Intel Platform Innovation Framework for Status Codes Specification (Version 0.92)
  801. ##
  802. 1. Include/Framework/StatusCode.h
  803. #define EFI_IOB_ATA_BUS_SMART_ENABLE (EFI_SUBCLASS_SPECIFIC | 0x00000000)
  804. #define EFI_IOB_ATA_BUS_SMART_DISABLE (EFI_SUBCLASS_SPECIFIC | 0x00000001)
  805. #define EFI_IOB_ATA_BUS_SMART_OVERTHRESHOLD (EFI_SUBCLASS_SPECIFIC | 0x00000002)
  806. #define EFI_IOB_ATA_BUS_SMART_UNDERTHRESHOLD (EFI_SUBCLASS_SPECIFIC | 0x00000003)
  807. #define EFI_IOB_ATA_BUS_SMART_NOTSUPPORTED (EFI_SUBCLASS_SPECIFIC | 0x00000000)
  808. #define EFI_IOB_ATA_BUS_SMART_DISABLED (EFI_SUBCLASS_SPECIFIC | 0x00000001)
  809. #define EFI_SW_DXE_BS_PC_BEGIN_CONNECTING_DRIVERS (EFI_SUBCLASS_SPECIFIC | 0x00000005)
  810. #define EFI_SW_DXE_BS_PC_VERIFYING_PASSWORD (EFI_SUBCLASS_SPECIFIC | 0x00000006)
  811. #define EFI_SW_DXE_RT_PC_S0 (EFI_SUBCLASS_SPECIFIC | 0x00000000)
  812. #define EFI_SW_DXE_RT_PC_S1 (EFI_SUBCLASS_SPECIFIC | 0x00000001)
  813. #define EFI_SW_DXE_RT_PC_S2 (EFI_SUBCLASS_SPECIFIC | 0x00000002)
  814. #define EFI_SW_DXE_RT_PC_S3 (EFI_SUBCLASS_SPECIFIC | 0x00000003)
  815. #define EFI_SW_DXE_RT_PC_S4 (EFI_SUBCLASS_SPECIFIC | 0x00000004)
  816. #define EFI_SW_DXE_RT_PC_S5 (EFI_SUBCLASS_SPECIFIC | 0x00000005)
  817. #define EFI_SW_CSM_LEGACY_ROM_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000000)
  818. The definitions above are *NOT* defined in Framework StatusCodes specification 0.92. But these subclass-specific error code
  819. operations are needed for EdkII implementation.
  820. Keeping this inconsistency for backward compatibility.
  821. 2. Include/Framework/StatusCode.h
  822. typedef union {
  823. CHAR8 *Ascii;
  824. CHAR16 *Unicode;
  825. ...
  826. } EFI_STATUS_CODE_STRING;
  827. The definition is *NOT* consistent with Framework SatausCodes specification 0.92, in which the first field is defined as "CHAR8 Ascii[]"
  828. and the second field is defined as "CHAR16 Unicode[]". Keeping this inconsistency for backward compatibility.
  829. 3. Include/Framework/StatusCode.h
  830. #define EFI_SW_EC_X64_DIVIDE_ERROR EXCEPT_X64_DIVIDE_ERROR
  831. #define EFI_SW_EC_X64_DEBUG EXCEPT_X64_DEBUG
  832. #define EFI_SW_EC_X64_NMI EXCEPT_X64_NMI
  833. #define EFI_SW_EC_X64_BREAKPOINT EXCEPT_X64_BREAKPOINT
  834. #define EFI_SW_EC_X64_OVERFLOW EXCEPT_X64_OVERFLOW
  835. #define EFI_SW_EC_X64_BOUND EXCEPT_X64_BOUND
  836. #define EFI_SW_EC_X64_INVALID_OPCODE EXCEPT_X64_INVALID_OPCODE
  837. #define EFI_SW_EC_X64_DOUBLE_FAULT EXCEPT_X64_DOUBLE_FAULT
  838. #define EFI_SW_EC_X64_INVALID_TSS EXCEPT_X64_INVALID_TSS
  839. #define EFI_SW_EC_X64_SEG_NOT_PRESENT EXCEPT_X64_SEG_NOT_PRESENT
  840. #define EFI_SW_EC_X64_STACK_FAULT EXCEPT_X64_STACK_FAULT
  841. #define EFI_SW_EC_X64_GP_FAULT EXCEPT_X64_GP_FAULT
  842. #define EFI_SW_EC_X64_PAGE_FAULT EXCEPT_X64_PAGE_FAULT
  843. #define EFI_SW_EC_X64_FP_ERROR EXCEPT_X64_FP_ERROR
  844. #define EFI_SW_EC_X64_ALIGNMENT_CHECK EXCEPT_X64_ALIGNMENT_CHECK
  845. #define EFI_SW_EC_X64_MACHINE_CHECK EXCEPT_X64_MACHINE_CHECK
  846. #define EFI_SW_EC_X64_SIMD EXCEPT_X64_SIMD
  847. The definitions are *NOT* defined in Framework StatusCodes specification 0.92, in which IA32 and IPF exception subclass error code definitions
  848. are defined but omit the corresponding definitions for X64. EdkII introduce these definitions for implementation.
  849. ##
  850. # Mismatch with Intel Platform Innovation Framework for EFI Boot Script Specification (Version 0.91)
  851. ##
  852. 1. Include/Protocol/BootScriptSave.h
  853. #define EFI_BOOT_SCRIPT_SAVE_PROTOCOL_GUID \
  854. { \
  855. 0x470e1529, 0xb79e, 0x4e32, {0xa0, 0xfe, 0x6a, 0x15, 0x6d, 0x29, 0xf9, 0xb2 } \
  856. }
  857. The macro name "EFI_BOOT_SCRIPT_SAVE_PROTOCOL_GUID" is *NOT* consistent with Framework BootScript specification 0.91,
  858. in which it's defined as "EFI_BOOT_SCRIPT_SAVE_GUID". Keeping this inconsistency for backward compatibility.
  859. 2. Include/Protocol/BootScriptSave.h
  860. EFI_STATUS
  861. EFI_BOOTSERVICE
  862. (EFIAPI *EFI_BOOT_SCRIPT_WRITE) (
  863. IN EFI_BOOT_SCRIPT_SAVE_PROTOCOL *This,
  864. ...
  865. );
  866. The first parameter's type is *NOT* consistent with Framework BootScript specification 0.91, in which it's defined as
  867. "struct _EFI_BOOT_SCRIPT_SAVE_PROTOCOL". Keeping this inconsistency for backward compatibility.
  868. 3. Include/Framework/BootScript.h
  869. #define EFI_BOOT_SCRIPT_MEM_POLL_OPCODE 0x09
  870. #define EFI_BOOT_SCRIPT_INFORMATION_OPCODE 0x0A
  871. #define EFI_BOOT_SCRIPT_PCI_CONFIG2_WRITE_OPCODE 0x0B
  872. #define EFI_BOOT_SCRIPT_PCI_CONFIG2_READ_WRITE_OPCODE 0x0C
  873. #define EFI_BOOT_SCRIPT_DISPATCH_2_OPCODE 0x0D
  874. The OPCODEs above are not defined in Framework BootScript Specification 0.91, but adopted by PI 1.0 Spec. And they
  875. are needed for EdkII implementation.
  876. 4. Include/Framework/BootScript.h
  877. #define EFI_BOOT_SCRIPT_TABLE_OPCODE 0xAA
  878. #define EFI_BOOT_SCRIPT_TERMINATE_OPCODE 0xFF
  879. The two OPCODEs are *NOT* defined in Framework BootScript specification 0.91. EdkII introduces them to indicate the start
  880. or end of the boot script table.
  881. Keeping this inconsistency for backward compatibility.
  882. 5. Include/Protocol/BootScriptSave.h
  883. typedef
  884. EFI_STATUS
  885. (EFIAPI *EFI_BOOT_SCRIPT_CLOSE_TABLE) (
  886. IN EFI_BOOT_SCRIPT_SAVE_PROTOCOL *This,
  887. ...
  888. );
  889. The first parameter's type is *NOT* consistent with BootScript specification, in which it's defined as
  890. "struct _EFI_BOOT_SCRIPT_SAVE_PROTOCOL". Keeping this inconsistency for backward compatibility.
  891. 6. Include/Include/BootScriptExecuter.h
  892. typedef
  893. EFI_STATUS
  894. (EFIAPI *EFI_PEI_BOOT_SCRIPT_EXECUTE)(
  895. IN EFI_PEI_SERVICES **PeiServices,
  896. IN EFI_PEI_BOOT_SCRIPT_EXECUTER_PPI *This,
  897. ...
  898. );
  899. The second parameter's type is *NOT* consistent with BootScript specification, in which it's defined as
  900. "struct _EFI_PEI_BOOT_SCRIPT_EXECUTER_PPI". Keeping this inconsistency for backward compatibility.
  901. ##
  902. # Mismatch with Intel Platform Innovation Framework for EFI DXE CIS (Version 0.91)
  903. ##
  904. 1. Include/Framework/DxeCis.h
  905. EFI_STATUS_CODE_ARCH_PROTOCOL is removed.
  906. EdkII doesn't provide EFI_STATUS_CODE_ARCH_PROTOCOL definition due to ReportStatusCode() field has been
  907. removed from EFI Runtime Service Table of PI specification. EFI_STATUS_CODE_ARCH_PROTOCOL is *NOT* required,
  908. and is replaced with EFI_STATUS_CODE_RUNTIME_PROTOCOL.
  909. ##
  910. # Mismatch with Intel Platform Innovation Framework for EFI Firmware Volume Specification (Version 0.9)
  911. ##
  912. 1. Include/Framework/FirmwareVolumeImageFormat.h
  913. #define EFI_AGGREGATE_AUTH_STATUS_ALL 0x00000f
  914. #define EFI_LOCAL_AUTH_STATUS_ALL 0x0f0000
  915. The two macros are *NOT* defined in Framework FV specification 0.9. EdkII introduces them as a mask to calculate the
  916. value of authentication status.
  917. ##
  918. # Mismatch with Intel Platform Innovation Framework for EFI Human Interface Infrastructure Specification (Version 0.92)
  919. ##
  920. 1. Include/Protocol/FrameworkHii.h
  921. #define EFI_HII_PROTOCOL_GUID \
  922. { \
  923. 0xd7ad636e, 0xb997, 0x459b, {0xbf, 0x3f, 0x88, 0x46, 0x89, 0x79, 0x80, 0xe1} \
  924. }
  925. The Framework HII specification 0.92 changed part of HII interfaces but did not update the protocol GUID.
  926. This change should cause a change of GUID in both of code and HII spec. EdkII updates the GUID in code,
  927. but the Framework HII specification 0.92 is not updated. This is a known issue.
  928. 2. Include/Protocol/FrameworkHii.h
  929. typedef struct {
  930. ...
  931. EFI_HANDLE COBExportHandle;
  932. } EFI_HII_HANDLE_PACK;
  933. The last field "COBExportHandle" of EFI_HII_HANDLE_PACK is *NOT* defined in the Framework HII specification
  934. 0.92. Keeping this inconsistency for backward compatibility.
  935. 3. Include/Protocol/FrameworkHii.h
  936. typedef struct {
  937. UINTN NumberOfPackages;
  938. EFI_GUID *GuidId;
  939. } EFI_HII_PACKAGES;
  940. The definition is *NOT* consistent with Framework HII specification 0.92, in which a field "HandlePack" is defined.
  941. EdkII changes the EFI_HII_PACKAGES to contain various number of packages of different types just after the structure
  942. as inline data, which will bring the flexibility on development.
  943. 4. Include/Protocol/FrameworkHii.h
  944. struct _EFI_HII_PROTOCOL {
  945. ...
  946. EFI_HII_RESET_STRINGS ResetStrings;
  947. ...
  948. };
  949. The field listed above is *NOT* defined in Framework HII specification 0.92. EdkII adds this field to provide
  950. an ability of removing any new strings that were added after the initial string export for this handle.
  951. 5. Include/Protocol/FrameworkHii.h
  952. typedef
  953. EFI_STATUS
  954. (EFIAPI *EFI_HII_GLYPH_TO_BLT)(
  955. ...
  956. IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL Foreground,
  957. IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL Background,
  958. ...
  959. IN OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer
  960. );
  961. The type of the parameters listed above are *NOT* consistent with Framework HII specification 0.92, in which
  962. the type of these parameters is EFI_UGA_PIXEL. Here the definition uses the EFI_GRAPHICS_OUTPUT_BLT_PIXEL which
  963. defined in UEFI2.1 spec. Keeping this inconsistency for backward compatibility.
  964. 6. Include/Protocol/FrameworkHii.h
  965. typedef struct {
  966. FRAMEWORK_EFI_IFR_OP_HEADER Header;
  967. UINT8 Flags;
  968. } EFI_IFR_SUPPRESS;
  969. typedef struct {
  970. FRAMEWORK_EFI_IFR_OP_HEADER Header;
  971. UINT8 Flags;
  972. } EFI_IFR_GRAY_OUT;
  973. typedef struct {
  974. FRAMEWORK_EFI_IFR_OP_HEADER Header;
  975. STRING_REF Popup;
  976. UINT8 Flags;
  977. } EFI_IFR_INCONSISTENT;
  978. typedef struct {
  979. FRAMEWORK_EFI_IFR_OP_HEADER Header;
  980. UINT16 QuestionId;
  981. UINT8 Width;
  982. UINT16 Value;
  983. } FRAMEWORK_EFI_IFR_EQ_ID_VAL;
  984. typedef struct {
  985. FRAMEWORK_EFI_IFR_OP_HEADER Header;
  986. UINT16 QuestionId;
  987. UINT8 Width;
  988. UINT16 ListLength;
  989. UINT16 ValueList[1];
  990. } FRAMEWORK_EFI_IFR_EQ_ID_LIST;
  991. typedef struct {
  992. FRAMEWORK_EFI_IFR_OP_HEADER Header;
  993. UINT16 QuestionId1;
  994. UINT8 Width;
  995. UINT16 QuestionId2;
  996. } FRAMEWORK_EFI_IFR_EQ_ID_ID;
  997. typedef struct {
  998. FRAMEWORK_EFI_IFR_OP_HEADER Header;
  999. UINT16 VariableId;
  1000. UINT16 Value;
  1001. } EFI_IFR_EQ_VAR_VAL;
  1002. The defintions are not complied with Framework HII spec 0.92. Keeping the inconsistent for implementation needed.
  1003. 7. Include/Protocol/FrameworkFormCallback.h
  1004. #define RESET_REQUIRED 1
  1005. #define EXIT_REQUIRED 2
  1006. #define SAVE_REQUIRED 4
  1007. #define NV_CHANGED 8
  1008. #define NV_NOT_CHANGED 16
  1009. These macros are *NOT* defined in the Framework HII specification 0.92. These Flags are introduced to describe
  1010. the standard behavior of the browser after the callback.
  1011. Keeping this inconsistency for backward compatibility.
  1012. 8. Include/Protocol/FrameworkFormCallback.h
  1013. typedef
  1014. EFI_STATUS
  1015. (EFIAPI *EFI_NV_WRITE)(
  1016. ...
  1017. IN UINT32 Attributes,
  1018. ...
  1019. );
  1020. The definition is *NOT* consistent with Framework HII specification 0.92, in which the type of Attributes
  1021. parameter is defined as "UINT32 *". EdkII changes the type of Attributes from UINT32 * to UINT32 because
  1022. the input paramter is not necessary to use pointer date type.
  1023. ##
  1024. # Mismatch with Intel Platform Innovation Framework for PEI CIS Specification (Version 0.91)
  1025. ##
  1026. 1. Include/Ppi/ReadOnlyVariable.h
  1027. #define EFI_VARIABLE_READ_ONLY 0x00000008
  1028. In Framework PeiCis specification 0.91, neither the macro or its value is defined.
  1029. Keeping this inconsistency for backward compatibility.
  1030. 2. Include/Ppi/FindFv.h
  1031. typedef
  1032. EFI_STATUS
  1033. (EFIAPI *EFI_PEI_FIND_FV_FINDFV)(
  1034. IN EFI_PEI_FIND_FV_PPI *This,
  1035. IN EFI_PEI_SERVICES **PeiServices,
  1036. IN UINT8 *FvNumber,
  1037. IN OUT EFI_FIRMWARE_VOLUME_HEADER **FVAddress
  1038. );
  1039. The definition is *NOT* consistent with Framework PeiCis specification 0.91. Compared with spec, the order
  1040. of the first and second parameters is reversed. Keeping this inconsistency for backward compatibility.
  1041. ##
  1042. # Mismatch with Intel Platform Innovation Framework for EFI SMM CIS (Version 0.91)
  1043. ##
  1044. 1. Include/Guid/SmramMemoryReserve.h
  1045. typedef struct {
  1046. UINT32 NumberOfSmmReservedRegions;
  1047. ...
  1048. } EFI_SMRAM_HOB_DESCRIPTOR_BLOCK;
  1049. 1) The name of the definition is *NOT* consistent with Framework SmmCis specification 0.91, in which it's
  1050. defined as "EFI_HOB_SMRAM_DESCRIPTOR_BLOCK" rather than "EFI_SMRAM_HOB_DESCRIPTOR_BLOCK".
  1051. Keeping this inconsistency for backward compatibility.
  1052. 2) The definition of NumberOfSmmReservedRegions is *NOT* consistent with Framework SmmCis specification 0.91,
  1053. in which the type of this field is defined as UINTN. However, HOBs are supposed to be CPU neutral, so UINTN
  1054. is incorrect and UINT32 should be used.
  1055. 2. Include/Guid/SmramMemoryReserve.h
  1056. typedef enum {
  1057. ...
  1058. IchnIoTrap3,
  1059. IchnIoTrap2,
  1060. IchnIoTrap1,
  1061. IchnIoTrap0,
  1062. IchnPciExpress,
  1063. IchnMonitor,
  1064. IchnSpi,
  1065. IchnQRT,
  1066. IchnGpioUnlock,
  1067. ...
  1068. } EFI_SMM_ICHN_SMI_TYPE;
  1069. The enumeration fields listed above are *NOT* defined in Framework SmmCis specification 0.91. EdkII introduces
  1070. these fields to support new SMI types.
  1071. 3. Include/Framework/SmmCis.h
  1072. typedef union {
  1073. ///
  1074. /// The processor save-state information for IA-32 processors.
  1075. ///
  1076. EFI_SMI_CPU_SAVE_STATE Ia32SaveState;
  1077. ///
  1078. /// Note: Inconsistency with the Framework SMM CIS spec - Itanium save state not included.
  1079. ///
  1080. /// The processor save-state information for Itanium processors.
  1081. ///
  1082. /// EFI_PMI_SYSTEM_CONTEXT ItaniumSaveState;
  1083. } EFI_SMM_CPU_SAVE_STATE;
  1084. ##
  1085. # Mismatch with Intel Platform Innovation Framework for EFI S3 Resume Boot Path Specification (Version 0.9)
  1086. ##
  1087. 1. Include/Protocol/AcpiS3Save.h
  1088. typedef
  1089. EFI_STATUS
  1090. EFI_BOOTSERVICE
  1091. (EFIAPI *EFI_ACPI_GET_LEGACY_MEMORY_SIZE) (
  1092. IN EFI_ACPI_S3_SAVE_PROTOCOL *This,
  1093. OUT UINTN *Size
  1094. );
  1095. The first parameter's type is *NOT* consistent with Framework S3Resume specification, in which it's defined as
  1096. "struct _EFI_ACPI_S3_SAVE_PROTOCOL". Keeping this inconsistency for backward compatibility.
  1097. 2. Include/Protocol/AcpiS3Save.h
  1098. typedef
  1099. EFI_STATUS
  1100. (EFIAPI *EFI_ACPI_S3_SAVE) (
  1101. IN EFI_ACPI_S3_SAVE_PROTOCOL *This,
  1102. IN VOID *LegacyMemoryAddress
  1103. );
  1104. The first parameter's type is *NOT* consistent with Framework S3Resume specification, in which it's defined as
  1105. "struct _EFI_ACPI_S3_SAVE_PROTOCOL". Also the EFI_BOOTSERVICE modifier is removed from the function declaration.
  1106. 3. Include/Protocol/AcpiS3Save.h
  1107. typedef
  1108. EFI_STATUS
  1109. (EFIAPI *EFI_ACPI_GET_LEGACY_MEMORY_SIZE)(
  1110. IN EFI_ACPI_S3_SAVE_PROTOCOL *This,
  1111. OUT UINTN *Size
  1112. );
  1113. The first parameter's type is *NOT* consistent with Framework S3Resume specification, in which it's defined as
  1114. "struct _EFI_ACPI_S3_SAVE_PROTOCOL". Also the EFI_BOOTSERVICE modifier is removed from the function declaration.
  1115. ##
  1116. # Mismatch with Intel Platform Innovation Framework for EFI ACPI Specification (Version 0.91)
  1117. ##
  1118. 1. Include/Protocol/AcpiSupport.h
  1119. typedef
  1120. EFI_STATUS
  1121. (EFIAPI *EFI_ACPI_GET_ACPI_TABLE)(
  1122. ...
  1123. );
  1124. The function modifier is *NOT* consistent with Framework Acpi specification. The EFI_BOOTSERVICE modifier
  1125. is removed from the function declaration.
  1126. 2. Include/Protocol/AcpiSupport.h
  1127. typedef
  1128. EFI_STATUS
  1129. (EFIAPI *EFI_ACPI_SET_ACPI_TABLE)(
  1130. ...
  1131. );
  1132. The function modifier is *NOT* consistent with Framework Acpi specification. The EFI_BOOTSERVICE modifier
  1133. is removed from the function declaration.
  1134. 3. Include/Protocol/AcpiSupport.h
  1135. typedef
  1136. EFI_STATUS
  1137. (EFIAPI *EFI_ACPI_PUBLISH_TABLES)(
  1138. ...
  1139. );
  1140. The function modifier is *NOT* consistent with Framework Acpi specification. The EFI_BOOTSERVICE modifier
  1141. is removed from the function declaration.