uefi_raw/protocol/
acpi.rs

1// SPDX-License-Identifier: MIT OR Apache-2.0
2
3use crate::{Guid, Status, guid};
4use core::ffi::c_void;
5
6#[derive(Clone, Copy, Debug)]
7#[repr(C)]
8pub struct AcpiTableProtocol {
9    pub install_acpi_table: unsafe extern "efiapi" fn(
10        this: *const Self,
11        acpi_table_buffer: *const c_void,
12        acpi_table_size: usize,
13        table_key: *mut usize,
14    ) -> Status,
15    pub uninstall_acpi_table:
16        unsafe extern "efiapi" fn(this: *const Self, table_key: usize) -> Status,
17}
18
19impl AcpiTableProtocol {
20    pub const GUID: Guid = guid!("ffe06bdd-6107-46a6-7bb2-5a9c7ec5275c");
21}