diff options
author | Ninad Palsule <ninad@linux.ibm.com> | 2024-01-26 04:49:48 -0600 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2024-02-01 08:13:30 +0100 |
commit | f4de3ca160c897ed3157ab8f0ad33ed93fe4bfe0 (patch) | |
tree | a88fd28462da4a6092791f7102ad583e458ab87b /hw/fsi | |
parent | ca782334cb821a84d701133a6421516d264cf0d3 (diff) | |
download | qemu-f4de3ca160c897ed3157ab8f0ad33ed93fe4bfe0.zip qemu-f4de3ca160c897ed3157ab8f0ad33ed93fe4bfe0.tar.gz qemu-f4de3ca160c897ed3157ab8f0ad33ed93fe4bfe0.tar.bz2 |
hw/fsi: Introduce IBM's FSI Bus
This is a part of patchset where FSI bus is introduced.
The FSI bus is a simple bus where FSI master is attached.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
[ clg: - removed include/hw/fsi/engine-scratchpad.h and
hw/fsi/engine-scratchpad.c
- dropped FSI_SCRATCHPAD
- included FSIBus definition
- dropped hw/fsi/trace-events changes ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/fsi')
-rw-r--r-- | hw/fsi/fsi.c | 22 | ||||
-rw-r--r-- | hw/fsi/meson.build | 2 |
2 files changed, 23 insertions, 1 deletions
diff --git a/hw/fsi/fsi.c b/hw/fsi/fsi.c new file mode 100644 index 0000000..60cb03f --- /dev/null +++ b/hw/fsi/fsi.c @@ -0,0 +1,22 @@ +/* + * SPDX-License-Identifier: GPL-2.0-or-later + * Copyright (C) 2024 IBM Corp. + * + * IBM Flexible Service Interface + */ +#include "qemu/osdep.h" + +#include "hw/fsi/fsi.h" + +static const TypeInfo fsi_bus_info = { + .name = TYPE_FSI_BUS, + .parent = TYPE_BUS, + .instance_size = sizeof(FSIBus), +}; + +static void fsi_bus_register_types(void) +{ + type_register_static(&fsi_bus_info); +} + +type_init(fsi_bus_register_types); diff --git a/hw/fsi/meson.build b/hw/fsi/meson.build index 93ba19d..574f5f9 100644 --- a/hw/fsi/meson.build +++ b/hw/fsi/meson.build @@ -1 +1 @@ -system_ss.add(when: 'CONFIG_FSI', if_true: files('lbus.c')) +system_ss.add(when: 'CONFIG_FSI', if_true: files('lbus.c','fsi.c')) |