mb/google/brya: Create rull variant
[coreboot2.git] / src / drivers / camera / cros_camera.h
blobf69e77d3e5086be23ef46e6e99897dfa080f6aab
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __VENDORCODE_GOOGLE_CHROMEOS_CAMERA_H
4 #define __VENDORCODE_GOOGLE_CHROMEOS_CAMERA_H
6 #include <stdint.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 */
14 uint16_t crc16;
15 uint8_t version;
16 uint8_t size;
17 uint16_t data_format;
18 uint16_t module_pid;
19 uint8_t module_vid[2];
20 uint8_t sensor_vid[2];
21 uint16_t sensor_pid;
24 /* Returns 0 on success, non-zero on errors. */
25 int check_cros_camera_info(const struct cros_camera_info *info);
27 #endif