GNU Linux-libre 5.10.153-gnu1
[releases.git] / drivers / staging / vc04_services / vchiq-mmal / mmal-msg-common.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Broadcom BM2835 V4L2 driver
4  *
5  * Copyright © 2013 Raspberry Pi (Trading) Ltd.
6  *
7  * Authors: Vincent Sanders @ Collabora
8  *          Dave Stevenson @ Broadcom
9  *              (now dave.stevenson@raspberrypi.org)
10  *          Simon Mellor @ Broadcom
11  *          Luke Diamand @ Broadcom
12  */
13
14 #ifndef MMAL_MSG_COMMON_H
15 #define MMAL_MSG_COMMON_H
16
17 enum mmal_msg_status {
18         MMAL_MSG_STATUS_SUCCESS = 0, /**< Success */
19         MMAL_MSG_STATUS_ENOMEM,      /**< Out of memory */
20         MMAL_MSG_STATUS_ENOSPC,      /**< Out of resources other than memory */
21         MMAL_MSG_STATUS_EINVAL,      /**< Argument is invalid */
22         MMAL_MSG_STATUS_ENOSYS,      /**< Function not implemented */
23         MMAL_MSG_STATUS_ENOENT,      /**< No such file or directory */
24         MMAL_MSG_STATUS_ENXIO,       /**< No such device or address */
25         MMAL_MSG_STATUS_EIO,         /**< I/O error */
26         MMAL_MSG_STATUS_ESPIPE,      /**< Illegal seek */
27         MMAL_MSG_STATUS_ECORRUPT,    /**< Data is corrupt \attention */
28         MMAL_MSG_STATUS_ENOTREADY,   /**< Component is not ready */
29         MMAL_MSG_STATUS_ECONFIG,     /**< Component is not configured */
30         MMAL_MSG_STATUS_EISCONN,     /**< Port is already connected */
31         MMAL_MSG_STATUS_ENOTCONN,    /**< Port is disconnected */
32         MMAL_MSG_STATUS_EAGAIN,      /**< Resource temporarily unavailable. */
33         MMAL_MSG_STATUS_EFAULT,      /**< Bad address */
34 };
35
36 struct mmal_rect {
37         s32 x;      /**< x coordinate (from left) */
38         s32 y;      /**< y coordinate (from top) */
39         s32 width;  /**< width */
40         s32 height; /**< height */
41 };
42
43 struct mmal_rational {
44         s32 num;    /**< Numerator */
45         s32 den;    /**< Denominator */
46 };
47
48 #endif /* MMAL_MSG_COMMON_H */