Am 17. Dezember 2023 15:47:33 UTC schrieb BALATON Zoltan :
>On Sun, 17 Dec 2023, Bernhard Beschow wrote:
>> Exposing the internal header allows for exposing struct FDCtrlISABus which is
>> encuraged by qdev guidelines.
>
>Hopefully the guidelines don't encourage this as object orientation indeed
On Sun, 17 Dec 2023, Bernhard Beschow wrote:
Exposing the internal header allows for exposing struct FDCtrlISABus which is
encuraged by qdev guidelines.
Hopefully the guidelines don't encourage this as object orientation indeed
encourages object encapsulation so only the object itseld should p
On Sun, 17 Dec 2023, Bernhard Beschow wrote:
The VIA south bridges are able to relocate and enable or disable their SuperI/O
functions. So far this is hardcoded such that all functions are always enabled
and are located at fixed addresses.
Some PC BIOSes seem to probe for I/O occupancy before ac
Some SuperI/O devices such as the VIA south bridges or the PC87312 controller
allow to enable or disable their SuperI/O functions. Add a convenience function
for implementing this in the VIA south bridges.
The naming of the functions is inspired by its memory_region_set_enabled()
pendant.
Signed-
Only the source file uses fdc.h but not the header, so remove it from the public
interface.
Signed-off-by: Bernhard Beschow
---
include/hw/i386/pc.h | 1 -
hw/i386/pc.c | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index a
Exposing device structs in headers is encuraged by qdev guidelines.
Signed-off-by: Bernhard Beschow
---
include/hw/block/fdc-isa.h | 15 +++
hw/block/fdc-isa.c | 17 -
2 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/include/hw/block/fdc-isa.h
The MAX_FD is a limitation of struct FDCtrl which is defined in fdc.h. Now that
this header is exposed the definition can be moved there.
Signed-off-by: Bernhard Beschow
---
include/hw/block/fdc-isa.h | 3 ---
include/hw/block/fdc.h | 3 ++-
hw/block/fdc.c | 1 -
hw/i386/pc.c
Exposing device structs in headers is encuraged by qdev guidelines.
Signed-off-by: Bernhard Beschow
---
include/hw/char/serial-isa.h | 50
include/hw/char/serial.h | 7 -
hw/char/serial-isa.c | 14 +-
hw/i386/microvm-dt.c | 2
Results running grep:
`grep -i -e "fdc" hw/ppc/prep.c`
(no output)
`grep -i -e "fdc" hw/m68k/next-cube.c`
DPRINTF("FDCSR Write: %x\n", value);
This indicates that hw/block/fdc.h isn't used there.
Signed-off-by: Bernhard Beschow
---
hw/m68k/next-cube.c | 1 -
hw/ppc/prep.c | 1 -
portio_list_add_1() creates a MemoryRegionPortioList instance which holds a
MemoryRegion `mr` and an array of MemoryRegionPortio elements named `ports`.
Each element in the array gets assigned the same value for its .base attribute.
The same value also ends up as the .addr attribute of `mr` due to
The VIA south bridges are able to relocate and enable or disable their SuperI/O
functions. So far this is hardcoded such that all functions are always enabled
and are located at fixed addresses.
Some PC BIOSes seem to probe for I/O occupancy before activating such a function
and issue an error in
The source files are already in this section. Add the headers, too.
Signed-off-by: Bernhard Beschow
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 939f518701..69135a45b4 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1827,6 +1827,7 @@ F: hw/wa
Exposing the internal header allows for exposing struct FDCtrlISABus which is
encuraged by qdev guidelines.
Signed-off-by: Bernhard Beschow
---
MAINTAINERS | 2 +-
hw/block/fdc-internal.h => include/hw/block/fdc.h | 4 ++--
hw/block/fdc-isa.c
Rename the header which allows for exposing fdc-internal.h (dropping the
-internal suffix) which in turn allows for exposing struct FDCtrlISABus.
Exposing a device struct is in line with OOM/qdev guidelines.
Signed-off-by: Bernhard Beschow
---
MAINTAINERS | 2 +-
hw/blo
Some SuperI/O devices such as the VIA south bridges or the PC87312 controller
are able to relocate their SuperI/O functions. Add a convenience function for
implementing this in the VIA south bridges.
This convenience function relies on previous simplifications in exec/ioport
which avoids some dupl
This series implements relocation of the SuperI/O functions of the VIA south
bridges which resolves some FIXME's. It is part of my via-apollo-pro-133t
branch [1] which is an extension of bringing the VIA south bridges to the PC
machine [2]. This branch is able to run some real-world X86 BIOSes in t
16 matches
Mail list logo