Skip to content

Dmar parser

dmar_parser

Module for converting a raw DMAR table into a struct.

DMARTable

Object representing the DMAR Table.

AcpiTableHeader

Object representing the ACPI Table Header.

__init__
__init__(
    header_byte_array: bytes,
) -> DMARTable.AcpiTableHeader

Inits the object.

__str__
__str__() -> str

String representation of the object.

toXml
toXml() -> ET.Element

Converts the object to an xml representation.

RemappingStructHeader

Generic remapping struct header.

__init__
__init__(
    header_byte_array: bytes,
) -> DMARTable.RemappingStructHeader

Inits the object.

__str__
__str__() -> str

String representation of the object.

DRHDStruct

Object representing the DRHD struct.

__init__
__init__(
    header_byte_array: bytes, length: int
) -> DMARTable.DRHDStruct

Inits the object.

toXml
toXml() -> ET.Element

Converts the object to an xml representation.

__str__
__str__() -> str

String representation of the object.

RMRRStruct

Object representing the RMRR struct.

__init__
__init__(
    header_byte_array: bytes, length: int
) -> DMARTable.RMRRStruct

Inits the object.

getPath
getPath() -> str

Generates and returns the path.

toXml
toXml() -> ET.Element

Converts the object to an xml representation.

__str__
__str__() -> str

String representation of the object.

ATSRStruct

Object representing the ANDD struct.

__init__
__init__(
    header_byte_array: bytes, length: int
) -> DMARTable.ATSRStruct

Inits the object.

toXml
toXml() -> ET.Element

Converts the object to an xml representation.

__str__
__str__() -> str

String representation of the object.

RHSAStruct

Object representing the RHSA struct.

__init__
__init__(
    header_byte_array: bytes, length: int
) -> DMARTable.RHSAStruct

Inits the object.

toXml
toXml() -> ET.Element

Converts the object to an xml representation.

__str__
__str__() -> str

String representation of the object.

ANDDStruct

Object representing the ANDD struct.

__init__
__init__(
    header_byte_array: bytes, length: int
) -> DMARTable.ANDDStruct

Inits the object.

toXml
toXml() -> ET.Element

Converts the object to an xml representation.

__str__
__str__() -> str

String representation of the object.

DeviceScopeStruct

Object representing a Device Scope.

__init__
__init__(
    header_byte_array: bytes,
) -> DMARTable.DeviceScopeStruct

Inits a DeviceScopeStruct.

getPath
getPath() -> str

Returns the path.

__str__
__str__() -> str

String representation.

__init__

__init__(data: bytes) -> DMARTable

Inits the object.

toXml

toXml() -> ET.Element

Converts the object to an xml representation.

__str__

__str__() -> str

String representation of the object.

DMARBitEnabled

DMARBitEnabled() -> bool

Returns the status of the DMAR Bit.

ANDDCount

ANDDCount() -> int

Returns the amount of ANDD in the DMAR table.

CheckRMRRCount

CheckRMRRCount(
    goldenxml: Optional[ET.Element] = None,
) -> bool

Verifies all RMRR paths are in the golden XML.