Path: blob/next/external/cache/sources/wl/include/bcmsrom.h
18117 views
/*1* Misc useful routines to access NIC local SROM/OTP .2*3* $Copyright Open Broadcom Corporation$4*5* $Id: bcmsrom.h 241182 2011-02-17 21:50:03Z gmo $6*/78#ifndef _bcmsrom_h_9#define _bcmsrom_h_1011#include <bcmsrom_fmt.h>1213/* Prototypes */14extern int srom_var_init(si_t *sih, uint bus, void *curmap, osl_t *osh,15char **vars, uint *count);16extern void srom_var_deinit(si_t *sih);1718extern int srom_read(si_t *sih, uint bus, void *curmap, osl_t *osh,19uint byteoff, uint nbytes, uint16 *buf,20bool check_crc);2122extern int srom_write(si_t *sih, uint bus, void *curmap, osl_t *osh,23uint byteoff, uint nbytes, uint16 *buf);2425extern int srom_otp_cisrwvar(si_t *sih, osl_t *osh, char *vars, int *count);26extern int srom_otp_write_region_crc(si_t *sih, uint nbytes, uint16* buf16, bool write);2728/* parse standard PCMCIA cis, normally used by SB/PCMCIA/SDIO/SPI/OTP29* and extract from it into name=value pairs30*/31extern int srom_parsecis(osl_t *osh, uint8 **pcis, uint ciscnt,32char **vars, uint *count);333435#endif /* _bcmsrom_h_ */363738