#ifndef CDI_H
#define CDI_H

#define CDI_SECTOR_LEN 2352
#define CDI_SUBCHANNEL_LEN 24
#define CDI_CDIC_BUFFER_SIZE (CDI_SECTOR_LEN + CDI_SUBCHANNEL_LEN)

void cdi_mount_cd(int s_index, const char *filename);
void cdi_fill_blanksave(uint8_t *buffer, uint32_t lba, int cnt);
void cdi_read_cd(uint8_t *buffer, int lba, int cnt);
int cdi_chd_hunksize();
const char* cdi_get_game_id();
void cdi_poll();
void cdi_load_root_nvram();

#endif
