xref: /openbmc/qemu/include/hw/fsi/fsi.h (revision f5e80be3)
1 /*
2  * SPDX-License-Identifier: GPL-2.0-or-later
3  * Copyright (C) 2023 IBM Corp.
4  *
5  * IBM Flexible Service Interface
6  */
7 #ifndef FSI_FSI_H
8 #define FSI_FSI_H
9 
10 #include "hw/qdev-core.h"
11 #include "qemu/bitops.h"
12 
13 /* Bitwise operations at the word level. */
14 #define BE_BIT(x)           BIT(31 - (x))
15 #define BE_GENMASK(hb, lb)  MAKE_64BIT_MASK((lb), ((hb) - (lb) + 1))
16 
17 #define TYPE_FSI_BUS "fsi.bus"
18 OBJECT_DECLARE_SIMPLE_TYPE(FSIBus, FSI_BUS)
19 
20 typedef struct FSIBus {
21     BusState bus;
22 } FSIBus;
23 
24 #endif
25