fsi.h (e332fdc06830ece61a844f0cff33505598518e3d) | fsi.h (f5e80be3922945c51a85aa08c4dfab0a2f3aacc5) |
---|---|
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" | 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" |
|
11 | 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 |
|
12#define TYPE_FSI_BUS "fsi.bus" 13OBJECT_DECLARE_SIMPLE_TYPE(FSIBus, FSI_BUS) 14 15typedef struct FSIBus { 16 BusState bus; 17} FSIBus; 18 19#endif | 17#define TYPE_FSI_BUS "fsi.bus" 18OBJECT_DECLARE_SIMPLE_TYPE(FSIBus, FSI_BUS) 19 20typedef struct FSIBus { 21 BusState bus; 22} FSIBus; 23 24#endif |