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 {
169
169
Ok ( ( ) )
170
170
}
171
171
172
+ pub fn signature ( & self ) -> [ u8 ; 8 ] {
173
+ self . signature
174
+ }
175
+
176
+ pub fn checksum ( & self ) -> u8 {
177
+ self . checksum
178
+ }
179
+
172
180
pub fn oem_id ( & self ) -> & str {
173
181
str:: from_utf8 ( & self . oem_id ) . unwrap ( )
174
182
}
@@ -181,10 +189,20 @@ impl Rsdp {
181
189
self . rsdt_address
182
190
}
183
191
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
+
184
197
pub fn xsdt_address ( & self ) -> u64 {
185
198
assert ! ( self . revision > 0 , "Tried to read extended RSDP field with ACPI Version 1.0" ) ;
186
199
self . xsdt_address
187
200
}
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
+ }
188
206
}
189
207
190
208
/// Find the areas we should search for the RSDP in.
You can’t perform that action at this time.
0 commit comments