X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fcd%2FLC89510.h;h=2b0d382658f64f58d0672e53f0fafb1e22ab109e;hb=4aed476f2475f40406b4c3da91b3e5e7323e87b2;hp=7acfe8ac0e07ba1614d62983b81991b2a68426c5;hpb=cb4a513a96b173624619686ca21360d556557ec3;p=picodrive.git diff --git a/Pico/cd/LC89510.h b/Pico/cd/LC89510.h index 7acfe8a..2b0d382 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 @@ -88,6 +97,7 @@ typedef struct } B; unsigned int N; } CTRL; + unsigned int Decode_Reg_Read; } CDC; typedef struct @@ -102,22 +112,20 @@ typedef struct unsigned short Seconde; unsigned short Frame; unsigned char Ext; + unsigned char pad[3]; } CDD; -extern int CDC_Decode_Reg_Read; - - -void LC89510_Reset(void); -unsigned short Read_CDC_Host(int is_sub); -void Update_CDC_TRansfer(int which); -void CDC_Update_Header(void); +PICO_INTERNAL_ASM unsigned short Read_CDC_Host(int is_sub); +PICO_INTERNAL void LC89510_Reset(void); +PICO_INTERNAL void Update_CDC_TRansfer(int which); +PICO_INTERNAL void CDC_Update_Header(void); -unsigned char CDC_Read_Reg(void); -void CDC_Write_Reg(unsigned char Data); +PICO_INTERNAL unsigned char CDC_Read_Reg(void); +PICO_INTERNAL void CDC_Write_Reg(unsigned char Data); -void CDD_Export_Status(void); -void CDD_Import_Command(void); +PICO_INTERNAL void CDD_Export_Status(void); +PICO_INTERNAL void CDD_Import_Command(void); #ifdef __cplusplus };