summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/StorageKit
diff options
context:
space:
mode:
Diffstat (limited to 'dev/Kernel/StorageKit')
-rw-r--r--dev/Kernel/StorageKit/AHCI.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/dev/Kernel/StorageKit/AHCI.h b/dev/Kernel/StorageKit/AHCI.h
index 2eb0912b..43e81ba0 100644
--- a/dev/Kernel/StorageKit/AHCI.h
+++ b/dev/Kernel/StorageKit/AHCI.h
@@ -27,12 +27,12 @@ namespace NeOS
const Char* Name() const override;
- const UInt16& GetPi()
+ const UInt16& GetPortsImplemented()
{
return this->fPortsImplemented;
}
- Void SetPi(const UInt16& pi)
+ Void SetPortsImplemented(const UInt16& pi)
{
MUST_PASS(pi > 0);
this->fPortsImplemented = pi;
@@ -45,6 +45,7 @@ namespace NeOS
Void SetIndex(const UInt32& drv)
{
+ MUST_PASS(MountpointInterface::kDriveIndexInvalid != drv);
this->fDriveIndex = drv;
}