mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:17 +00:00
Separate the CCW specific virtio routines and create generic wrappers for easier reuse of existing virtio functions with non-CCW devices. Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Eric Farman <farman@linux.ibm.com> Signed-off-by: Jared Rossi <jrossi@linux.ibm.com> Message-ID: <20260309003601.242634-7-jrossi@linux.ibm.com> [thuth: Use SPDX license identifier in virtio-ccw.c] Signed-off-by: Thomas Huth <thuth@redhat.com>
25 lines
566 B
C
25 lines
566 B
C
/*
|
|
* Virtio definitions for CCW devices
|
|
*
|
|
* Copyright 2025 IBM Corp.
|
|
* Author(s): Jared Rossi <jrossi@linux.ibm.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef VIRTIO_CCW_H
|
|
#define VIRTIO_CCW_H
|
|
|
|
/* main.c */
|
|
extern SubChannelId blk_schid;
|
|
|
|
/* virtio-ccw.c */
|
|
int drain_irqs_ccw(SubChannelId schid);
|
|
bool virtio_ccw_is_supported(VDev *vdev);
|
|
int virtio_ccw_run(VDev *vdev, int vqid, VirtioCmd *cmd);
|
|
long virtio_ccw_notify(SubChannelId schid, int vq_idx, long cookie);
|
|
int virtio_ccw_setup(VDev *vdev);
|
|
int virtio_ccw_reset(VDev *vdev);
|
|
|
|
#endif
|