7e6b5497ea
hw/char/serial currently contains the implementation of both TYPE_SERIAL and TYPE_SERIAL_MM. According to serial_class_init(), TYPE_SERIAL is an internal class while TYPE_SERIAL_MM is used by numerous machine types directly. Let's move the latter into its own module which makes the dependencies more obvious and the code more tidy. The includes and the dependencies have been converted mechanically except in the hw/char directories which were updated manually. The result was compile-tested. Now, only hw/char makes direct use of TYPE_SERIAL: # grep -r -e "select SERIAL" | grep -v SERIAL_ hw/char/Kconfig: select SERIAL hw/char/Kconfig: select SERIAL hw/char/Kconfig: select SERIAL hw/char/Kconfig: select SERIAL hw/char/Kconfig: select SERIAL # grep -r -e "/serial\\.h" include/hw/char/serial-mm.h:#include "hw/char/serial.h" hw/char/serial-pci-multi.c:#include "hw/char/serial.h" hw/char/serial.c:#include "hw/char/serial.h" hw/char/serial-isa.c:#include "hw/char/serial.h" hw/char/serial-pci.c:#include "hw/char/serial.h" Tested-by: Andrew Jeffery <andrew@codeconstruct.com.au> Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Bernhard Beschow <shentey@gmail.com> Link: https://lore.kernel.org/r/20240905073832.16222-4-shentey@gmail.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
96 lines
1.7 KiB
Plaintext
96 lines
1.7 KiB
Plaintext
config MALTA
|
|
bool
|
|
default y
|
|
depends on MIPS
|
|
imply PCNET_PCI
|
|
imply PCI_DEVICES
|
|
imply TEST_DEVICES
|
|
select FDC37M81X
|
|
select GT64120
|
|
select MIPS_CPS
|
|
select PIIX
|
|
select PFLASH_CFI01
|
|
select SERIAL_MM
|
|
select SMBUS_EEPROM
|
|
|
|
config MIPSSIM
|
|
bool
|
|
default y
|
|
depends on MIPS
|
|
select SERIAL_MM
|
|
select MIPSNET
|
|
|
|
config JAZZ
|
|
bool
|
|
default y
|
|
depends on MIPS64
|
|
select ISA_BUS
|
|
select RC4030
|
|
select I8259
|
|
select I8254
|
|
select I8257
|
|
select PCSPK
|
|
select VGA_MMIO
|
|
select G364FB
|
|
select DP8393X
|
|
select ESP
|
|
select FDC_SYSBUS
|
|
select MC146818RTC
|
|
select PCKBD
|
|
select SERIAL_MM
|
|
select PARALLEL
|
|
select DS1225Y
|
|
select JAZZ_LED
|
|
|
|
config FULOONG
|
|
bool
|
|
default y
|
|
depends on MIPS64 && !TARGET_BIG_ENDIAN
|
|
imply PCI_DEVICES
|
|
imply TEST_DEVICES
|
|
imply ATI_VGA
|
|
imply RTL8139_PCI
|
|
select PCI_BONITO
|
|
select SMBUS_EEPROM
|
|
select VT82C686
|
|
|
|
config LOONGSON3V
|
|
bool
|
|
default y
|
|
depends on MIPS64 && !TARGET_BIG_ENDIAN
|
|
imply PCI_DEVICES
|
|
imply TEST_DEVICES
|
|
imply VIRTIO_PCI
|
|
imply VIRTIO_NET
|
|
imply VIRTIO_VGA
|
|
imply QXL if SPICE
|
|
imply USB_OHCI_PCI
|
|
select SERIAL_MM
|
|
select GOLDFISH_RTC
|
|
select LOONGSON_IPI
|
|
select LOONGSON_LIOINTC
|
|
select PCI_EXPRESS_GENERIC_BRIDGE
|
|
select MSI_NONBROKEN
|
|
select FW_CFG_MIPS
|
|
select UNIMP
|
|
|
|
config MIPS_CPS
|
|
bool
|
|
select MIPS_ITU
|
|
|
|
config MIPS_BOSTON
|
|
bool
|
|
default y
|
|
depends on MIPS64 && !TARGET_BIG_ENDIAN && FDT
|
|
imply PCI_DEVICES
|
|
imply TEST_DEVICES
|
|
select DEVICE_TREE
|
|
select FITLOADER
|
|
select MIPS_CPS
|
|
select PCI_EXPRESS_XILINX
|
|
select AHCI_ICH9
|
|
select SERIAL_MM
|
|
|
|
config FW_CFG_MIPS
|
|
bool
|