liberis
Functions
cd.h File Reference

High-level control of the CD drive. More...

#include <eris/types.h>

Go to the source code of this file.

Functions

void eris_cd_reset (void)
 Reset the CD drive.
u32 eris_cd_read (u32 lba, u8 *buf, u32 size)
 Read data from the CD drive.
void eris_cd_read_kram (u32 lba, u32 kram_addr, u32 size)
 Read data from the CD drive into KRAM.

Detailed Description

High-level control of the CD drive.


Function Documentation

u32 eris_cd_read ( u32  lba,
u8 buf,
u32  size 
)

Read data from the CD drive.

Parameters:
lbaLBA of the sector to start reading from.
bufBuffer to store the data into. Must have ((size+2047) & ~0x2047) bytes available!
sizeHow many bytes to read.
void eris_cd_read_kram ( u32  lba,
u32  kram_addr,
u32  size 
)

Read data from the CD drive into KRAM.

Parameters:
lbaLBA of the sector to start reading from.
kram_addrAddress in KRAM to start writing into.
sizeHow many bytes to read.
 All Files Functions Typedefs Enumerations Enumerator Defines