test(memory): model IODirection and kIOMemoryPersistent in the host fixture

This commit is contained in:
bluseliu50
2026-10-22 20:13:13 +08:00
Unverified
parent b30246990b
commit 799f79ba01
+2 -1
View File
@@ -15,7 +15,8 @@ using addr64_t=uint64_t;
constexpr IOReturn kIOReturnSuccess=0,kIOReturnBadArgument=1,kIOReturnBusy=2,
kIOReturnNoResources=3,kIOReturnNoMemory=4,kIOReturnUnsupported=5,
kIOReturnNotReady=6,kIOReturnIOError=7,kIOReturnTimeout=8;
constexpr unsigned kIODirectionOut=2,kIODirectionInOut=3,kIOMemoryMapperNone=0x800,kIOMemoryPhysicallyContiguous=0x10;
using IODirection=unsigned;
constexpr unsigned kIODirectionOut=2,kIODirectionInOut=3,kIOMemoryMapperNone=0x800,kIOMemoryPhysicallyContiguous=0x10,kIOMemoryPersistent=0x10000;
inline void *kernel_task=reinterpret_cast<void *>(1);
using task_t=void *;
/* ScatterUnlessContiguous: what the tablet does, one physical page per span unless the caller asked for contiguous memory. */