The Pedigree Project 0.1
Enumeration.h
1/* Copyright (c) 2026, Pedigree Developers. SPDX-License-Identifier: ISC */
2#ifndef PEDIGREE_PCI_ENUMERATION_H
3#define PEDIGREE_PCI_ENUMERATION_H
4
5class Device;
6
7namespace PciEnumeration {
8// Sleepable, serialized slot-worker calls. Existing bridge buses/windows stay
9// fixed. Hardware remains present until removeSlot has returned successfully.
10bool probeSlot(Device* port);
11bool prepareRemoveSlot(Device* port);
12void cancelRemoveSlot(Device* port);
13bool removeSlot(Device* port);
14} // namespace PciEnumeration
15
16#endif