summaryrefslogtreecommitdiffhomepage
path: root/Private/StorageKit/Storage.hpp
blob: 8e7614e6b780ff89e0a723c86c08b60ba7c1dac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* -------------------------------------------

    Copyright Mahrouss Logic

------------------------------------------- */

#pragma once

#include <NewKit/Defines.hpp>
#include <StorageKit/NVME.hpp>
#include <StorageKit/AHCI.hpp>

typedef NewOS::UInt16 SKScsiPacket[12];

extern const SKScsiPacket kCDRomPacketTemplate;

#define f_kDriveSectorSizeHDD (512)
#define f_kDriveSectorSizeSSD (4096)
#define f_kDriveSectorSizeCDROM (2048)

#define f_kDriveSize(LAST_LBA) ((LAST_LBA + 1) * f_kDriveSectorSize)