void sharedmem_init(void);
void sharedmem_deinit(void);

void YM2612Init_940(int baseclock, int rate);
void YM2612ResetChip_940(void);
int  YM2612UpdateOne_940(int *buffer, int length, int stereo, int is_buf_empty);

int  YM2612Write_940(unsigned int a, unsigned int v);
unsigned char YM2612Read_940(void);

int  YM2612PicoTick_940(int n);
void YM2612PicoStateLoad_940(void);
