eb604411a7
hw/audio/via-ac97: Basic implementation of audio playback
...
Add basic implementation of the AC'97 sound part used in VIA south
bridge chips. Not all features of the device is emulated, only one
playback channel is supported for now but this is enough to get sound
output from some guests using this device on pegasos2.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu >
Reviewed-by: Volker Rümelin <vr_qemu@t-online.de >
Tested-by: Rene Engel <ReneEngel80@emailn.de >
Message-Id: <63b99410895312f40e7be479f581da0805e605a1.1678188711.git.balaton@eik.bme.hu >
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
2023-03-08 00:37:48 +01:00
674b0a5784
include/hw/pci: Break inclusion loop pci_bridge.h and cxl.h
...
hw/pci/pci_bridge.h and hw/cxl/cxl.h include each other.
Fortunately, breaking the loop is merely a matter of deleting
unnecessary includes from headers, and adding them back in places
where they are now missing.
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20221222100330.380143-2-armbru@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2023-01-08 01:54:22 -05:00
d105377264
hw/isa/vt82c686: Instantiate PM function in host device
...
The PM controller has activity bits which monitor activity of other
built-in devices in the host device.
Signed-off-by: Bernhard Beschow <shentey@gmail.com >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Acked-by: Daniel Henrique Barboza <danielhb413@gmail.com >
Message-Id: <20220901114127.53914-10-shentey@gmail.com >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
2022-10-31 11:32:07 +01:00
65c69e9a9f
hw/isa/vt82c686: Introduce TYPE_VT82C686B_USB_UHCI define
...
Suggested-by: BALATON Zoltan <balaton@eik.bme.hu >
Signed-off-by: Bernhard Beschow <shentey@gmail.com >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Acked-by: Daniel Henrique Barboza <danielhb413@gmail.com >
Message-Id: <20220901114127.53914-8-shentey@gmail.com >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
2022-10-31 11:32:07 +01:00
4b8fd0661a
hw/isa/vt82c686: Introduce TYPE_VIA_IDE define
...
Establishes consistency with other (VIA) devices.
Signed-off-by: Bernhard Beschow <shentey@gmail.com >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Acked-by: Daniel Henrique Barboza <danielhb413@gmail.com >
Message-Id: <20220901114127.53914-6-shentey@gmail.com >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
2022-10-31 11:32:07 +01:00
a4d65b701f
vt82c686: Add a method to VIA_ISA to raise ISA interrupts
...
Other functions in the VT82xx chips need to raise ISA interrupts. Keep
a reference to them in the device state and add via_isa_set_irq() to
allow setting their state.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com >
Message-Id: <778c04dc2c8affac060b8edf9e8d7dab3c3e04eb.1634259980.git.balaton@eik.bme.hu >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
2021-10-18 00:41:36 +02:00
f9f0c9e2fa
vt82c686: Add emulation of VT8231 south bridge
...
Add emulation of VT8231 south bridge ISA part based on the similar
VT82C686B but implemented in a separate subclass that holds the
differences while reusing parts that can be shared.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <10abc9f89854e7c980b9731c33d25a2e307e9c4f.1616680239.git.balaton@eik.bme.hu >
Signed-off-by: David Gibson <david@gibson.dropbear.id.au >
2021-05-04 11:41:25 +10:00
f028c2ded2
vt82c686: QOM-ify superio related functionality
...
Collect superio functionality and its controlling config registers
handling in an abstract VIA_SUPERIO class that is a subclass of
ISA_SUPERIO and put vt82c686b specific parts in a subclass of this
abstract class.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu >
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk >
Message-Id: <fbcc8cc8baf83f327612a1ef1c14bcbcdb0e7edb.1616680239.git.balaton@eik.bme.hu >
Signed-off-by: David Gibson <david@gibson.dropbear.id.au >
2021-05-04 11:41:25 +10:00
e1a69736e5
vt82c686: Make vt82c686b-pm an abstract base class and add vt8231-pm based on it
...
The vt82c686b-pm model can be shared between VT82C686B and VT8231. The
only difference between the two is the device id in what we emulate so
make an abstract via-pm model by renaming appropriately and add types
for vt82c686b-pm and vt8231-pm based on it.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <34969fc7be984fa070479bfb9f748993a0aef31b.1610223397.git.balaton@eik.bme.hu >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
2021-02-21 19:42:34 +01:00
dc66439542
vt82c686: Remove legacy vt82c686b_pm_init() function
...
Remove legacy vt82c686b_pm_init() function and also rename
VT82C686B_PM type name to match other device names.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <a70982b32f11222d335385b90749abb6cf2e2cce.1609584216.git.balaton@eik.bme.hu >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
2021-01-04 23:24:44 +01:00
0bfda9a225
vt82c686: Remove legacy vt82c686b_isa_init() function
...
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <58d7585f979f154b1f1e69fdc026eed6dbc7996f.1609584216.git.balaton@eik.bme.hu >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
2021-01-04 23:24:44 +01:00
07c6832cb2
vt82c686: Remove vt82c686b_[am]c97_init() functions
...
These are legacy init functions that are just equivalent to directly
calling pci_create_simple so do that instead. Also rename objects to
lower case via-ac97 and via-mc97 matching naming of other devices.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <1c4373c8aeb6c4fb2a8df2c864b0e91a977a3d7b.1609584216.git.balaton@eik.bme.hu >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
2021-01-04 23:24:44 +01:00
64552b6be4
Include hw/irq.h a lot less
...
In my "build everything" tree, changing hw/irq.h triggers a recompile
of some 5400 out of 6600 objects (not counting tests and objects that
don't depend on qemu/osdep.h).
hw/hw.h supposedly includes it for convenience. Several other headers
include it just to get qemu_irq and.or qemu_irq_handler.
Move the qemu_irq and qemu_irq_handler typedefs from hw/irq.h to
qemu/typedefs.h, and then include hw/irq.h only where it's still
needed. Touching it now recompiles only some 500 objects.
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Reviewed-by: Alistair Francis <alistair.francis@wdc.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Message-Id: <20190812052359.30071-13-armbru@redhat.com >
2019-08-16 13:31:52 +02:00
ec150c7e09
include: Make headers more self-contained
...
Back in 2016, we discussed[1] rules for headers, and these were
generally liked:
1. Have a carefully curated header that's included everywhere first. We
got that already thanks to Peter: osdep.h.
2. Headers should normally include everything they need beyond osdep.h.
If exceptions are needed for some reason, they must be documented in
the header. If all that's needed from a header is typedefs, put
those into qemu/typedefs.h instead of including the header.
3. Cyclic inclusion is forbidden.
This patch gets include/ closer to obeying 2.
It's actually extracted from my "[RFC] Baby steps towards saner
headers" series[2], which demonstrates a possible path towards
checking 2 automatically. It passes the RFC test there.
[1] Message-ID: <87h9g8j57d.fsf@blackfin.pond.sub.org >
https://lists.nongnu.org/archive/html/qemu-devel/2016-03/msg03345.html
[2] Message-Id: <20190711122827.18970-1-armbru@redhat.com >
https://lists.nongnu.org/archive/html/qemu-devel/2019-07/msg02715.html
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Reviewed-by: Alistair Francis <alistair.francis@wdc.com >
Message-Id: <20190812052359.30071-2-armbru@redhat.com >
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com >
2019-08-16 13:31:51 +02:00
98cf824b5f
hw/isa/vt82c686: Add the TYPE_VT82C686B_SUPERIO
...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180308223946.26784-20-f4bug@amsat.org >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2018-03-12 16:12:49 +01:00
728d891003
hw/isa/vt82c686: Rename vt82c686b_init() -> vt82c686b_isa_init()
...
This function only initialize the ISA bus.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180308223946.26784-19-f4bug@amsat.org >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2018-03-12 16:12:49 +01:00
a5c828525e
i2c: Rename i2c_bus to I2CBus
...
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Signed-off-by: Andreas Färber <afaerber@suse.de >
2014-02-14 16:22:31 +01:00
0d09e41a51
hw: move headers to include/
...
Many of these should be cleaned up with proper qdev-/QOM-ification.
Right now there are many catch-all headers in include/hw/ARCH depending
on cpu.h, and this makes it necessary to compile these files per-target.
However, fixing this does not belong in these patches.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:10 +02:00