From 113833b817476a8b839d40b6f8f7e57fa38d19a8 Mon Sep 17 00:00:00 2001 From: Orycterope Date: Mon, 11 Mar 2019 01:26:28 +0100 Subject: [PATCH] ahci fix documentation links --- ahci/src/hba.rs | 6 ++++-- libuser/src/ahci.rs | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ahci/src/hba.rs b/ahci/src/hba.rs index b2d1d9ae6..747cc6fe4 100644 --- a/ahci/src/hba.rs +++ b/ahci/src/hba.rs @@ -778,7 +778,8 @@ impl Px { /// * `sector_count` == 0. /// * `sector_count` is greater than supported maximum (256 for 28-bit devices, 65536 for 48-bit ones). /// * `lba + sector_count` is not representable on a 28-bit/48-bit address. - /// * all [fill_prdt] errors. + /// * query_physical_address() failed. + /// * AhciError::BufferTooScattered: `buffer` is so scattered it overflows PRDT. #[allow(clippy::too_many_arguments)] // heh #[allow(clippy::missing_docs_in_private_items)] pub unsafe fn read_dma( @@ -877,7 +878,8 @@ impl Px { /// * `sector_count` == 0. /// * `sector_count` is greater than supported maximum (256 for 28-bit devices, 65536 for 48-bit ones). /// * `lba + sector_count` is not representable on a 28-bit/48-bit address. - /// * all [fill_prdt] errors. + /// * query_physical_address() failed. + /// * AhciError::BufferTooScattered: `buffer` is so scattered it overflows PRDT. #[allow(clippy::too_many_arguments)] // heh #[allow(clippy::missing_docs_in_private_items)] pub unsafe fn write_dma( diff --git a/libuser/src/ahci.rs b/libuser/src/ahci.rs index b91b59bf6..c4dd08366 100644 --- a/libuser/src/ahci.rs +++ b/libuser/src/ahci.rs @@ -33,6 +33,8 @@ impl AhciInterface { /// Asks to the ahci service how many disks it has discovered. /// /// [get_disk] accepts disk ids in `0..discovered_disks_count()`. + /// + /// [get_disk]: AhciInterface::get_disk pub fn discovered_disks_count(&mut self) -> Result { let mut buf = [0; 0x100];