MCPcopy Create free account
hub / github.com/Bananymous/banan-os / write_byte

Method write_byte

kernel/kernel/ACPI/EmbeddedController.cpp:79–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 BAN::ErrorOr<void> EmbeddedController::write_byte(uint8_t offset, uint8_t value)
80 {
81 Command command {
82 .command = 0x81,
83 .data1 = offset,
84 .data2 = value,
85 .response = nullptr,
86 .done = false,
87 };
88
89 TRY(send_command(command));
90
91 return {};
92 }
93
94 uint8_t EmbeddedController::read_one(uint16_t port)
95 {

Callers 2

perform_opregion_writeFunction · 0.45
initializeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected