File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,14 @@ impl Rsdp {
169169 Ok ( ( ) )
170170 }
171171
172+ pub fn signature ( & self ) -> [ u8 ; 8 ] {
173+ self . signature
174+ }
175+
176+ pub fn checksum ( & self ) -> u8 {
177+ self . checksum
178+ }
179+
172180 pub fn oem_id ( & self ) -> & str {
173181 str:: from_utf8 ( & self . oem_id ) . unwrap ( )
174182 }
@@ -181,10 +189,20 @@ impl Rsdp {
181189 self . rsdt_address
182190 }
183191
192+ pub fn length ( & self ) -> u32 {
193+ assert ! ( self . revision > 0 , "Tried to read extended RSDP field with ACPI Version 1.0" ) ;
194+ self . length
195+ }
196+
184197 pub fn xsdt_address ( & self ) -> u64 {
185198 assert ! ( self . revision > 0 , "Tried to read extended RSDP field with ACPI Version 1.0" ) ;
186199 self . xsdt_address
187200 }
201+
202+ pub fn ext_checksum ( & self ) -> u8 {
203+ assert ! ( self . revision > 0 , "Tried to read extended RSDP field with ACPI Version 1.0" ) ;
204+ self . ext_checksum
205+ }
188206}
189207
190208/// Find the areas we should search for the RSDP in.
You can’t perform that action at this time.
0 commit comments