-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from jiyunomegami/forupstream2
Add /SCFM and /SCMPU options, to select which cards to use for FM/MPU
- Loading branch information
Showing
8 changed files
with
346 additions
and
165 deletions.
There are no files selected for viewing
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
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
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
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
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,27 @@ | ||
#include "au_cards.h" | ||
|
||
#define hw_fm_outb(reg,data) outp(aui->fm_port+reg,data) | ||
#define hw_fm_inb(reg) inp(aui->fm_port+reg) | ||
|
||
uint8_t ioport_fm_read (struct mpxplay_audioout_info_s *aui, unsigned int idx) | ||
{ | ||
return hw_fm_inb(idx); | ||
} | ||
|
||
void ioport_fm_write (struct mpxplay_audioout_info_s *aui, unsigned int idx, uint8_t data) | ||
{ | ||
hw_fm_outb(idx, data); | ||
} | ||
|
||
#define hw_mpu_outb(reg,data) outp(aui->mpu401_port+reg,data) | ||
#define hw_mpu_inb(reg) inp(aui->mpu401_port+reg) | ||
|
||
uint8_t ioport_mpu401_read (struct mpxplay_audioout_info_s *aui, unsigned int idx) | ||
{ | ||
return hw_mpu_inb(idx); | ||
} | ||
|
||
void ioport_mpu401_write (struct mpxplay_audioout_info_s *aui, unsigned int idx, uint8_t data) | ||
{ | ||
hw_mpu_outb(idx, data); | ||
} |
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
Oops, something went wrong.