From aaad58f2d6a56830860cb6ddef099096b089c389 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 31 Mar 2025 15:40:16 +0200 Subject: storage: unify naming for drive protocol interface Renamed `fDriveKind` to `fProtocol` across kernel storage subsystems to clarify its purpose as a protocol identifier (e.g., "AHCI", "ATA-") rather than a general "kind" classification. Updated all affected header and source files: - DriveMgr, HeFS, AHCI, ATADeviceInterface, and NeFS now consistently reference `fProtocol()` instead of `fDriveKind()`. - Added streaming operators (`<<`, `>>`) to AHCI and ATA device interfaces for improved mountpoint interaction. - Promoted `GetPortsImplemented()` and `SetPortsImplemented()` to public for AHCI device configuration. - Added null checks and protocol verification logic in stream operators. This refactor improves clarity and consistency when working with storage devices across the kernel. Signed-off-by: Amlal El Mahrouss --- dev/kernel/src/DriveMgr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev/kernel/src/DriveMgr.cc') diff --git a/dev/kernel/src/DriveMgr.cc b/dev/kernel/src/DriveMgr.cc index d8683fc5..3b0dd9ee 100644 --- a/dev/kernel/src/DriveMgr.cc +++ b/dev/kernel/src/DriveMgr.cc @@ -148,7 +148,7 @@ namespace Kernel trait.fOutput = io_drv_unimplemented; trait.fVerify = io_drv_unimplemented; trait.fInit = io_drv_unimplemented; - trait.fDriveKind = io_drv_kind; + trait.fProtocol = io_drv_kind; kout << "Construct: " << trait.fName << "\r"; @@ -224,7 +224,7 @@ namespace Kernel trait.fOutput = io_drv_output; trait.fInput = io_drv_input; trait.fInit = io_drv_init; - trait.fDriveKind = io_drv_kind; + trait.fProtocol = io_drv_kind; kout << "Detecting partition scheme of: " << trait.fName << ".\r"; -- cgit v1.2.3