X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fcd%2FLC89510.h;h=fb84d61ddc6573ef9ae669265e8fd7aa95f1a067;hb=a4f0cc8647c019f149541df380a2d30e14aeb75c;hp=7a0fa5e257c08cea532c9df49644698fd3b59cce;hpb=cc68a136aa179a5f32fe40208371eb9c2b0aadae;p=picodrive.git diff --git a/Pico/cd/LC89510.h b/Pico/cd/LC89510.h index 7a0fa5e..fb84d61 100644 --- a/Pico/cd/LC89510.h +++ b/Pico/cd/LC89510.h @@ -1,3 +1,12 @@ +/*********************************************************** + * * + * This source was taken from the Gens project * + * Written by Stéphane Dallongeville * + * Copyright (c) 2002 by Stéphane Dallongeville * + * Modified/adapted for PicoDrive by notaz, 2007 * + * * + ***********************************************************/ + #ifndef _LC89510_H #define _LC89510_H @@ -7,9 +16,10 @@ extern "C" { typedef struct { - unsigned int Host_Data; - unsigned int DMA_Adr; - unsigned int Stop_Watch; + unsigned char Buffer[(32 * 1024 * 2) + 2352]; +// unsigned int Host_Data; // unused +// unsigned int DMA_Adr; // 0A +// unsigned int Stop_Watch; // 0C unsigned int COMIN; unsigned int IFSTAT; union @@ -87,7 +97,7 @@ typedef struct } B; unsigned int N; } CTRL; - unsigned char Buffer[(32 * 1024 * 2) + 2352]; + unsigned int Decode_Reg_Read; } CDC; typedef struct @@ -105,12 +115,9 @@ typedef struct } CDD; -extern int CDC_Decode_Reg_Read; - - void LC89510_Reset(void); unsigned short Read_CDC_Host(int is_sub); -void Update_CDC_TRansfer(void); +void Update_CDC_TRansfer(int which); void CDC_Update_Header(void); unsigned char CDC_Read_Reg(void); @@ -119,9 +126,6 @@ void CDC_Write_Reg(unsigned char Data); void CDD_Export_Status(void); void CDD_Import_Command(void); -unsigned char SCD_Read_Byte(unsigned int Adr); -unsigned short SCD_Read_Word(unsigned int Adr); - #ifdef __cplusplus }; #endif