]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Compatibility/DataHubSmBiosRecordsOnPiSmBiosThunk/Thunk.h
2069fa962a5c5209fd1699133b574bd4a91e3446
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / DataHubSmBiosRecordsOnPiSmBiosThunk / Thunk.h
1 /** @file
2 The common header file for the thunk driver.
3
4 Copyright (c) 2009 Intel Corporation. <BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef _DATAHUB_TO_SMBIOS_THUNK_
16 #define _DATAHUB_TO_SMBIOS_THUNK_
17
18 #include <FrameworkDxe.h>
19 #include <IndustryStandard/SmBios.h>
20
21 #include <Guid/EventGroup.h>
22 #include <Guid/SmBios.h>
23 #include <Protocol/DataHub.h>
24 #include <Guid/DataHubRecords.h>
25 #include <Protocol/HiiDatabase.h>
26 #include <Protocol/Smbios.h>
27
28 #include <Library/BaseLib.h>
29 #include <Library/PcdLib.h>
30 #include <Library/DebugLib.h>
31 #include <Library/UefiLib.h>
32 #include <Library/HiiLib.h>
33 #include <Library/BaseMemoryLib.h>
34 #include <Library/ReportStatusCodeLib.h>
35 #include <Library/UefiDriverEntryPoint.h>
36 #include <Library/MemoryAllocationLib.h>
37 #include <Library/UefiBootServicesTableLib.h>
38
39 //
40 // Conversion Table that describes the translation method for
41 // Data Hub Data Records of certain SubClass and RecordNumber
42 //
43 typedef enum {
44 BY_SUBCLASS_INSTANCE_SUBINSTANCE_PRODUCER,
45 BY_SUBCLASS_INSTANCE_PRODUCER,
46 MAX_LOCATING_METHOD
47 } SMBIOS_STRUCTURE_LOCATING_METHOD;
48
49 typedef enum {
50 RECORD_DATA_UNCHANGED_OFFSET_SPECIFIED,
51 BY_FUNCTION_WITH_OFFSET_SPECIFIED,
52 BY_FUNCTION,
53 BY_FUNCTION_WITH_WHOLE_DATA_RECORD,
54 MAX_FIELD_FILLING_METHOD
55 } SMBIOS_FIELD_FILLING_METHOD;
56
57 typedef struct _SMBIOS_STRUCTURE_NODE SMBIOS_STRUCTURE_NODE;
58
59 typedef struct {
60 UINT8 Type;
61 UINT8 Length;
62 UINT16 Handle;
63 UINT8 Tailing[2];
64 } EFI_SMBIOS_TABLE_TYPE127;
65
66 typedef
67 EFI_STATUS
68 (*SMBIOS_FIELD_FILLING_FUNCTION) (
69 IN OUT SMBIOS_STRUCTURE_NODE * StructureNode,
70 IN UINT32 Offset OPTIONAL,
71 IN VOID *RecordData,
72 IN UINT32 RecordDataSize
73 );
74
75 typedef struct {
76 //
77 // Data Hub Data Record's SubClass and RecordNumber
78 //
79 EFI_GUID SubClass;
80 UINT32 RecordType;
81
82 //
83 // Translation method applied
84 //
85 UINT8 SmbiosType;
86 SMBIOS_STRUCTURE_LOCATING_METHOD StructureLocatingMethod;
87 SMBIOS_FIELD_FILLING_METHOD FieldFillingMethod;
88 UINT32 FieldOffset;
89 SMBIOS_FIELD_FILLING_FUNCTION FieldFillingFunction;
90
91 } SMBIOS_CONVERSION_TABLE_ENTRY;
92
93 //
94 // SMBIOS_LINK_DATA_FIXUP nodes indicate the Link fields that
95 // need to be fixed up when creating the resulting Smbios image.
96 //
97 #define SMBIOS_LINK_DATA_FIXUP_NODE_SIGNATURE SIGNATURE_32 ('S', 'm', 'l', 'n')
98
99 typedef struct {
100
101 UINT32 Signature;
102 LIST_ENTRY Link;
103
104 UINT32 Offset;
105 UINT8 TargetType;
106 EFI_GUID SubClass;
107 EFI_INTER_LINK_DATA LinkData;
108
109 } SMBIOS_LINK_DATA_FIXUP_NODE;
110
111 //
112 // The global Structure List node.
113 // The Structure List is populated as more and more
114 // Structures (of various types) are discovered and inserted.
115 // The nodes in the Structure List will be concatenated
116 // to form the ultimate SMBIOS table.
117 //
118 #define SMBIOS_STRUCTURE_NODE_SIGNATURE SIGNATURE_32 ('S', 'm', 'b', 's')
119
120 struct _SMBIOS_STRUCTURE_NODE {
121
122 UINT32 Signature;
123 LIST_ENTRY Link;
124
125 //
126 // Tags
127 //
128 EFI_GUID SubClass;
129 UINT16 Instance;
130 UINT16 SubInstance;
131 EFI_GUID ProducerName;
132
133 //
134 // the Smbios structure
135 //
136 UINT32 StructureSize; // Actual structure size including strings
137
138 EFI_SMBIOS_TABLE_HEADER *Structure;
139
140
141 EFI_SMBIOS_HANDLE SmbiosHandle; // Smbios Handle in SMBIOS database.
142
143 EFI_SMBIOS_TYPE SmbiosType;
144
145 LIST_ENTRY LinkDataFixup;
146
147 };
148
149 //
150 // Smbios type info table. Indicates minimum length
151 // for each Smbios type as the indicator of the initial size of buffer
152 // allocated for the structure instance of a specific type.
153 //
154 typedef struct {
155
156 UINT8 Type;
157 UINT8 MinLength; // Minimal structure size including
158 // TWO trailing bytes of 0x00
159 //
160 BOOLEAN IsRequired; // Required structure type defined by Smbios Spec
161 BOOLEAN IsCreated; // Created in this run
162 } SMBIOS_TYPE_INFO_TABLE_ENTRY;
163
164 //
165 // EDK framwork Memory Data hub definition to support EDK/Framework driver.
166 //
167 typedef struct {
168 STRING_REF MemoryDeviceLocator;
169 STRING_REF MemoryBankLocator;
170 STRING_REF MemoryManufacturer;
171 STRING_REF MemorySerialNumber;
172 STRING_REF MemoryAssetTag;
173 STRING_REF MemoryPartNumber;
174 EFI_INTER_LINK_DATA MemoryArrayLink;
175 EFI_INTER_LINK_DATA MemorySubArrayLink;
176 UINT16 MemoryTotalWidth;
177 UINT16 MemoryDataWidth;
178 UINT64 MemoryDeviceSize;
179 EFI_MEMORY_FORM_FACTOR MemoryFormFactor;
180 UINT8 MemoryDeviceSet;
181 EFI_MEMORY_ARRAY_TYPE MemoryType;
182 EFI_MEMORY_TYPE_DETAIL MemoryTypeDetail;
183 UINT16 MemorySpeed;
184 EFI_MEMORY_STATE MemoryState;
185 UINT8 MemoryAttributes;
186 } FRAMEWORK_MEMORY_ARRAY_LINK_DATA;
187
188 typedef struct {
189 EFI_MEMORY_ARRAY_LOCATION MemoryArrayLocation;
190 EFI_MEMORY_ARRAY_USE MemoryArrayUse;
191 EFI_MEMORY_ERROR_CORRECTION MemoryErrorCorrection;
192 UINT32 MaximumMemoryCapacity;
193 UINT16 NumberMemoryDevices;
194 } FRAMEWORK_MEMORY_ARRAY_LOCATION_DATA;
195
196 //
197 // Global variables
198 //
199 extern SMBIOS_CONVERSION_TABLE_ENTRY mConversionTable[];
200 extern SMBIOS_TYPE_INFO_TABLE_ENTRY mTypeInfoTable[];
201 extern LIST_ENTRY mStructureList;
202
203 //
204 // Function Prototypes
205 //
206 /**
207 Smbios data filter function. This function is invoked when there is data records
208 available in the Data Hub.
209
210 @param Event The event that is signaled.
211 @param Context not used here.
212 **/
213 VOID
214 EFIAPI
215 SmbiosDataFilter (
216 IN EFI_EVENT Event,
217 IN VOID *Context
218 );
219
220 //
221 // Function prototypes
222 //
223 /**
224 Process a datahub's record and find corresponding translation way to translate
225 to SMBIOS record.
226
227 @param Record Point to datahub record.
228 **/
229 VOID
230 SmbiosProcessDataRecord (
231 IN EFI_DATA_RECORD_HEADER *Record
232 )
233 ;
234
235 /**
236 Calculate the minimal length for a SMBIOS type. This length maybe not equal
237 to sizeof (SMBIOS_RECORD_STRUCTURE), but defined in conformance chapter in SMBIOS specification.
238
239 @param Type SMBIOS's type.
240
241 @return the minimal length of a smbios record.
242 **/
243 UINT32
244 SmbiosGetTypeMinimalLength (
245 IN UINT8 Type
246 )
247 ;
248
249 /**
250 Enlarge the structure buffer of a structure node in SMBIOS database.
251 The function maybe lead the structure pointer for SMBIOS record changed.
252
253 @param StructureNode The structure node whose structure buffer is to be enlarged.
254 @param NewLength The new length of SMBIOS record which does not include unformat area.
255 @param OldBufferSize The old size of SMBIOS record buffer.
256 @param NewBufferSize The new size is targeted for enlarged.
257
258 @retval EFI_OUT_OF_RESOURCES No more memory to allocate new record
259 @retval EFI_SUCCESS Success to enlarge the record buffer size.
260 **/
261 EFI_STATUS
262 SmbiosEnlargeStructureBuffer (
263 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
264 UINT8 NewLength,
265 UINTN OldBufferSize,
266 UINTN NewBufferSize
267 );
268
269 /**
270 Field Filling Function. Fill a standard Smbios string field.
271 Convert the unicode string to single byte chars.
272 Only English language is supported.
273
274 This function changes the Structure pointer value of the structure node,
275 which should be noted by Caller.
276
277 @param StructureNode Pointer to SMBIOS_STRUCTURE_NODE which is current processed.
278 @param Offset Offset of SMBIOS record which RecordData will be filled.
279 @param RecordData RecordData buffer will be filled.
280 @param RecordDataSize The size of RecordData buffer.
281
282 @retval EFI_INVALID_PARAMETER RecordDataSize is too larger
283 @retval EFI_OUT_OF_RESOURCES No memory to allocate new buffer for string
284 @retval EFI_SUCCESS Sucess append string for a SMBIOS record.
285 **/
286 EFI_STATUS
287 SmbiosFldString (
288 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
289 IN UINT32 Offset,
290 IN VOID *RecordData,
291 IN UINT32 RecordDataSize
292 )
293 ;
294
295 /**
296 Fill the inter link field for a SMBIOS recorder.
297
298 Some SMBIOS recorder need to reference the handle of another SMBIOS record. But
299 maybe another SMBIOS record has not been added, so put the InterLink request into
300 a linked list and the interlink will be fixedup when a new SMBIOS record is added.
301
302 @param StructureNode Point to SMBIOS_STRUCTURE_NODE which reference another record's handle
303 @param LinkSmbiosNodeOffset The offset in this record for holding the handle of another SMBIOS record
304 @param LinkSmbiosType The type of SMBIOS record want to be linked.
305 @param InterLink Point to EFI_INTER_LINK_DATA will be put linked list.
306 @param SubClassGuid The guid of subclass for linked SMBIOS record.
307
308 @retval EFI_SUCESS The linked record is found and no need fixup in future.
309 @retval !EFI_SUCESS The linked record can not be found and InterLink is put a fixing-p linked list.
310 **/
311 EFI_STATUS
312 SmbiosFldInterLink (
313 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
314 IN UINT16 LinkSmbiosNodeOffset,
315 IN UINT8 LinkSmbiosType,
316 IN EFI_INTER_LINK_DATA *InterLink,
317 IN EFI_GUID *SubClassGuid
318 )
319 ;
320
321 /**
322 Find a handle that matches the Link Data and the target Smbios type.
323
324 @param TargetType the Smbios type
325 @param SubClass the SubClass
326 @param LinkData Specifies Instance, SubInstance and ProducerName
327 @param Handle the HandleNum found
328
329 @retval EFI_NOT_FOUND Can not find the record according to handle
330 @retval EFI_SUCCESS Success to find the handle
331 **/
332 EFI_STATUS
333 SmbiosFindHandle (
334 IN UINT8 TargetType,
335 IN EFI_GUID *SubClass,
336 IN EFI_INTER_LINK_DATA *LinkData,
337 IN OUT UINT16 *HandleNum
338 )
339 ;
340
341 EFI_STATUS
342 SmbiosFldBase10ToWordWithMega (
343 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
344 IN UINT32 Offset,
345 IN VOID *RecordData,
346 IN UINT32 RecordDataSize
347 )
348 ;
349
350 EFI_STATUS
351 SmbiosFldBase2ToWordWithKilo (
352 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
353 IN UINT32 Offset,
354 IN VOID *RecordData,
355 IN UINT32 RecordDataSize
356 )
357 ;
358
359 EFI_STATUS
360 SmbiosFldTruncateToByte (
361 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
362 IN UINT32 Offset,
363 IN VOID *RecordData,
364 IN UINT32 RecordDataSize
365 )
366 ;
367
368 EFI_STATUS
369 SmbiosFldProcessorType6 (
370 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
371 IN UINT32 Offset,
372 IN VOID *RecordData,
373 IN UINT32 RecordDataSize
374 )
375 ;
376
377 EFI_STATUS
378 SmbiosFldProcessorType9 (
379 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
380 IN UINT32 Offset,
381 IN VOID *RecordData,
382 IN UINT32 RecordDataSize
383 )
384 ;
385
386 EFI_STATUS
387 SmbiosFldProcessorType17 (
388 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
389 IN UINT32 Offset,
390 IN VOID *RecordData,
391 IN UINT32 RecordDataSize
392 )
393 ;
394
395 EFI_STATUS
396 SmbiosFldBase10ToByteWithNano (
397 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
398 IN UINT32 Offset,
399 IN VOID *RecordData,
400 IN UINT32 RecordDataSize
401 )
402 ;
403
404 EFI_STATUS
405 SmbiosFldTruncateToWord (
406 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
407 IN UINT32 Offset,
408 IN VOID *RecordData,
409 IN UINT32 RecordDataSize
410 )
411 ;
412
413 EFI_STATUS
414 SmbiosFldCacheType10 (
415 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
416 IN UINT32 Offset,
417 IN VOID *RecordData,
418 IN UINT32 RecordDataSize
419 )
420 ;
421
422 INT8
423 SmbiosCheckTrailingZero (
424 IN VOID *RecordData,
425 IN UINT32 RecordDataSize
426 )
427 ;
428
429 EFI_STATUS
430 SmbiosFldCacheType5 (
431 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
432 IN UINT32 Offset,
433 IN VOID *RecordData,
434 IN UINT32 RecordDataSize
435 )
436 ;
437
438 EFI_STATUS
439 SmbiosFldMemoryType2 (
440 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
441 IN UINT32 Offset,
442 IN VOID *RecordData,
443 IN UINT32 RecordDataSize
444 )
445 ;
446
447 EFI_STATUS
448 SmbiosFldMemoryType3 (
449 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
450 IN UINT32 Offset,
451 IN VOID *RecordData,
452 IN UINT32 RecordDataSize
453 )
454 ;
455
456 EFI_STATUS
457 SmbiosFldMemoryType4 (
458 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
459 IN UINT32 Offset,
460 IN VOID *RecordData,
461 IN UINT32 RecordDataSize
462 )
463 ;
464
465 EFI_STATUS
466 SmbiosFldMemoryType5 (
467 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
468 IN UINT32 Offset,
469 IN VOID *RecordData,
470 IN UINT32 RecordDataSize
471 )
472 ;
473
474 EFI_STATUS
475 SmbiosFldMemoryType6 (
476 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
477 IN UINT32 Offset,
478 IN VOID *RecordData,
479 IN UINT32 RecordDataSize
480 )
481 ;
482
483 EFI_STATUS
484 SmbiosFldMemoryType7 (
485 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
486 IN UINT32 Offset,
487 IN VOID *RecordData,
488 IN UINT32 RecordDataSize
489 )
490 ;
491
492 EFI_STATUS
493 SmbiosFldMemoryType8 (
494 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
495 IN UINT32 Offset,
496 IN VOID *RecordData,
497 IN UINT32 RecordDataSize
498 )
499 ;
500
501 EFI_STATUS
502 SmbiosFldMemoryType9 (
503 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
504 IN UINT32 Offset,
505 IN VOID *RecordData,
506 IN UINT32 RecordDataSize
507 )
508 ;
509
510 EFI_STATUS
511 SmbiosFldMemoryType10 (
512 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
513 IN UINT32 Offset,
514 IN VOID *RecordData,
515 IN UINT32 RecordDataSize
516 )
517 ;
518
519 EFI_STATUS
520 SmbiosFldMiscType0 (
521 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
522 IN UINT32 Offset,
523 IN VOID *RecordData,
524 IN UINT32 RecordDataSize
525 )
526 ;
527
528 EFI_STATUS
529 SmbiosFldBase2ToByteWith64K (
530 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
531 IN UINT32 Offset,
532 IN VOID *RecordData,
533 IN UINT32 RecordDataSize
534 )
535 ;
536
537 EFI_STATUS
538 SmbiosFldMiscType1 (
539 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
540 IN UINT32 Offset,
541 IN VOID *RecordData,
542 IN UINT32 RecordDataSize
543 )
544 ;
545
546 EFI_STATUS
547 SmbiosFldMiscType2 (
548 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
549 IN UINT32 Offset,
550 IN VOID *RecordData,
551 IN UINT32 RecordDataSize
552 )
553 ;
554
555 EFI_STATUS
556 SmbiosFldMiscType3 (
557 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
558 IN UINT32 Offset,
559 IN VOID *RecordData,
560 IN UINT32 RecordDataSize
561 )
562 ;
563
564 EFI_STATUS
565 SmbiosFldMiscType8 (
566 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
567 IN UINT32 Offset,
568 IN VOID *RecordData,
569 IN UINT32 RecordDataSize
570 )
571 ;
572
573 EFI_STATUS
574 SmbiosFldMiscType9 (
575 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
576 IN UINT32 Offset,
577 IN VOID *RecordData,
578 IN UINT32 RecordDataSize
579 )
580 ;
581
582 EFI_STATUS
583 SmbiosFldMiscType10 (
584 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
585 IN UINT32 Offset,
586 IN VOID *RecordData,
587 IN UINT32 RecordDataSize
588 )
589 ;
590
591 EFI_STATUS
592 SmbiosFldMiscType11 (
593 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
594 IN UINT32 Offset,
595 IN VOID *RecordData,
596 IN UINT32 RecordDataSize
597 )
598 ;
599
600 EFI_STATUS
601 SmbiosFldMiscType12 (
602 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
603 IN UINT32 Offset,
604 IN VOID *RecordData,
605 IN UINT32 RecordDataSize
606 )
607 ;
608
609 EFI_STATUS
610 SmbiosFldMiscType13 (
611 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
612 IN UINT32 Offset,
613 IN VOID *RecordData,
614 IN UINT32 RecordDataSize
615 )
616 ;
617
618 EFI_STATUS
619 SmbiosFldMiscType14 (
620 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
621 IN UINT32 Offset,
622 IN VOID *RecordData,
623 IN UINT32 RecordDataSize
624 )
625 ;
626
627 EFI_STATUS
628 SmbiosFldMiscType15 (
629 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
630 IN UINT32 Offset,
631 IN VOID *RecordData,
632 IN UINT32 RecordDataSize
633 )
634 ;
635
636 EFI_STATUS
637 SmbiosFldMiscType21 (
638 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
639 IN UINT32 Offset,
640 IN VOID *RecordData,
641 IN UINT32 RecordDataSize
642 )
643 ;
644
645
646 EFI_STATUS
647 SmbiosFldMiscType32 (
648 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
649 IN UINT32 Offset,
650 IN VOID *RecordData,
651 IN UINT32 RecordDataSize
652 )
653 ;
654
655 EFI_STATUS
656 SmbiosFldMiscType38 (
657 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
658 IN UINT32 Offset,
659 IN VOID *RecordData,
660 IN UINT32 RecordDataSize
661 );
662
663 EFI_STATUS
664 SmbiosFldMiscTypeOEM (
665 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
666 IN UINT32 Offset,
667 IN VOID *RecordData,
668 IN UINT32 RecordDataSize
669 )
670 ;
671
672 EFI_STATUS
673 SmbiosFldSMBIOSType6 (
674 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
675 IN UINT32 Offset,
676 IN VOID *RecordData,
677 IN UINT32 RecordDataSize
678 )
679 ;
680
681 EFI_STATUS
682 SmbiosFldMiscType22 (
683 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
684 IN UINT32 Offset,
685 IN VOID *RecordData,
686 IN UINT32 RecordDataSize
687 )
688 ;
689
690 EFI_STATUS
691 SmbiosFldMiscType22 (
692 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
693 IN UINT32 Offset,
694 IN VOID *RecordData,
695 IN UINT32 RecordDataSize
696 )
697 ;
698
699 EFI_STATUS
700 SmbiosFldMiscType23 (
701 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
702 IN UINT32 Offset,
703 IN VOID *RecordData,
704 IN UINT32 RecordDataSize
705 )
706 ;
707
708 EFI_STATUS
709 SmbiosFldMiscType24 (
710 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
711 IN UINT32 Offset,
712 IN VOID *RecordData,
713 IN UINT32 RecordDataSize
714 )
715 ;
716
717 EFI_STATUS
718 SmbiosFldMiscType25 (
719 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
720 IN UINT32 Offset,
721 IN VOID *RecordData,
722 IN UINT32 RecordDataSize
723 )
724 ;
725
726 EFI_STATUS
727 SmbiosFldMiscType26 (
728 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
729 IN UINT32 Offset,
730 IN VOID *RecordData,
731 IN UINT32 RecordDataSize
732 )
733 ;
734
735 EFI_STATUS
736 SmbiosFldMiscType27 (
737 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
738 IN UINT32 Offset,
739 IN VOID *RecordData,
740 IN UINT32 RecordDataSize
741 )
742 ;
743
744 EFI_STATUS
745 SmbiosFldMiscType28 (
746 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
747 IN UINT32 Offset,
748 IN VOID *RecordData,
749 IN UINT32 RecordDataSize
750 )
751 ;
752
753 EFI_STATUS
754 SmbiosFldMiscType29 (
755 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
756 IN UINT32 Offset,
757 IN VOID *RecordData,
758 IN UINT32 RecordDataSize
759 )
760 ;
761
762 EFI_STATUS
763 SmbiosFldMiscType30 (
764 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
765 IN UINT32 Offset,
766 IN VOID *RecordData,
767 IN UINT32 RecordDataSize
768 )
769 ;
770
771 EFI_STATUS
772 SmbiosFldMiscType34 (
773 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
774 IN UINT32 Offset,
775 IN VOID *RecordData,
776 IN UINT32 RecordDataSize
777 )
778 ;
779
780 EFI_STATUS
781 SmbiosFldMiscType36 (
782 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
783 IN UINT32 Offset,
784 IN VOID *RecordData,
785 IN UINT32 RecordDataSize
786 )
787 ;
788
789 EFI_STATUS
790 SmbiosFldMiscType38 (
791 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
792 IN UINT32 Offset,
793 IN VOID *RecordData,
794 IN UINT32 RecordDataSize
795 )
796 ;
797
798 EFI_STATUS
799 SmbiosFldMiscType39 (
800 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
801 IN UINT32 Offset,
802 IN VOID *RecordData,
803 IN UINT32 RecordDataSize
804 )
805 ;
806
807 EFI_STATUS
808 SmbiosFldMiscType127 (
809 IN OUT SMBIOS_STRUCTURE_NODE *StructureNode,
810 IN UINT32 Offset,
811 IN VOID *RecordData,
812 IN UINT32 RecordDataSize
813 )
814 ;
815
816 EFI_STATUS
817 SmbiosProtocolCreateRecord (
818 IN EFI_HANDLE ProducerHandle, OPTIONAL
819 IN SMBIOS_STRUCTURE_NODE *StructureNode
820 );
821
822 EFI_SMBIOS_PROTOCOL*
823 GetSmbiosProtocol (
824 VOID
825 );
826
827 EFI_SMBIOS_TABLE_HEADER*
828 GetSmbiosBufferFromHandle (
829 IN EFI_SMBIOS_HANDLE Handle,
830 IN EFI_SMBIOS_TYPE Type,
831 IN EFI_HANDLE ProducerHandle OPTIONAL
832 );
833
834 EFI_STATUS
835 EFIAPI
836 GetSmbiosStructureSize (
837 IN EFI_SMBIOS_TABLE_HEADER *Head,
838 OUT UINT32 *Size,
839 OUT UINT8 *NumberOfStrings
840 );
841
842 #endif