Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / hw / misc / xlnx-cfi-if.c
blobc45f05c4aacbd4e19e93f51b2c0f0664dacaf164
1 /*
2 * Xilinx CFI interface
4 * Copyright (C) 2023, Advanced Micro Devices, Inc.
6 * Written by Francisco Iglesias <francisco.iglesias@amd.com>
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10 #include "qemu/osdep.h"
11 #include "hw/misc/xlnx-cfi-if.h"
13 void xlnx_cfi_transfer_packet(XlnxCfiIf *cfi_if, XlnxCfiPacket *pkt)
15 XlnxCfiIfClass *xcic = XLNX_CFI_IF_GET_CLASS(cfi_if);
17 if (xcic->cfi_transfer_packet) {
18 xcic->cfi_transfer_packet(cfi_if, pkt);
22 static const TypeInfo xlnx_cfi_if_info = {
23 .name = TYPE_XLNX_CFI_IF,
24 .parent = TYPE_INTERFACE,
25 .class_size = sizeof(XlnxCfiIfClass),
28 static void xlnx_cfi_if_register_types(void)
30 type_register_static(&xlnx_cfi_if_info);
33 type_init(xlnx_cfi_if_register_types)