mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
Pull request q800 20231008
add support for booting: - MacOS 7.1 - 8.1, with or without virtual memory enabled - A/UX 3.0.1 - NetBSD 9.3 - Linux (via EMILE) -----BEGIN PGP SIGNATURE----- iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmUiSrISHGxhdXJlbnRA dml2aWVyLmV1AAoJEPMMOL0/L748oSUQAKAm3TPYQUDDVFTi2uhzv6IgNSgOVUhK 3I3xoNb0UR9AT3Wfg1fah5La3p0kL9Y25gvhCl6veUg39WVicv3fbqUevbJ1Nwgl ovwS3MRRcvYhU+omcXImFfoIPyOxfSf3vZ6SedIkB24hQyXN9eFBZMfgCODU6lfo rAd/Hm50N2jRI8aKjvN+uHFRz75wqq6rNk/4QLWihRqhtWrjUDPHOTMI9sQxWy9z LcXxVKbWCY8/WOAandsGL94l2jfu94HM6CfwHaumdxvPBZT6WUyCv3T1rJsVJU29 b8oTLcwKAmZ7lGLbjl6GdB8q5KAJFCAGLWuEbNIMj0orB37OpUd0Wx2SD9+aA53H yoKGbk6N1UappTtcnZCfwzWRzNaXrRno+w+/xYjlKsXBdHV9ZXHMGD5ERxoC6MY7 ISsCa4bafeUDes6SCetgq87ho69E8l+gAlNYPgidHaTP226BjrYWQRJIa0leczfO aE6dAG7MQFOnOjeOHEJMDB2XpKHiVe1lyVGQH485cLW1J6LHJFWUfUUH2Zjs1v1z eXZHBTclPO2wbuQzXG6pAz2jdF/9w4ft/aA0PQhQcFxa9RB6AoNFG/juHJN5eUiw NXJetR2g1juNPqmMFWDNMJ7Zzce5Chjoj69XJBFYSXhgbOtwpUpoEPZUeIMcW1eJ Va2HvyDQPp1B =RUHg -----END PGP SIGNATURE----- Merge tag 'q800-for-8.2-pull-request' of https://github.com/vivier/qemu-m68k into staging Pull request q800 20231008 add support for booting: - MacOS 7.1 - 8.1, with or without virtual memory enabled - A/UX 3.0.1 - NetBSD 9.3 - Linux (via EMILE) # -----BEGIN PGP SIGNATURE----- # # iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmUiSrISHGxhdXJlbnRA # dml2aWVyLmV1AAoJEPMMOL0/L748oSUQAKAm3TPYQUDDVFTi2uhzv6IgNSgOVUhK # 3I3xoNb0UR9AT3Wfg1fah5La3p0kL9Y25gvhCl6veUg39WVicv3fbqUevbJ1Nwgl # ovwS3MRRcvYhU+omcXImFfoIPyOxfSf3vZ6SedIkB24hQyXN9eFBZMfgCODU6lfo # rAd/Hm50N2jRI8aKjvN+uHFRz75wqq6rNk/4QLWihRqhtWrjUDPHOTMI9sQxWy9z # LcXxVKbWCY8/WOAandsGL94l2jfu94HM6CfwHaumdxvPBZT6WUyCv3T1rJsVJU29 # b8oTLcwKAmZ7lGLbjl6GdB8q5KAJFCAGLWuEbNIMj0orB37OpUd0Wx2SD9+aA53H # yoKGbk6N1UappTtcnZCfwzWRzNaXrRno+w+/xYjlKsXBdHV9ZXHMGD5ERxoC6MY7 # ISsCa4bafeUDes6SCetgq87ho69E8l+gAlNYPgidHaTP226BjrYWQRJIa0leczfO # aE6dAG7MQFOnOjeOHEJMDB2XpKHiVe1lyVGQH485cLW1J6LHJFWUfUUH2Zjs1v1z # eXZHBTclPO2wbuQzXG6pAz2jdF/9w4ft/aA0PQhQcFxa9RB6AoNFG/juHJN5eUiw # NXJetR2g1juNPqmMFWDNMJ7Zzce5Chjoj69XJBFYSXhgbOtwpUpoEPZUeIMcW1eJ # Va2HvyDQPp1B # =RUHg # -----END PGP SIGNATURE----- # gpg: Signature made Sun 08 Oct 2023 02:22:42 EDT # gpg: using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C # gpg: issuer "laurent@vivier.eu" # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full] # gpg: aka "Laurent Vivier <laurent@vivier.eu>" [full] # gpg: aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full] # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F 5173 F30C 38BD 3F2F BE3C * tag 'q800-for-8.2-pull-request' of https://github.com/vivier/qemu-m68k: mac_via: extend timer calibration hack to work with A/UX q800: add alias for MacOS toolbox ROM at 0x40000000 q800: add ESCC alias at 0xc000 mac_via: always clear ADB interrupt when switching to A/UX mode mac_via: implement ADB_STATE_IDLE state if shift register in input mode mac_via: workaround NetBSD ADB bus enumeration issue mac_via: work around underflow in TimeDBRA timing loop in SETUPTIMEK swim: update IWM/ISM register block decoding swim: split into separate IWM and ISM register blocks swim: add trace events for IWM and ISM registers q800: add easc bool machine class property to switch between ASC and EASC q800: add Apple Sound Chip (ASC) audio to machine asc: generate silence if FIFO empty but engine still running audio: add Apple Sound Chip (ASC) emulation q800: allow accesses to RAM area even if less memory is available q800: add IOSB subsystem q800: implement additional machine id bits on VIA1 port A q800: add machine id register q800: add djMEMC memory controller q800-glue.c: convert to Resettable interface Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
commit
f729410356
23 changed files with 1784 additions and 121 deletions
86
include/hw/audio/asc.h
Normal file
86
include/hw/audio/asc.h
Normal file
|
@ -0,0 +1,86 @@
|
|||
/*
|
||||
* QEMU Apple Sound Chip emulation
|
||||
*
|
||||
* Apple Sound Chip (ASC) 344S0063
|
||||
* Enhanced Apple Sound Chip (EASC) 343S1063
|
||||
*
|
||||
* Copyright (c) 2012-2018 Laurent Vivier <laurent@vivier.eu>
|
||||
* Copyright (c) 2022 Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef HW_AUDIO_ASC_H
|
||||
#define HW_AUDIO_ASC_H
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "audio/audio.h"
|
||||
|
||||
#define ASC_FREQ 22257
|
||||
|
||||
enum {
|
||||
ASC_TYPE_ASC = 0, /* original discrete Apple Sound Chip */
|
||||
ASC_TYPE_EASC = 1 /* discrete Enhanced Apple Sound Chip */
|
||||
};
|
||||
|
||||
#define ASC_FIFO_OFFSET 0x0
|
||||
#define ASC_FIFO_SIZE 0x400
|
||||
|
||||
#define ASC_REG_OFFSET 0x800
|
||||
#define ASC_REG_SIZE 0x60
|
||||
|
||||
#define ASC_EXTREG_OFFSET 0xf00
|
||||
#define ASC_EXTREG_SIZE 0x20
|
||||
|
||||
typedef struct ASCFIFOState {
|
||||
int index;
|
||||
|
||||
MemoryRegion mem_fifo;
|
||||
uint8_t fifo[ASC_FIFO_SIZE];
|
||||
uint8_t int_status;
|
||||
|
||||
int cnt;
|
||||
int wptr;
|
||||
int rptr;
|
||||
|
||||
MemoryRegion mem_extregs;
|
||||
uint8_t extregs[ASC_EXTREG_SIZE];
|
||||
|
||||
int xa_cnt;
|
||||
uint8_t xa_val;
|
||||
uint8_t xa_flags;
|
||||
int16_t xa_last[2];
|
||||
} ASCFIFOState;
|
||||
|
||||
struct ASCState {
|
||||
SysBusDevice parent_obj;
|
||||
|
||||
uint8_t type;
|
||||
MemoryRegion asc;
|
||||
MemoryRegion mem_fifo;
|
||||
MemoryRegion mem_regs;
|
||||
MemoryRegion mem_extregs;
|
||||
|
||||
QEMUSoundCard card;
|
||||
SWVoiceOut *voice;
|
||||
uint8_t *mixbuf;
|
||||
int samples;
|
||||
int shift;
|
||||
|
||||
uint8_t *silentbuf;
|
||||
|
||||
/* Time when we were last able to generate samples */
|
||||
int64_t fifo_empty_ns;
|
||||
|
||||
qemu_irq irq;
|
||||
|
||||
ASCFIFOState fifos[2];
|
||||
|
||||
uint8_t regs[ASC_REG_SIZE];
|
||||
};
|
||||
|
||||
#define TYPE_ASC "apple-sound-chip"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(ASCState, ASC)
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue