⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

issue_ncq_command

Function issue_ncq_command 

Source
pub fn issue_ncq_command(
    _port: &AhciPort,
    _fis: &FisRegH2D,
) -> Result<NcqTag, KernelError>
Expand description

Issue an NCQ command on a port (stub).

In a full implementation, this would:

  1. Find a free NCQ tag (0-31).
  2. Build the FPDMA FIS and set up the command table.
  3. Set the corresponding bit in PORT_SACT (SActive).
  4. Set the corresponding bit in PORT_CI (Command Issue).
  5. Return the tag for later completion tracking.