1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __VENDORCODE_GOOGLE_CHROMEOS_CAMERA_H
4 #define __VENDORCODE_GOOGLE_CHROMEOS_CAMERA_H
8 #define CROS_CAMERA_INFO_MAGIC "CrOS"
9 #define CROS_CAMERA_INFO_VERSION 1
10 #define CROS_CAMERA_INFO_SIZE_MIN 0x0a
12 struct cros_camera_info
{
13 uint8_t magic
[4]; /* CROS_CAMERA_INFO_MAGIC */
19 uint8_t module_vid
[2];
20 uint8_t sensor_vid
[2];
24 /* Returns 0 on success, non-zero on errors. */
25 int check_cros_camera_info(const struct cros_camera_info
*info
);