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

build_ncq_read_fis

Function build_ncq_read_fis 

Source
pub fn build_ncq_read_fis(lba: u64, sector_count: u16, tag: NcqTag) -> FisRegH2D
Expand description

Build a READ FPDMA QUEUED (NCQ) FIS.

NCQ uses the SATA Active (SActive) register rather than Command Issue. The tag is encoded in the sector count register (bits 7:3).