diff options
Diffstat (limited to 'include/acpi/achware.h')
| -rw-r--r-- | include/acpi/achware.h | 107 |
1 files changed, 29 insertions, 78 deletions
diff --git a/include/acpi/achware.h b/include/acpi/achware.h index 9d63641b8e7d..3644d7248e7e 100644 --- a/include/acpi/achware.h +++ b/include/acpi/achware.h | |||
| @@ -44,7 +44,6 @@ | |||
| 44 | #ifndef __ACHWARE_H__ | 44 | #ifndef __ACHWARE_H__ |
| 45 | #define __ACHWARE_H__ | 45 | #define __ACHWARE_H__ |
| 46 | 46 | ||
| 47 | |||
| 48 | /* PM Timer ticks per second (HZ) */ | 47 | /* PM Timer ticks per second (HZ) */ |
| 49 | 48 | ||
| 50 | #define PM_TIMER_FREQUENCY 3579545 | 49 | #define PM_TIMER_FREQUENCY 3579545 |
| @@ -57,126 +56,78 @@ | |||
| 57 | #define ACPI_SST_SLEEPING 3 | 56 | #define ACPI_SST_SLEEPING 3 |
| 58 | #define ACPI_SST_SLEEP_CONTEXT 4 | 57 | #define ACPI_SST_SLEEP_CONTEXT 4 |
| 59 | 58 | ||
| 60 | |||
| 61 | /* Prototypes */ | 59 | /* Prototypes */ |
| 62 | 60 | ||
| 63 | |||
| 64 | /* | 61 | /* |
| 65 | * hwacpi - high level functions | 62 | * hwacpi - high level functions |
| 66 | */ | 63 | */ |
| 67 | acpi_status | 64 | acpi_status acpi_hw_initialize(void); |
| 68 | acpi_hw_initialize ( | ||
| 69 | void); | ||
| 70 | 65 | ||
| 71 | acpi_status | 66 | acpi_status acpi_hw_set_mode(u32 mode); |
| 72 | acpi_hw_set_mode ( | ||
| 73 | u32 mode); | ||
| 74 | |||
| 75 | u32 | ||
| 76 | acpi_hw_get_mode ( | ||
| 77 | void); | ||
| 78 | 67 | ||
| 68 | u32 acpi_hw_get_mode(void); | ||
| 79 | 69 | ||
| 80 | /* | 70 | /* |
| 81 | * hwregs - ACPI Register I/O | 71 | * hwregs - ACPI Register I/O |
| 82 | */ | 72 | */ |
| 83 | struct acpi_bit_register_info * | 73 | struct acpi_bit_register_info *acpi_hw_get_bit_register_info(u32 register_id); |
| 84 | acpi_hw_get_bit_register_info ( | ||
| 85 | u32 register_id); | ||
| 86 | |||
| 87 | acpi_status | ||
| 88 | acpi_hw_register_read ( | ||
| 89 | u8 use_lock, | ||
| 90 | u32 register_id, | ||
| 91 | u32 *return_value); | ||
| 92 | 74 | ||
| 93 | acpi_status | 75 | acpi_status |
| 94 | acpi_hw_register_write ( | 76 | acpi_hw_register_read(u8 use_lock, u32 register_id, u32 * return_value); |
| 95 | u8 use_lock, | ||
| 96 | u32 register_id, | ||
| 97 | u32 value); | ||
| 98 | 77 | ||
| 99 | acpi_status | 78 | acpi_status acpi_hw_register_write(u8 use_lock, u32 register_id, u32 value); |
| 100 | acpi_hw_low_level_read ( | ||
| 101 | u32 width, | ||
| 102 | u32 *value, | ||
| 103 | struct acpi_generic_address *reg); | ||
| 104 | 79 | ||
| 105 | acpi_status | 80 | acpi_status |
| 106 | acpi_hw_low_level_write ( | 81 | acpi_hw_low_level_read(u32 width, |
| 107 | u32 width, | 82 | u32 * value, struct acpi_generic_address *reg); |
| 108 | u32 value, | ||
| 109 | struct acpi_generic_address *reg); | ||
| 110 | 83 | ||
| 111 | acpi_status | 84 | acpi_status |
| 112 | acpi_hw_clear_acpi_status ( | 85 | acpi_hw_low_level_write(u32 width, u32 value, struct acpi_generic_address *reg); |
| 113 | u32 flags); | ||
| 114 | 86 | ||
| 87 | acpi_status acpi_hw_clear_acpi_status(u32 flags); | ||
| 115 | 88 | ||
| 116 | /* | 89 | /* |
| 117 | * hwgpe - GPE support | 90 | * hwgpe - GPE support |
| 118 | */ | 91 | */ |
| 119 | acpi_status | 92 | acpi_status |
| 120 | acpi_hw_write_gpe_enable_reg ( | 93 | acpi_hw_write_gpe_enable_reg(struct acpi_gpe_event_info *gpe_event_info); |
| 121 | struct acpi_gpe_event_info *gpe_event_info); | ||
| 122 | 94 | ||
| 123 | acpi_status | 95 | acpi_status |
| 124 | acpi_hw_disable_gpe_block ( | 96 | acpi_hw_disable_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info, |
| 125 | struct acpi_gpe_xrupt_info *gpe_xrupt_info, | 97 | struct acpi_gpe_block_info *gpe_block); |
| 126 | struct acpi_gpe_block_info *gpe_block); | ||
| 127 | 98 | ||
| 128 | acpi_status | 99 | acpi_status acpi_hw_clear_gpe(struct acpi_gpe_event_info *gpe_event_info); |
| 129 | acpi_hw_clear_gpe ( | ||
| 130 | struct acpi_gpe_event_info *gpe_event_info); | ||
| 131 | 100 | ||
| 132 | acpi_status | 101 | acpi_status |
| 133 | acpi_hw_clear_gpe_block ( | 102 | acpi_hw_clear_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info, |
| 134 | struct acpi_gpe_xrupt_info *gpe_xrupt_info, | 103 | struct acpi_gpe_block_info *gpe_block); |
| 135 | struct acpi_gpe_block_info *gpe_block); | ||
| 136 | 104 | ||
| 137 | #ifdef ACPI_FUTURE_USAGE | 105 | #ifdef ACPI_FUTURE_USAGE |
| 138 | acpi_status | 106 | acpi_status |
| 139 | acpi_hw_get_gpe_status ( | 107 | acpi_hw_get_gpe_status(struct acpi_gpe_event_info *gpe_event_info, |
| 140 | struct acpi_gpe_event_info *gpe_event_info, | 108 | acpi_event_status * event_status); |
| 141 | acpi_event_status *event_status); | 109 | #endif /* ACPI_FUTURE_USAGE */ |
| 142 | #endif /* ACPI_FUTURE_USAGE */ | ||
| 143 | 110 | ||
| 144 | acpi_status | 111 | acpi_status acpi_hw_disable_all_gpes(void); |
| 145 | acpi_hw_disable_all_gpes ( | ||
| 146 | u32 flags); | ||
| 147 | 112 | ||
| 148 | acpi_status | 113 | acpi_status acpi_hw_enable_all_runtime_gpes(void); |
| 149 | acpi_hw_enable_all_runtime_gpes ( | ||
| 150 | u32 flags); | ||
| 151 | 114 | ||
| 152 | acpi_status | 115 | acpi_status acpi_hw_enable_all_wakeup_gpes(void); |
| 153 | acpi_hw_enable_all_wakeup_gpes ( | ||
| 154 | u32 flags); | ||
| 155 | 116 | ||
| 156 | acpi_status | 117 | acpi_status |
| 157 | acpi_hw_enable_runtime_gpe_block ( | 118 | acpi_hw_enable_runtime_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info, |
| 158 | struct acpi_gpe_xrupt_info *gpe_xrupt_info, | 119 | struct acpi_gpe_block_info *gpe_block); |
| 159 | struct acpi_gpe_block_info *gpe_block); | ||
| 160 | |||
| 161 | 120 | ||
| 162 | #ifdef ACPI_FUTURE_USAGE | 121 | #ifdef ACPI_FUTURE_USAGE |
| 163 | /* | 122 | /* |
| 164 | * hwtimer - ACPI Timer prototypes | 123 | * hwtimer - ACPI Timer prototypes |
| 165 | */ | 124 | */ |
| 166 | acpi_status | 125 | acpi_status acpi_get_timer_resolution(u32 * resolution); |
| 167 | acpi_get_timer_resolution ( | ||
| 168 | u32 *resolution); | ||
| 169 | 126 | ||
| 170 | acpi_status | 127 | acpi_status acpi_get_timer(u32 * ticks); |
| 171 | acpi_get_timer ( | ||
| 172 | u32 *ticks); | ||
| 173 | 128 | ||
| 174 | acpi_status | 129 | acpi_status |
| 175 | acpi_get_timer_duration ( | 130 | acpi_get_timer_duration(u32 start_ticks, u32 end_ticks, u32 * time_elapsed); |
| 176 | u32 start_ticks, | 131 | #endif /* ACPI_FUTURE_USAGE */ |
| 177 | u32 end_ticks, | ||
| 178 | u32 *time_elapsed); | ||
| 179 | #endif /* ACPI_FUTURE_USAGE */ | ||
| 180 | |||
| 181 | 132 | ||
| 182 | #endif /* __ACHWARE_H__ */ | 133 | #endif /* __ACHWARE_H__ */ |
