1 /* 2 * Broadcom BM2835 V4L2 driver 3 * 4 * Copyright © 2013 Raspberry Pi (Trading) Ltd. 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file COPYING in the main directory of this archive 8 * for more details. 9 * 10 * Authors: Vincent Sanders <vincent.sanders@collabora.co.uk> 11 * Dave Stevenson <dsteve@broadcom.com> 12 * Simon Mellor <simellor@broadcom.com> 13 * Luke Diamand <luked@broadcom.com> 14 */ 15 16 #ifndef MMAL_MSG_COMMON_H 17 #define MMAL_MSG_COMMON_H 18 19 enum mmal_msg_status { 20 MMAL_MSG_STATUS_SUCCESS = 0, /**< Success */ 21 MMAL_MSG_STATUS_ENOMEM, /**< Out of memory */ 22 MMAL_MSG_STATUS_ENOSPC, /**< Out of resources other than memory */ 23 MMAL_MSG_STATUS_EINVAL, /**< Argument is invalid */ 24 MMAL_MSG_STATUS_ENOSYS, /**< Function not implemented */ 25 MMAL_MSG_STATUS_ENOENT, /**< No such file or directory */ 26 MMAL_MSG_STATUS_ENXIO, /**< No such device or address */ 27 MMAL_MSG_STATUS_EIO, /**< I/O error */ 28 MMAL_MSG_STATUS_ESPIPE, /**< Illegal seek */ 29 MMAL_MSG_STATUS_ECORRUPT, /**< Data is corrupt \attention */ 30 MMAL_MSG_STATUS_ENOTREADY, /**< Component is not ready */ 31 MMAL_MSG_STATUS_ECONFIG, /**< Component is not configured */ 32 MMAL_MSG_STATUS_EISCONN, /**< Port is already connected */ 33 MMAL_MSG_STATUS_ENOTCONN, /**< Port is disconnected */ 34 MMAL_MSG_STATUS_EAGAIN, /**< Resource temporarily unavailable. */ 35 MMAL_MSG_STATUS_EFAULT, /**< Bad address */ 36 }; 37 38 struct mmal_rect { 39 s32 x; /**< x coordinate (from left) */ 40 s32 y; /**< y coordinate (from top) */ 41 s32 width; /**< width */ 42 s32 height; /**< height */ 43 }; 44 45 struct mmal_rational { 46 s32 num; /**< Numerator */ 47 s32 den; /**< Denominator */ 48 }; 49 50 #endif /* MMAL_MSG_COMMON_H */ 51