/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2000, 2001, 2002 Broadcom Corporation
*/ /* * Broadcom Common Firmware Environment (CFE) * * This file contains declarations for doing callbacks to * cfe from an application. It should be the only header * needed by the application to use this library * * Authors: Mitch Lichtenberg, Chris Demetriou
*/ #ifndef CFE_API_H #define CFE_API_H
typedefstruct {
int64_t fwi_version; /* major, minor, eco version */
int64_t fwi_totalmem; /* total installed mem */
int64_t fwi_flags; /* various flags */
int64_t fwi_boardid; /* board ID */
int64_t fwi_bootarea_va; /* VA of boot area */
int64_t fwi_bootarea_pa; /* PA of boot area */
int64_t fwi_bootarea_size; /* size of boot area */
} cfe_fwinfo_t;
/* * Defines and prototypes for functions which take no arguments.
*/
int64_t cfe_getticks(void);
/* * Defines and prototypes for the rest of the functions.
*/ int cfe_close(int handle); int cfe_cpu_start(int cpu, void (*fn) (void), long sp, long gp, long a1); int cfe_cpu_stop(int cpu); int cfe_enumenv(int idx, char *name, int namelen, char *val, int vallen); int cfe_enummem(int idx, int flags, uint64_t * start, uint64_t * length,
uint64_t * type); int cfe_exit(int warm, int status); int cfe_flushcache(int flg); int cfe_getdevinfo(char *name); int cfe_getenv(char *name, char *dest, int destlen); int cfe_getfwinfo(cfe_fwinfo_t * info); int cfe_getstdhandle(int flg); int cfe_init(uint64_t handle, uint64_t ept); int cfe_inpstat(int handle); int cfe_ioctl(int handle, unsignedint ioctlnum, unsignedchar *buffer, int length, int *retlen, uint64_t offset); int cfe_open(char *name); int cfe_read(int handle, unsignedchar *buffer, int length); int cfe_readblk(int handle, int64_t offset, unsignedchar *buffer, int length); int cfe_setenv(char *name, char *val); int cfe_write(int handle, constchar *buffer, int length); int cfe_writeblk(int handle, int64_t offset, constchar *buffer, int length); externunsignedlong cfe_seal;
__printf(1, 2) void cfe_die(char *fmt, ...);
#endif/* CFE_API_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.