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

Go to the source code of this file.

Enumerations

enum  cb_err {
  CB_SUCCESS = 0 , CB_ERR = -1 , CB_ERR_ARG = -2 , CB_CMOS_OTABLE_DISABLED = -100 ,
  CB_CMOS_LAYOUT_NOT_FOUND = -101 , CB_CMOS_OPTION_NOT_FOUND = -102 , CB_CMOS_ACCESS_ERROR = -103 , CB_CMOS_CHECKSUM_INVALID = -104 ,
  CB_KBD_CONTROLLER_FAILURE = -200 , CB_KBD_INTERFACE_FAILURE = -201 , CB_I2C_NO_DEVICE = -300 , CB_I2C_BUSY = -301 ,
  CB_I2C_PROTOCOL_ERROR = -302 , CB_I2C_TIMEOUT = -303 , CB_CBFS_IO = -400 , CB_CBFS_NOT_FOUND = -401 ,
  CB_CBFS_HASH_MISMATCH = -402 , CB_CBFS_CACHE_FULL = -403
}
 coreboot error codes More...
 

Enumeration Type Documentation

◆ cb_err

enum cb_err

coreboot error codes

Common error definitions that can be used for any function. All error values should be negative – when useful, positive values can also be used to denote success. Allocate a new group or errors every 100 values.

Enumerator
CB_SUCCESS 

Call completed successfully.

CB_ERR 

Generic error code.

CB_ERR_ARG 

Invalid argument.

CB_CMOS_OTABLE_DISABLED 

Option table disabled.

CB_CMOS_LAYOUT_NOT_FOUND 

Layout file not found.

CB_CMOS_OPTION_NOT_FOUND 

Option string not found.

CB_CMOS_ACCESS_ERROR 

CMOS access error.

CB_CMOS_CHECKSUM_INVALID 

CMOS checksum is invalid.

CB_KBD_CONTROLLER_FAILURE 
CB_KBD_INTERFACE_FAILURE 
CB_I2C_NO_DEVICE 

Device is not responding.

CB_I2C_BUSY 

Device tells it's busy.

CB_I2C_PROTOCOL_ERROR 

Data lost or spurious slave device response, try again?

CB_I2C_TIMEOUT 

Transmission timed out.

CB_CBFS_IO 

Underlying I/O error.

CB_CBFS_NOT_FOUND 

File not found in directory.

CB_CBFS_HASH_MISMATCH 

Master hash validation failed.

CB_CBFS_CACHE_FULL 

Metadata cache overflowed.

Definition at line 15 of file cb_err.h.