mirror of https://gitlab.com/qemu-project/qemu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
780 B
C
35 lines
780 B
C
/*
|
|
* Xilinx CFI interface
|
|
*
|
|
* Copyright (C) 2023, Advanced Micro Devices, Inc.
|
|
*
|
|
* Written by Francisco Iglesias <francisco.iglesias@amd.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
#include "qemu/osdep.h"
|
|
#include "hw/misc/xlnx-cfi-if.h"
|
|
|
|
void xlnx_cfi_transfer_packet(XlnxCfiIf *cfi_if, XlnxCfiPacket *pkt)
|
|
{
|
|
XlnxCfiIfClass *xcic = XLNX_CFI_IF_GET_CLASS(cfi_if);
|
|
|
|
if (xcic->cfi_transfer_packet) {
|
|
xcic->cfi_transfer_packet(cfi_if, pkt);
|
|
}
|
|
}
|
|
|
|
static const TypeInfo xlnx_cfi_if_info = {
|
|
.name = TYPE_XLNX_CFI_IF,
|
|
.parent = TYPE_INTERFACE,
|
|
.class_size = sizeof(XlnxCfiIfClass),
|
|
};
|
|
|
|
static void xlnx_cfi_if_register_types(void)
|
|
{
|
|
type_register_static(&xlnx_cfi_if_info);
|
|
}
|
|
|
|
type_init(xlnx_cfi_if_register_types)
|
|
|