linux/drivers/gpu/drm/vboxvideo/hgsmi_defs.h

/* SPDX-License-Identifier: MIT */
/* Copyright (C) 2006-2017 Oracle Corporation */

#ifndef __HGSMI_DEFS_H__
#define __HGSMI_DEFS_H__

/* Buffer sequence type mask. */
#define HGSMI_BUFFER_HEADER_F_SEQ_MASK
/* Single buffer, not a part of a sequence. */
#define HGSMI_BUFFER_HEADER_F_SEQ_SINGLE
/* The first buffer in a sequence. */
#define HGSMI_BUFFER_HEADER_F_SEQ_START
/* A middle buffer in a sequence. */
#define HGSMI_BUFFER_HEADER_F_SEQ_CONTINUE
/* The last buffer in a sequence. */
#define HGSMI_BUFFER_HEADER_F_SEQ_END

/* 16 bytes buffer header. */
struct hgsmi_buffer_header {} __packed;

/* 8 bytes buffer tail. */
struct hgsmi_buffer_tail {} __packed;

/*
 * The size of the array of channels. Array indexes are u8.
 * Note: the value must not be changed.
 */
#define HGSMI_NUMBER_OF_CHANNELS

#endif