qemu/include/hw
Laurent Vivier b43047a20f escc: introduce a selector for the register bit
On Sparc and PowerMac, the bit 0 of the address selects the register
type (control or data) and bit 1 selects the channel (B or A).

On m68k Macintosh and NeXTcube, the bit 0 selects the channel and
bit 1 the register type.

This patch introduces a new parameter (bit_swap) to the device interface
to indicate bits usage must be swapped between registers and channels.

For the moment all the machines use the bit 0, but this change will be
needed to emulate the Quadra 800 or NeXTcube machine.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Hervé Poussineau <hpoussin@reactos.org>
[thh: added NeXTcube to the patch description]
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190831074519.32613-5-huth@tuxfamily.org>
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
2019-09-07 08:32:12 +02:00
..
acpi numa: move numa global variable nb_numa_nodes into MachineState 2019-09-03 11:26:55 -03:00
adc
arm hw/arm: simplify arm_load_dtb 2019-09-03 11:26:55 -03:00
audio Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
block Include exec/memory.h slightly less 2019-08-16 13:31:52 +02:00
char escc: introduce a selector for the register bit 2019-09-07 08:32:12 +02:00
core exec: Factor out cpu_watchpoint_address_matches 2019-09-03 08:30:39 -07:00
cpu Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
cris Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
display Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
dma Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
firmware
gpio
hyperv
i2c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
i386 ppc patch queue for 2019-08-21 2019-08-21 14:04:17 +01:00
ide sysemu: Move the VMChangeStateEntry typedef to qemu/typedefs.h 2019-08-16 13:31:53 +02:00
input Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
intc
ipack Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
ipmi Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
isa Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
kvm
lm32
m68k m68k: Add NeXTcube machine 2019-09-07 08:31:51 +02:00
mem Include sysemu/hostmem.h less 2019-08-16 13:31:53 +02:00
mips Include hw/irq.h a lot less 2019-08-16 13:31:52 +02:00
misc Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
net Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
nvram
pci Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
pci-bridge
pci-host spapr/pci: Convert types to QEMU coding style 2019-08-29 09:46:07 +10:00
ppc spapr_pci: Advertise BAR reallocation capability 2019-08-29 09:46:07 +10:00
rdma
riscv Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
s390x Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
scsi sysemu: Move the VMChangeStateEntry typedef to qemu/typedefs.h 2019-08-16 13:31:53 +02:00
sd Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
semihosting
sh4 Include hw/irq.h a lot less 2019-08-16 13:31:52 +02:00
sparc Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
ssi Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
timer Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
tricore Include hw/irq.h a lot less 2019-08-16 13:31:52 +02:00
unicore32
usb
vfio Include hw/irq.h a lot less 2019-08-16 13:31:52 +02:00
virtio virtio-rng: Keep the default backend out of VirtIORNGConf 2019-09-04 06:32:51 -04:00
watchdog Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
xen xen: Fix ring.h header 2019-08-27 14:18:28 +01:00
xtensa Include hw/irq.h a lot less 2019-08-16 13:31:52 +02:00
boards.h numa: move numa global variable nb_numa_nodes into MachineState 2019-09-03 11:26:55 -03:00
bt.h Include hw/irq.h a lot less 2019-08-16 13:31:52 +02:00
elf_ops.h elf-ops.h: Map into memory the ELF to load 2019-08-20 17:26:18 +02:00
empty_slot.h
fw-path-provider.h
hotplug.h
hw.h Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
ide.h
irq.h Include hw/irq.h a lot less 2019-08-16 13:31:52 +02:00
loader-fit.h
loader.h loader: Handle memory-mapped ELFs 2019-08-20 17:26:18 +02:00
nmi.h
or-irq.h Include hw/irq.h a lot less 2019-08-16 13:31:52 +02:00
pcmcia.h Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
platform-bus.h
ptimer.h Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
qdev-core.h Include sysemu/sysemu.h a lot less 2019-08-16 13:31:53 +02:00
qdev-dma.h
qdev-properties.h audio: add audiodev properties to frontends 2019-08-21 09:13:37 +02:00
register.h
registerfields.h
stream.h
sysbus.h Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
usb.h Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00