Skip to content

Instantly share code, notes, and snippets.

@shenghaoyang
Created December 28, 2025 10:05
Show Gist options
  • Select an option

  • Save shenghaoyang/9354f77cf670a6d5e94220b048a5347d to your computer and use it in GitHub Desktop.

Select an option

Save shenghaoyang/9354f77cf670a6d5e94220b048a5347d to your computer and use it in GitHub Desktop.
SPCR sample
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20250404 (64-bit version)
* Copyright (c) 2000 - 2025 Intel Corporation
*
* Disassembly of spcr.aml
*
* ACPI Data Table [SPCR]
*
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue (in hex)
*/
[000h 0000 004h] Signature : "SPCR" [Serial Port Console Redirection Table]
[004h 0004 004h] Table Length : 00000059
[008h 0008 001h] Revision : 04
[009h 0009 001h] Checksum : 64
[00Ah 0010 006h] Oem ID : "ALASKA"
[010h 0016 008h] Oem Table ID : "A M I "
[018h 0024 004h] Oem Revision : 01072009
[01Ch 0028 004h] Asl Compiler ID : "INTL"
[020h 0032 004h] Asl Compiler Revision : 20250404
[024h 0036 001h] Interface Type : 00
[025h 0037 003h] Reserved : 000000
[028h 0040 00Ch] Serial Port Register : [Generic Address Structure]
[028h 0040 001h] Space ID : 01 [SystemIO]
[029h 0041 001h] Bit Width : 08
[02Ah 0042 001h] Bit Offset : 00
[02Bh 0043 001h] Encoded Access Width : 00 [Undefined/Legacy]
[02Ch 0044 008h] Address : 00000000000003F8
[034h 0052 001h] Interrupt Type : 03
[035h 0053 001h] PCAT-compatible IRQ : 04
[036h 0054 004h] Interrupt : 00000004
[03Ah 0058 001h] Baud Rate : 07
[03Bh 0059 001h] Parity : 00
[03Ch 0060 001h] Stop Bits : 01
[03Dh 0061 001h] Flow Control : 00
[03Eh 0062 001h] Terminal Type : 02
[03Fh 0063 001h] Language : 00
[040h 0064 002h] PCI Device ID : FFFF
[042h 0066 002h] PCI Vendor ID : FFFF
[044h 0068 001h] PCI Bus : 00
[045h 0069 001h] PCI Device : 00
[046h 0070 001h] PCI Function : 00
[047h 0071 004h] PCI Flags : 00000000
[04Bh 0075 001h] PCI Segment : 00
[04Ch 0076 004h] Uart Clock Freq : 00000000
[050h 0080 004h] Precise Baud rate : 00000000
[054h 0084 002h] NameSpaceStringLength : 0001
[056h 0086 002h] NameSpaceStringOffset : 0058
[058h 0088 001h] NamespaceString : ""
Raw Table Data: Length 89 (0x59)
0000: 53 50 43 52 59 00 00 00 04 64 41 4C 41 53 4B 41 // SPCRY....dALASKA
0010: 41 20 4D 20 49 20 00 00 09 20 07 01 49 4E 54 4C // A M I ... ..INTL
0020: 04 04 25 20 00 00 00 00 01 08 00 00 F8 03 00 00 // ..% ............
0030: 00 00 00 00 03 04 04 00 00 00 07 00 01 00 02 00 // ................
0040: FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 // ................
0050: 00 00 00 00 01 00 58 00 00 // ......X..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment