kos_sys/addons/navi/
ide.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Rust for KallistiOS/Dreamcast
// Copyright (C) 2024 Eric Fradella
// https://dreamcast.rs/

use crate::prelude::*;

#[link(name = "kallisti")]
extern "C" {
    pub fn ide_read(linear: u32, numsects: u32, bufptr: *mut c_void) -> c_int;
    pub fn ide_write(linear: u32, numsects: u32, bufptr: *mut c_void) -> c_int;
    pub fn ide_num_sectors() -> u32;
    pub fn ide_init() -> c_int;
    pub fn ide_shutdown();
}