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 / kernel / dev / xhci_acpi_fmt.h

48 lines · 2628 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/* xhci_acpi_fmt.h -- console lines of the platform xHCI discovery (ACPI
18 * DSDT/SSDT + IORT), shared by dev/xhci_fence.c (the kernel) and
19 * tools/ck_acpi_scan.c (the host tool that runs the same scan over firmware
20 * tables dumped under Linux and prints the lines the kernel will print).
21 * NEXT-PHASE-3 cut 2. */
22#ifndef AIENOS_CK_XHCI_ACPI_FMT_H
23#define AIENOS_CK_XHCI_ACPI_FMT_H
24
25/* ACPI ids of a platform xHCI: the DGX Spark controllers (NVDA8000,
26 * NVDA8001, measured under Ubuntu) and the generic xHCI ids Linux
27 * xhci_plat_hcd binds (PNP0D10, PNP0D15). */
28#define CK_XHCI_ACPI_IDS { "NVDA8000", "NVDA8001", "PNP0D10", "PNP0D15" }
29#define CK_XHCI_ACPI_NIDS 4u
30#define CK_XHCI_PLAT_MAX 8u
31/* Positive control for the walker: the Arm PL011 UART id. QEMU virt
32 * describes its UART as ARMH0011 at 0x09000000 (QEMU hw/arm/virt.c memory
33 * map); the kernel prints the first one found. */
34#define CK_ACPI_CONTROL_ID "ARMH0011"
35
36#define CK_ACPI_SCAN_FMT "acpi_scan: tables=%u refused=%u first_refusal=%d devices=%u (static scan; _STA not evaluated)\n"
37#define CK_ACPI_SCAN_NONE "acpi_scan: no DSDT reachable (FADT missing or table not mapped)\n"
38#define CK_ACPI_CONTROL_FMT "acpi_scan: control %s %s mmio=0x%llx+0x%llx\n"
39#define CK_ACPI_CONTROL_NONE "acpi_scan: control " CK_ACPI_CONTROL_ID " none\n"
40#define CK_XHCI_ACPI_FMT "xhci_acpi: %s hid=%s cid=%s table=%s mmio=0x%llx+0x%llx\n"
41#define CK_XHCI_ACPI_COUNT_FMT "xhci_acpi: %d platform controller(s)\n"
42/* Platform fence (one line per controller tried, in table order). */
43#define CK_XHCI_PLAT_TRY_FMT "xhci_plat: %s try mmio=0x%llx+0x%llx\n"
44#define CK_XHCI_PLAT_SKIP_FMT "xhci_plat: %s skipped (%s)\n"
45#define CK_XHCI_PLAT_DENY_FMT "dma_gate: xhci %s denied (%s), controller left halted\n"
46#define CK_XHCI_PLAT_OTHER_FMT "dma_gate: xhci %s denied (OtherSmmu smmu=0x%llx stream=0x%x), controller left halted\n"
47#define CK_XHCI_PLAT_GRANT_FMT "dma_gate: xhci %s granted (Confined) smmu=0x%llx stream=0x%x\n"
48#endif