Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/luna68k/dev/xp.c
RevisionDateAuthorComments
 1.8  15-Jan-2023  tsutsui TAB/space/indent cleanup.
 1.7  10-Jun-2022  tsutsui luna68k: add psgpam(4) audio for LUNA, using YM2149 PSG/SSG sound chip.

"PSG PAM" is a audio driver using "Pulse Amplitude Modulation" with the
YM2149 PSG/SSG chip connected to the I/O processor HD647180X on LUNA.
The driver plays up to 30 kHz PCM audio by manipulating PSG channel volumes
at extremely high speed with 6.144 MHz HD647180X, a Z80 compatible sub CPU.
https://www.youtube.com/watch?v=fR7PqaLpijQ
https://www.youtube.com/watch?v=kCDZCgkwgBA

Compatibilities with the existing XPIOCDOWNLD ioctl(2) to download and
exec user programs (PSG sound driver player ported from PC-6001 etc.)
on the HD647180X is still provided.
https://twitter.com/tsutsuii/status/1533247362965315584

This psgpam(4) driver for NetBSD/luna68k was written by @moveccr
during isaki-audio2 branch developments, and it was also demonstrated
at Open Source Conference 2018 Kyoto:
https://github.com/isaki68k/netbsd-src/tree/audio2
https://mail-index.netbsd.org/netbsd-advocacy/2018/08/07/msg000781.html
https://twitter.com/tsutsuii/status/1025504875625365505

Note specifications of interrupts from the HD647180X to the host LUNA
was confirmed by Kenji Aoyama on his LUNA-88K2 running OpenBSD/luna88k.

I would like to thank all people still working on ancient LUNA machines!
 1.6  29-Dec-2020  tsutsui Make local functions static.
 1.5  30-Jun-2019  tsutsui branches: 1.5.10;
Pull OpenBSD/luna88k board.h to define SX9100 board device addresses.

Also replace magic addresses with macro where appropriate.
 1.4  01-Jun-2017  chs branches: 1.4.8; 1.4.12;
remove checks for failure after memory allocation calls that cannot fail:

kmem_alloc() with KM_SLEEP
kmem_zalloc() with KM_SLEEP
percpu_alloc()
pserialize_create()
psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.
 1.3  08-Jan-2017  tsutsui branches: 1.3.4;
Consistently use sc_shm_size initialized at device attach.
 1.2  08-Jan-2017  tsutsui Fix (mostly harmless) off-by-one size check in XPIOCDOWNLD ioctl.

Pointed out by Kenji Aoyama.
 1.1  03-Dec-2016  tsutsui branches: 1.1.2; 1.1.4; 1.1.6;
Preliminary support for LUNA's HD647180X I/O processor (a.k.a. XP).

Demonstrated as "PSG tunes / PCM wav player on LUNA"
(using Z80 PSG/PCM drivers ported from NEC PC-6001)
at OSC2016 Kyoto and OSC2016 Hiroshima:
http://mail-index.netbsd.org/netbsd-advocacy/2016/08/01/msg000712.html
http://mail-index.netbsd.org/netbsd-advocacy/2016/11/29/msg000724.html
 1.1.6.3  20-Mar-2017  pgoyette Sync with HEAD
 1.1.6.2  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.1.6.1  03-Dec-2016  pgoyette file xp.c was added on branch pgoyette-localcount on 2017-01-07 08:56:20 +0000
 1.1.4.2  06-Dec-2016  snj Pull up following revision(s) (requested by tsutsui in ticket #1283):
distrib/sets/lists/comp/md.luna68k: revision 1.21
etc/etc.luna68k/MAKEDEV.conf: revision 1.9
sys/arch/luna68k/conf/GENERIC: revision 1.120
sys/arch/luna68k/conf/files.luna68k: revision 1.25
sys/arch/luna68k/conf/majors.luna68k: revision 1.21
sys/arch/luna68k/dev/xp.c: revision 1.1
sys/arch/luna68k/include/Makefile: revision 1.19
sys/arch/luna68k/include/xpio.h: revision 1.1
sys/arch/luna68k/luna68k/mainbus.c: revision 1.14
Preliminary support for LUNA's HD647180X I/O processor (a.k.a. XP).
Demonstrated as "PSG tunes / PCM wav player on LUNA"
(using Z80 PSG/PCM drivers ported from NEC PC-6001)
at OSC2016 Kyoto and OSC2016 Hiroshima:
http://mail-index.netbsd.org/netbsd-advocacy/2016/08/01/msg000712.html
http://mail-index.netbsd.org/netbsd-advocacy/2016/11/29/msg000724.html
 1.1.4.1  03-Dec-2016  snj file xp.c was added on branch netbsd-7 on 2016-12-06 06:50:23 +0000
 1.1.2.4  28-Aug-2017  skrll Sync with HEAD
 1.1.2.3  05-Feb-2017  skrll Sync with HEAD
 1.1.2.2  05-Dec-2016  skrll Sync with HEAD
 1.1.2.1  03-Dec-2016  skrll file xp.c was added on branch nick-nhusb on 2016-12-05 10:54:54 +0000
 1.3.4.2  18-Jan-2017  skrll Sync with netbsd-5
 1.3.4.1  08-Jan-2017  skrll file xp.c was added on branch netbsd-7-nhusb on 2017-01-18 08:46:25 +0000
 1.4.12.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.4.8.2  03-Dec-2017  jdolecek update from HEAD
 1.4.8.1  01-Jun-2017  jdolecek file xp.c was added on branch tls-maxphys on 2017-12-03 11:36:23 +0000
 1.5.10.1  03-Jan-2021  thorpej Sync w/ HEAD.

RSS XML Feed