Function uacpi_enable_gpe

uacpi_status uacpi_enable_gpe(uacpi_namespace_node* gpe_device, uacpi_u16 idx)

Description

Enable/disable a general purpose event managed by 'gpe_device'. Internally

this uses reference counting to make sure a GPE is not disabled until all possible users of it do so. GPEs not marked for wake are enabled automatically so this API is only needed for wake events or those that don't have a corresponding AML handler. NOTE: 'gpe_device' may be null for GPEs managed by _GPE