1 /***********************************************************
\r
3 * This source was taken from the Gens project *
\r
4 * Written by Stéphane Dallongeville *
\r
5 * Copyright (c) 2002 by Stéphane Dallongeville *
\r
6 * Modified/adapted for PicoDrive by notaz, 2007 *
\r
8 ***********************************************************/
\r
19 unsigned char Buffer[(32 * 1024 * 2) + 2352];
\r
20 // unsigned int Host_Data; // unused
\r
21 // unsigned int DMA_Adr; // 0A
\r
22 // unsigned int Stop_Watch; // 0C
\r
24 unsigned int IFSTAT;
\r
31 unsigned short unused;
\r
41 unsigned short unused;
\r
62 unsigned short unused;
\r
72 unsigned short unused;
\r
88 unsigned int IFCTRL;
\r
100 unsigned int Decode_Reg_Read;
\r
105 // unsigned short Fader; // 34
\r
106 // unsigned short Control; // 36
\r
107 // unsigned short Cur_Comm;// unused
\r
109 // "Receive status"
\r
110 unsigned short Status;
\r
111 unsigned short Minute;
\r
112 unsigned short Seconde;
\r
113 unsigned short Frame;
\r
115 unsigned char pad[3];
\r
119 PICO_INTERNAL_ASM unsigned short Read_CDC_Host(int is_sub);
\r
120 PICO_INTERNAL void LC89510_Reset(void);
\r
121 PICO_INTERNAL void Update_CDC_TRansfer(int which);
\r
122 PICO_INTERNAL void CDC_Update_Header(void);
\r
124 PICO_INTERNAL unsigned char CDC_Read_Reg(void);
\r
125 PICO_INTERNAL void CDC_Write_Reg(unsigned char Data);
\r
127 PICO_INTERNAL void CDD_Export_Status(void);
\r
128 PICO_INTERNAL void CDD_Import_Command(void);
\r