20 lines
304 B
C++
20 lines
304 B
C++
#ifndef ARCH_ACPI_LOCAL_APIC_HPP_
|
|
#define ARCH_ACPI_LOCAL_APIC_HPP_
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace arch::acpi {
|
|
class local_apic {
|
|
uint32_t *base_ = nullptr;
|
|
|
|
public:
|
|
local_apic(uint32_t *base);
|
|
|
|
uint32_t read(uint32_t reg);
|
|
void write(uint32_t reg, uint32_t val);
|
|
void ack();
|
|
};
|
|
}
|
|
|
|
#endif
|