@@ -42,17 +42,14 @@ impl lai::Host for LaiHost {
42
42
}
43
43
44
44
// Port I/O functions:
45
- #[ inline]
46
45
fn outb ( & self , port : u16 , value : u8 ) {
47
46
unsafe { io:: outb ( port, value) }
48
47
}
49
48
50
- #[ inline]
51
49
fn outw ( & self , port : u16 , value : u16 ) {
52
50
unsafe { io:: outw ( port, value) }
53
51
}
54
52
55
- #[ inline]
56
53
fn outd ( & self , port : u16 , value : u32 ) {
57
54
unsafe { io:: outl ( port, value) }
58
55
}
@@ -91,7 +88,6 @@ impl lai::Host for LaiHost {
91
88
}
92
89
93
90
// Memory functions:
94
- #[ inline]
95
91
fn map ( & self , address : usize , _count : usize ) -> * mut u8 {
96
92
PhysAddr :: new ( address as u64 )
97
93
. as_hhdm_virt ( )
@@ -105,6 +101,10 @@ impl aml::AmlSubsystem for LaiSubsystem {
105
101
fn enter_state ( & self , state : aml:: SleepState ) {
106
102
lai:: enter_sleep ( state as u8 )
107
103
}
104
+
105
+ fn enable_acpi ( & self , mode : u32 ) {
106
+ lai:: enable_acpi ( mode) ;
107
+ }
108
108
}
109
109
110
110
pub fn init_lai ( ) {
@@ -114,8 +114,6 @@ pub fn init_lai() {
114
114
lai:: set_acpi_revision ( get_acpi_table ( ) . revision ( ) as _ ) ;
115
115
lai:: create_namespace ( ) ;
116
116
117
- lai:: enable_acpi ( 1 ) ;
118
-
119
117
let subsystem = Arc :: new ( LaiSubsystem ) ;
120
118
aml:: init ( subsystem) ;
121
119
}
0 commit comments