coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cros_camera.h File Reference
#include <stdint.h>
Include dependency graph for cros_camera.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cros_camera_info
 

Macros

#define CROS_CAMERA_INFO_MAGIC   "CrOS"
 
#define CROS_CAMERA_INFO_VERSION   1
 
#define CROS_CAMERA_INFO_SIZE_MIN   0x0a
 

Functions

int check_cros_camera_info (const struct cros_camera_info *info)
 

Macro Definition Documentation

◆ CROS_CAMERA_INFO_MAGIC

#define CROS_CAMERA_INFO_MAGIC   "CrOS"

Definition at line 8 of file cros_camera.h.

◆ CROS_CAMERA_INFO_SIZE_MIN

#define CROS_CAMERA_INFO_SIZE_MIN   0x0a

Definition at line 10 of file cros_camera.h.

◆ CROS_CAMERA_INFO_VERSION

#define CROS_CAMERA_INFO_VERSION   1

Definition at line 9 of file cros_camera.h.

Function Documentation

◆ check_cros_camera_info()

int check_cros_camera_info ( const struct cros_camera_info info)

Definition at line 9 of file cros_camera.c.

References BIOS_ERR, cros_camera_info::crc16, crc16_byte(), CROS_CAMERA_INFO_MAGIC, CROS_CAMERA_INFO_SIZE_MIN, CROS_CAMERA_INFO_VERSION, info, memcmp(), and printk.

Referenced by wfc_id().

Here is the call graph for this function:
Here is the caller graph for this function: