/* SPDX-License-Identifier: LicenseRef-Starship-1.0 * Copyright (c) 2023-2026 Robert A. James */ /* sk_v4_slots.h -- an xHCI controller's drive slots, for sk_v4_identity.c (#178): the array the * attached drives live in, which the identity code holds pointers into (the offered stick, the * spare, the real Zuse's, Zuse's own device). */ #ifndef STARKERNEL_V4_SK_V4_SLOTS_H #define STARKERNEL_V4_SK_V4_SLOTS_H #include #include /* The slot array in *slots, `elem` bytes a slot, *count of them: allocated (zeroed) when there is * none, with `want` slots. Returns how many slots may be used (0: none could be allocated). */ uint32_t sk_v4_slots_get(void **slots, uint32_t *count, uint32_t want, size_t elem); #endif