CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/cache/sources/wl/include/bcmsrom.h
Views: 3959
1
/*
2
* Misc useful routines to access NIC local SROM/OTP .
3
*
4
* $Copyright Open Broadcom Corporation$
5
*
6
* $Id: bcmsrom.h 241182 2011-02-17 21:50:03Z gmo $
7
*/
8
9
#ifndef _bcmsrom_h_
10
#define _bcmsrom_h_
11
12
#include <bcmsrom_fmt.h>
13
14
/* Prototypes */
15
extern int srom_var_init(si_t *sih, uint bus, void *curmap, osl_t *osh,
16
char **vars, uint *count);
17
extern void srom_var_deinit(si_t *sih);
18
19
extern int srom_read(si_t *sih, uint bus, void *curmap, osl_t *osh,
20
uint byteoff, uint nbytes, uint16 *buf,
21
bool check_crc);
22
23
extern int srom_write(si_t *sih, uint bus, void *curmap, osl_t *osh,
24
uint byteoff, uint nbytes, uint16 *buf);
25
26
extern int srom_otp_cisrwvar(si_t *sih, osl_t *osh, char *vars, int *count);
27
extern int srom_otp_write_region_crc(si_t *sih, uint nbytes, uint16* buf16, bool write);
28
29
/* parse standard PCMCIA cis, normally used by SB/PCMCIA/SDIO/SPI/OTP
30
* and extract from it into name=value pairs
31
*/
32
extern int srom_parsecis(osl_t *osh, uint8 **pcis, uint ciscnt,
33
char **vars, uint *count);
34
35
36
#endif /* _bcmsrom_h_ */
37
38