1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Broadcom BCM2835 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#include <linux/types.h> 18 19enum 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 38struct 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#endif /* MMAL_MSG_COMMON_H */ 46