Add support for Men Chameleon Bus emulation
v2 cover Add support for Men Chameleon Bus emulation
This series adds support for emulating FPGAs by Men Mikroelektronik Nürnberg and expose the FPGA itself as a bus. The IP-Cores implemented in the FPGA are represented as devices hanging off that bus. This is the same aproach that is used in the Linux kernel as well for these devices.
The main intention for this series is to have a test-bed for Linux Kernel patches targeting the bus and/or sub-devices of it for people who do not have access the hardware.
Changes since v1:
* Updated License comments of the files (Peter Maydell)
* Added <public>/<private> annotations (Philippe Mathieu-Daudé)
Johannes Thumshirn (4):
Add MEN Chameleon Bus emulation
Add MEN Chameleon Bus via PCI carrier
serial-mcb: Add serial via MEN chameleon bus
wdt_z069: Add support for MEN 16z069 Watchdog
default-configs/pci.mak | 1 + hw/Makefile.objs | 1 + hw/char/Makefile.objs | 1 + hw/char/serial-mcb.c | 100 +++++++++++++++ hw/mcb/Makefile.objs | 2 + hw/mcb/mcb-pci.c | 305 ++++++++++++++++++++++++++++++++++++++++++++++ hw/mcb/mcb.c | 180 +++++++++++++++++++++++++++ hw/watchdog/Makefile.objs | 1 + hw/watchdog/wdt_z069.c | 215 ++++++++++++++++++++++++++++++++ include/hw/mcb/mcb.h | 104 ++++++++++++++++ 10 files changed, 910 insertions(+) create mode 100644 hw/char/serial-mcb.c create mode 100644 hw/mcb/Makefile.objs create mode 100644 hw/mcb/mcb-pci.c create mode 100644 hw/mcb/mcb.c create mode 100644 hw/watchdog/wdt_z069.c create mode 100644 include/hw/mcb/mcb.h
Signature · 1 line
2.16.4
PATCH v2 1/4 Add MEN Chameleon Bus emulation
The MEN Chameleon Bus (MCB) is an on-chip bus system exposing IP Cores of an FPGA to a outside bus system like PCIe.
--- default-configs/pci.mak | 1 + hw/Makefile.objs | 1 + hw/mcb/Makefile.objs | 1 + hw/mcb/mcb.c | 180 ++++++++++++++++++++++++++++++++++++++++++++++++ include/hw/mcb/mcb.h | 104 ++++++++++++++++++++++++++++ 5 files changed, 287 insertions(+) create mode 100644 hw/mcb/Makefile.objs create mode 100644 hw/mcb/mcb.c create mode 100644 include/hw/mcb/mcb.h
default-configs/pci.mak +1 -0
@@ -46,3 +46,4 @@ CONFIG_VGA=y CONFIG_VGA_PCI=y CONFIG_IVSHMEM_DEVICE=$(CONFIG_IVSHMEM) CONFIG_ROCKER=y +CONFIG_MCB=y
hw/Makefile.objs +1 -0
@@ -17,6 +17,7 @@ devices-dirs-$(CONFIG_IPACK) += ipack/ devices-dirs-$(CONFIG_IPMI) += ipmi/ devices-dirs-$(CONFIG_SOFTMMU) += isa/ devices-dirs-$(CONFIG_SOFTMMU) += misc/ +devices-dirs-$(CONFIG_MCB) += mcb/ devices-dirs-$(CONFIG_SOFTMMU) += net/ devices-dirs-$(CONFIG_SOFTMMU) += rdma/ devices-dirs-$(CONFIG_SOFTMMU) += nvram/
hw/mcb/Makefile.objs new file +1 -0
@@ -0,0 +1 @@ +common-obj-$(CONFIG_MCB) += mcb.o
hw/mcb/mcb.c new file +180 -0
180 lines not on this page · raw message
include/hw/mcb/mcb.h new file +104 -0
104 lines not on this page · raw message
Signature · 1 line
2.16.4
PATCH v2 2/4 Add MEN Chameleon Bus via PCI carrier
In reply to Johannes Thumshirn--- hw/mcb/Makefile.objs | 1 + hw/mcb/mcb-pci.c | 305 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 306 insertions(+) create mode 100644 hw/mcb/mcb-pci.c
hw/mcb/Makefile.objs +1 -0
@@ -1 +1,2 @@ common-obj-$(CONFIG_MCB) += mcb.o +common-obj-$(CONFIG_MCB) += mcb-pci.o
hw/mcb/mcb-pci.c new file +305 -0
305 lines not on this page · raw message
Signature · 1 line
2.16.4
PATCH v2 3/4 serial-mcb: Add serial via MEN chameleon bus
In reply to Johannes ThumshirnAdd MEN z125 UART over MEN Chameleon Bus emulation.
--- hw/char/Makefile.objs | 1 + hw/char/serial-mcb.c | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 hw/char/serial-mcb.c
hw/char/Makefile.objs +1 -0
@@ -6,6 +6,7 @@ common-obj-$(CONFIG_PL011) += pl011.o common-obj-$(CONFIG_SERIAL) += serial.o common-obj-$(CONFIG_SERIAL_ISA) += serial-isa.o common-obj-$(CONFIG_SERIAL_PCI) += serial-pci.o +common-obj-$(CONFIG_MCB) += serial-mcb.o common-obj-$(CONFIG_VIRTIO_SERIAL) += virtio-console.o common-obj-$(CONFIG_XILINX) += xilinx_uartlite.o common-obj-$(CONFIG_XEN) += xen_console.o
hw/char/serial-mcb.c new file +100 -0
100 lines not on this page · raw message
Signature · 1 line
2.16.4
PATCH v2 4/4 wdt_z069: Add support for MEN 16z069 Watchdog
In reply to Johannes ThumshirnAdd 16z069 Watchdog over MEN Chameleon BUS emulation.
--- hw/watchdog/Makefile.objs | 1 + hw/watchdog/wdt_z069.c | 215 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 216 insertions(+) create mode 100644 hw/watchdog/wdt_z069.c
hw/watchdog/Makefile.objs +1 -0
@@ -3,3 +3,4 @@ common-obj-$(CONFIG_WDT_IB6300ESB) += wdt_i6300esb.o common-obj-$(CONFIG_WDT_IB700) += wdt_ib700.o common-obj-$(CONFIG_WDT_DIAG288) += wdt_diag288.o common-obj-$(CONFIG_ASPEED_SOC) += wdt_aspeed.o +common-obj-$(CONFIG_MCB) += wdt_z069.o
hw/watchdog/wdt_z069.c new file +215 -0
215 lines not on this page · raw message
Signature · 1 line
2.16.4
Quoted 5 lines · Johannes Thumshirn
This series adds support for emulating FPGAs by Men Mikroelektronik Nürnberg and expose the FPGA itself as a bus. The IP-Cores implemented in the FPGA are represented as devices hanging off that bus. This is the same aproach that is used in the Linux kernel as well for these devices.
Quoted 7 lines
The main intention for this series is to have a test-bed for Linux Kernel patches targeting the bus and/or sub-devices of it for people who do not have access the hardware.
Changes since v1:
* Updated License comments of the files (Peter Maydell)
* Added <public>/<private> annotations (Philippe Mathieu-Daudé)
Ping?
Signature · 6 lines
Johannes Thumshirn Storage [email protected] +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850