-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mihai Draghicioiu
committed
Nov 8, 2014
1 parent
75c73e3
commit 177260e
Showing
124 changed files
with
66,880 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
void open_fm_option(UINT8 ChipType, UINT8 OptType, UINT32 OptVal); | ||
void opl_chip_reset(void); | ||
void open_real_fm(void); | ||
void reset_real_fm(void); | ||
void setup_real_fm(UINT8 ChipType, UINT8 ChipID); | ||
void close_real_fm(void); | ||
void chip_reg_write(UINT8 ChipType, UINT8 ChipID, UINT8 Port, UINT8 Offset, UINT8 Data); | ||
void OPL_Hardware_Detecton(void); | ||
void OPL_HW_WriteReg(UINT16 Reg, UINT8 Data); | ||
void OPL_RegMapper(UINT16 Reg, UINT8 Data); | ||
void RefreshVolume(void); | ||
void StartSkipping(void); | ||
void StopSkipping(void); | ||
void ym2413opl_set_emu_core(UINT8 Emulator); | ||
|
||
#ifndef WIN32 | ||
void Sleep(UINT32 msec); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/******************************************************************************/ | ||
/* */ | ||
/* PortTalk Driver for Windows NT/2000/XP */ | ||
/* Version 2.0, 12th January 2002 */ | ||
/* http://www.beyondlogic.org */ | ||
/* */ | ||
/* Copyright © 2002 Craig Peacock. Craig.Peacock@beyondlogic.org */ | ||
/* Any publication or distribution of this code in source form is prohibited */ | ||
/* without prior written permission of the copyright holder. This source code */ | ||
/* is provided "as is", without any guarantee made as to its suitability or */ | ||
/* fitness for any particular use. Permission is herby granted to modify or */ | ||
/* enhance this sample code to produce a derivative program which may only be */ | ||
/* distributed in compiled object form only. */ | ||
/******************************************************************************/ | ||
|
||
#define PORTTALK_TYPE 40000 /* 32768-65535 are reserved for customers */ | ||
|
||
// The IOCTL function codes from 0x800 to 0xFFF are for customer use. | ||
|
||
#define IOCTL_IOPM_RESTRICT_ALL_ACCESS \ | ||
CTL_CODE(PORTTALK_TYPE, 0x900, METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
|
||
#define IOCTL_IOPM_ALLOW_EXCUSIVE_ACCESS \ | ||
CTL_CODE(PORTTALK_TYPE, 0x901, METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
|
||
#define IOCTL_SET_IOPM \ | ||
CTL_CODE(PORTTALK_TYPE, 0x902, METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
|
||
#define IOCTL_ENABLE_IOPM_ON_PROCESSID \ | ||
CTL_CODE(PORTTALK_TYPE, 0x903, METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
|
||
#define IOCTL_READ_PORT_UCHAR \ | ||
CTL_CODE(PORTTALK_TYPE, 0x904, METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
|
||
#define IOCTL_WRITE_PORT_UCHAR \ | ||
CTL_CODE(PORTTALK_TYPE, 0x905, METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
|
Oops, something went wrong.