Skip to content

Commit

Permalink
ahci fix documentation links
Browse files Browse the repository at this point in the history
  • Loading branch information
Orycterope committed Mar 11, 2019
1 parent e6cca9b commit 113833b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ahci/src/hba.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions libuser/src/ahci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u32, Error> {
let mut buf = [0; 0x100];

Expand Down

0 comments on commit 113833b

Please sign in to comment.