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
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
)