^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /******************************************************************************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * Name: acevents.h - Event subcomponent prototypes and defines
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * Copyright (C) 2000 - 2020, Intel Corp.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) *****************************************************************************/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef __ACEVENTS_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define __ACEVENTS_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) * Conditions to trigger post enabling GPE polling:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) * It is not sufficient to trigger edge-triggered GPE with specific GPE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) * chips, software need to poll once after enabling.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #ifdef ACPI_USE_GPE_POLLING
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define ACPI_GPE_IS_POLLING_NEEDED(__gpe__) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) ((__gpe__)->runtime_count == 1 && \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) (__gpe__)->flags & ACPI_GPE_INITIALIZED && \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) ((__gpe__)->flags & ACPI_GPE_XRUPT_TYPE_MASK) == ACPI_GPE_EDGE_TRIGGERED)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define ACPI_GPE_IS_POLLING_NEEDED(__gpe__) FALSE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) * evevent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) acpi_status acpi_ev_initialize_events(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) acpi_status acpi_ev_install_xrupt_handlers(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) u32 acpi_ev_fixed_event_detect(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) * evmisc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) u8 acpi_ev_is_notify_object(struct acpi_namespace_node *node);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) u32 acpi_ev_get_gpe_number_index(u32 gpe_number);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) acpi_ev_queue_notify_request(struct acpi_namespace_node *node,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) u32 notify_value);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) * evglock - Global Lock support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) acpi_status acpi_ev_init_global_lock_handler(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) ACPI_HW_DEPENDENT_RETURN_OK(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) acpi_ev_acquire_global_lock(u16 timeout))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) ACPI_HW_DEPENDENT_RETURN_OK(acpi_status acpi_ev_release_global_lock(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) acpi_status acpi_ev_remove_global_lock_handler(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) * evgpe - Low-level GPE support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info *gpe_xrupt_list);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) acpi_ev_update_gpe_enable_mask(struct acpi_gpe_event_info *gpe_event_info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) acpi_status acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) acpi_ev_mask_gpe(struct acpi_gpe_event_info *gpe_event_info, u8 is_masked);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) acpi_ev_add_gpe_reference(struct acpi_gpe_event_info *gpe_event_info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) u8 clear_on_enable);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) acpi_ev_remove_gpe_reference(struct acpi_gpe_event_info *gpe_event_info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) struct acpi_gpe_event_info *acpi_ev_get_gpe_event_info(acpi_handle gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) u32 gpe_number);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) struct acpi_gpe_event_info *acpi_ev_low_get_gpe_info(u32 gpe_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) struct acpi_gpe_block_info
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) *gpe_block);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) acpi_status acpi_ev_finish_gpe(struct acpi_gpe_event_info *gpe_event_info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) u32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) acpi_ev_detect_gpe(struct acpi_namespace_node *gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) * evgpeblk - Upper-level GPE block support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) acpi_ev_create_gpe_block(struct acpi_namespace_node *gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) u64 address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) u8 space_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) u32 register_count,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) u16 gpe_block_base_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) u32 interrupt_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) struct acpi_gpe_block_info **return_gpe_block);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) acpi_ev_initialize_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) struct acpi_gpe_block_info *gpe_block,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) void *context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) ACPI_HW_DEPENDENT_RETURN_OK(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) acpi_ev_delete_gpe_block(struct acpi_gpe_block_info
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) *gpe_block))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) u32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) acpi_ev_gpe_dispatch(struct acpi_namespace_node *gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) struct acpi_gpe_event_info *gpe_event_info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) u32 gpe_number);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) * evgpeinit - GPE initialization and update
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) acpi_status acpi_ev_gpe_initialize(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) ACPI_HW_DEPENDENT_RETURN_VOID(void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) acpi_ev_update_gpes(acpi_owner_id table_owner_id))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) acpi_ev_match_gpe_method(acpi_handle obj_handle,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) u32 level, void *context, void **return_value);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) * evgpeutil - GPE utilities
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) acpi_ev_walk_gpe_list(acpi_gpe_callback gpe_walk_callback, void *context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) acpi_ev_get_gpe_device(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) struct acpi_gpe_block_info *gpe_block, void *context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) acpi_ev_get_gpe_xrupt_block(u32 interrupt_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) struct acpi_gpe_xrupt_info **gpe_xrupt_block);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) acpi_status acpi_ev_delete_gpe_xrupt(struct acpi_gpe_xrupt_info *gpe_xrupt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) acpi_ev_delete_gpe_handlers(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) struct acpi_gpe_block_info *gpe_block,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) void *context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) * evhandler - Address space handling
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) union acpi_operand_object *acpi_ev_find_region_handler(acpi_adr_space_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) space_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) union acpi_operand_object
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) *handler_obj);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) u8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) acpi_ev_has_default_handler(struct acpi_namespace_node *node,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) acpi_adr_space_type space_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) acpi_status acpi_ev_install_region_handlers(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) acpi_ev_install_space_handler(struct acpi_namespace_node *node,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) acpi_adr_space_type space_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) acpi_adr_space_handler handler,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) acpi_adr_space_setup setup, void *context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) * evregion - Operation region support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) acpi_status acpi_ev_initialize_op_regions(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) union acpi_operand_object *field_obj,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) u32 region_offset, u32 bit_width, u64 *value);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) acpi_ev_attach_region(union acpi_operand_object *handler_obj,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) union acpi_operand_object *region_obj,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) u8 acpi_ns_is_locked);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) acpi_ev_detach_region(union acpi_operand_object *region_obj,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) u8 acpi_ns_is_locked);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) acpi_ev_execute_reg_methods(struct acpi_namespace_node *node,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) acpi_adr_space_type space_id, u32 function);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) acpi_ev_execute_reg_method(union acpi_operand_object *region_obj, u32 function);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) * evregini - Region initialization and setup
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) acpi_ev_system_memory_region_setup(acpi_handle handle,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) void *handler_context,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) void **region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) acpi_ev_io_space_region_setup(acpi_handle handle,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) void *handler_context, void **region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) acpi_ev_pci_config_region_setup(acpi_handle handle,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) void *handler_context, void **region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) acpi_ev_cmos_region_setup(acpi_handle handle,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) void *handler_context, void **region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) acpi_ev_pci_bar_region_setup(acpi_handle handle,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) void *handler_context, void **region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) acpi_ev_default_region_setup(acpi_handle handle,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) void *handler_context, void **region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) acpi_status acpi_ev_initialize_region(union acpi_operand_object *region_obj);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) u8 acpi_ev_is_pci_root_bridge(struct acpi_namespace_node *node);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) * evsci - SCI (System Control Interrupt) handling/dispatch
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) u32 ACPI_SYSTEM_XFACE acpi_ev_gpe_xrupt_handler(void *context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) u32 acpi_ev_sci_dispatch(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) u32 acpi_ev_install_sci_handler(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) acpi_status acpi_ev_remove_all_sci_handlers(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) ACPI_HW_DEPENDENT_RETURN_VOID(void acpi_ev_terminate(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) #endif /* __ACEVENTS_H__ */