interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / boot / diag.h

35 lines · 1405 bytes Raw Blame History
1/* SPDX-License-Identifier: Apache-2.0
2 * Copyright 2026 Drake Stapleton (AIEN / aien-dev)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/* diag.h -- shared by the UEFI diagnostics (diag_main.c and its x86_64 part,
18 * diag_x86.c). diag_say formats one report line onto ConOut and into the
19 * report file buffer, exactly like diag_main.c's own say(). */
20#ifndef AIENOS_DIAG_H
21#define AIENOS_DIAG_H
22#include "efi.h"
23
24void diag_say(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
25
26#if defined(__x86_64__)
27/* Switch an Apple firmware console to text mode so ConOut shows (no-op elsewhere). */
28void diag_x86_console(EFI_SYSTEM_TABLE *st);
29/* CPUID identity, features and the mode the firmware left the CPU in. */
30void diag_x86_cpu(void);
31/* SMBIOS identity, PCI functions, GOP modes and whole-disk Block I/O devices. */
32void diag_x86_devices(EFI_SYSTEM_TABLE *st);
33#endif
34
35#endif