NeKernel dev
Loading...
Searching...
No Matches
PRDT.h
Go to the documentation of this file.
1/* ========================================
2
3 Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
4
5======================================== */
6
7#pragma once
8
9#include <KernelKit/PCI/DMA.h>
11#include <NeKit/Ref.h>
12
13#define kPrdtTransferSize (sizeof(Kernel::UShort))
14
15namespace Kernel {
17enum {
21};
22
29
30void construct_prdt(Ref<PRDT>& prd);
31
33} // namespace Kernel
#define EXTERN_C
Reference wrapper class. /// =========================================================== ///.
Definition Ref.h:22
UPS inline definitions.
Definition Device.h:12
@ kPRDTTransferIsDone
Definition PRDT.h:19
@ kPRDTTransferInProgress
Definition PRDT.h:18
@ kPRDTTransferCount
Definition PRDT.h:20
void construct_prdt(Ref< PRDT > &prd)
constructs a new PRD.
Definition PRDT.cc:17
__UINT8_TYPE__ UInt8
Definition Config.h:55
__UINT32_TYPE__ UInt32
Definition Config.h:44
__INT32_TYPE__ Int32
Definition Config.h:38
EXTERN_C Int32 kPRDTTransferStatus
Definition PRDT.h:32
Physical Region Descriptor Table.
Definition PRDT.h:24
UInt32 fSectorCount
Definition PRDT.h:26
UInt8 fEndBit
Definition PRDT.h:27
UInt32 fPhysAddress
Definition PRDT.h:25