1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
4 * Xen para-virtual sound device
6 * Copyright (C) 2016-2018 EPAM Systems Inc.
8 * Author: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
11 #ifndef __XEN_SND_FRONT_SHBUF_H
12 #define __XEN_SND_FRONT_SHBUF_H
14 #include <xen/grant_table.h>
16 #include "xen_snd_front_evtchnl.h"
18 struct xen_snd_front_shbuf {
26 grant_ref_t xen_snd_front_shbuf_get_dir_start(struct xen_snd_front_shbuf *buf);
28 int xen_snd_front_shbuf_alloc(struct xenbus_device *xb_dev,
29 struct xen_snd_front_shbuf *buf,
30 unsigned int buffer_sz);
32 void xen_snd_front_shbuf_clear(struct xen_snd_front_shbuf *buf);
34 void xen_snd_front_shbuf_free(struct xen_snd_front_shbuf *buf);
36 #endif /* __XEN_SND_FRONT_SHBUF_H */