diff options
Diffstat (limited to 'Private/StorageKit')
| -rw-r--r-- | Private/StorageKit/PRDT.hpp | 71 |
1 files changed, 32 insertions, 39 deletions
diff --git a/Private/StorageKit/PRDT.hpp b/Private/StorageKit/PRDT.hpp index 96e0c5cd..9522ccab 100644 --- a/Private/StorageKit/PRDT.hpp +++ b/Private/StorageKit/PRDT.hpp @@ -13,42 +13,35 @@ #define PRDT_TRANSFER_SIZE (sizeof(hCore::UShort)) -namespace hCore -{ - class PRDT final - { - public: - PRDT() = delete; - explicit PRDT(const UIntPtr &physAddr); - ~PRDT(); - - PRDT &operator=(const PRDT &) = default; - PRDT(const PRDT &) = default; - - public: - const UInt &Low(); - const UShort &High(); - const UIntPtr &PhysicalAddress(); - - public: - PRDT &operator=(const UIntPtr& prdtAddress); - - public: - operator bool() - { - return m_PrdtAddr != 0; - } - - private: - union - { - UInt m_Low; - UShort m_High; - }; - - UIntPtr m_PrdtAddr; - - }; - - using PhysicalAddress = PRDT; // here -} // namespace hCore +namespace hCore { +class PRDT final { + public: + PRDT() = delete; + explicit PRDT(const UIntPtr &physAddr); + ~PRDT(); + + PRDT &operator=(const PRDT &) = default; + PRDT(const PRDT &) = default; + + public: + const UInt &Low(); + const UShort &High(); + const UIntPtr &PhysicalAddress(); + + public: + PRDT &operator=(const UIntPtr &prdtAddress); + + public: + operator bool() { return m_PrdtAddr != 0; } + + private: + union { + UInt m_Low; + UShort m_High; + }; + + UIntPtr m_PrdtAddr; +}; + +using PhysicalAddress = PRDT; // here +} // namespace hCore |
