master
h 24 lines 566 Bytes
Raw
1 /*
2 * Virtio definitions for CCW devices
3 *
4 * Copyright 2025 IBM Corp.
5 * Author(s): Jared Rossi <jrossi@linux.ibm.com>
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9
10 #ifndef VIRTIO_CCW_H
11 #define VIRTIO_CCW_H
12
13 /* main.c */
14 extern SubChannelId blk_schid;
15
16 /* virtio-ccw.c */
17 int drain_irqs_ccw(SubChannelId schid);
18 bool virtio_ccw_is_supported(VDev *vdev);
19 int virtio_ccw_run(VDev *vdev, int vqid, VirtioCmd *cmd);
20 long virtio_ccw_notify(SubChannelId schid, int vq_idx, long cookie);
21 int virtio_ccw_setup(VDev *vdev);
22 int virtio_ccw_reset(VDev *vdev);
23
24 #endif