Skip to content

Commit

Permalink
Added initial files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Draghicioiu committed Nov 8, 2014
1 parent 75c73e3 commit 177260e
Show file tree
Hide file tree
Showing 124 changed files with 66,880 additions and 0 deletions.
1,106 changes: 1,106 additions & 0 deletions ChipMapper.c

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions ChipMapper.h
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
37 changes: 37 additions & 0 deletions PortTalk_IOCTL.h
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)

Loading

0 comments on commit 177260e

Please sign in to comment.