Lines Matching refs:srom

140 static void _initvars_srom_pci(uint8 sromrev, uint16 *srom, uint off, varbuf_t *b);
1161 volatile uint16 *srom; local
1163 srom = (volatile uint16 *)srom_offset(sih, curmap);
1164 if (srom == NULL)
1167 if (sprom_read_pci(osh, sih, srom, off, buf, nw, check_crc))
1488 volatile uint16 *srom = NULL; local
1519 srom = (volatile uint16 *)((volatile uint8 *)ccregs + CC_SROM_OTP);
1522 srom = (volatile uint16 *)
1540 W_REG(osh, &srom[i], new[i]);
1615 volatile uint16 *srom = NULL; local
1646 srom = (volatile uint16 *)((volatile uint8 *)ccregs + CC_SROM_OTP);
1649 srom = (volatile uint16 *)
1665 W_REG(osh, &srom[byteoff/2], value);
3293 uint16 srom[35]; local
3297 bcopy(&cis[i + 1], srom, sizeof(srom));
3298 _initvars_srom_pci(srev, srom, SROM3_SWRGN_OFF, &b);
4991 BCMATTACHFN(_initvars_srom_pci)(uint8 sromrev, uint16 *srom, uint off, varbuf_t *b)
5050 ea.octet[0] = (srom[srv->off - off] >> 8) & 0xff;
5051 ea.octet[1] = srom[srv->off - off] & 0xff;
5052 ea.octet[2] = (srom[srv->off + 1 - off] >> 8) & 0xff;
5053 ea.octet[3] = srom[srv->off + 1 - off] & 0xff;
5054 ea.octet[4] = (srom[srv->off + 2 - off] >> 8) & 0xff;
5055 ea.octet[5] = srom[srv->off + 2 - off] & 0xff;
5071 w = srom[srv->off - off];
5085 w = srom[srv->off - off];
5205 w = srom[pb + srv->off - off];
5311 BCMATTACHFN(_initvars_srom_pci_caldata)(si_t *sih, uint16 *srom, uint32 sromrev)
5323 memcpy(srom, caldata_array, caldata_size);
5341 uint16 *srom; local
5361 srom = MALLOC_NOPERSIST(osh, SROM_MAX);
5362 ASSERT(srom != NULL);
5363 if (!srom)
5368 err = sprom_read_pci(osh, sih, sromwindow, 0, srom, SROM_SIGN_MINWORDS + 1, FALSE);
5370 if (srom[SROM18_SIGN] == SROM18_SIGNATURE) {
5372 0, srom, SROM18_WORDS, TRUE);
5373 sromrev = srom[SROM18_CRCREV] & 0xff;
5374 } else if (srom[SROM17_SIGN] == SROM17_SIGNATURE) {
5376 0, srom, SROM17_WORDS, TRUE);
5377 sromrev = srom[SROM17_CRCREV] & 0xff;
5378 } else if (srom[SROM16_SIGN] == SROM16_SIGNATURE) {
5380 0, srom, SROM16_WORDS, TRUE);
5381 sromrev = srom[SROM16_CRCREV] & 0xff;
5382 } else if (srom[SROM15_SIGN] == SROM15_SIGNATURE) { /* srom 15 */
5384 0, srom, SROM15_WORDS, TRUE);
5385 sromrev = srom[SROM15_CRCREV] & 0xff;
5386 } else if (srom[SROM11_SIGN] == SROM13_SIGNATURE) {
5388 0, srom, SROM13_WORDS, TRUE);
5389 sromrev = srom[SROM13_CRCREV] & 0xff;
5390 } else if (srom[SROM11_SIGN] == SROM12_SIGNATURE) {
5392 0, srom, SROM12_WORDS, TRUE);
5393 sromrev = srom[SROM12_CRCREV] & 0xff;
5394 } else if (srom[SROM11_SIGN] == SROM11_SIGNATURE) {
5396 0, srom, SROM11_WORDS, TRUE);
5397 sromrev = srom[SROM11_CRCREV] & 0xff;
5398 } else if ((srom[SROM4_SIGN] == SROM4_SIGNATURE) || /* srom 4 */
5399 (srom[SROM8_SIGN] == SROM4_SIGNATURE)) { /* srom 8,9 */
5401 0, srom, SROM4_WORDS, TRUE);
5402 sromrev = srom[SROM4_CRCREV] & 0xff;
5405 srom, SROM_WORDS, TRUE);
5409 sromrev = srom[SROM_CRCREV] & 0xff;
5424 else if ((err = otp_read_pci(osh, sih, srom, SROM_MAX)) == 0) {
5427 if (srom[SROM13_SIGN] == SROM13_SIGNATURE)
5428 sromrev = srom[SROM13_CRCREV] & 0xff;
5429 else if (srom[SROM12_SIGN] == SROM12_SIGNATURE)
5430 sromrev = srom[SROM12_CRCREV] & 0xff;
5431 else if (srom[SROM11_SIGN] == SROM11_SIGNATURE)
5432 sromrev = srom[SROM11_CRCREV] & 0xff;
5433 else if (srom[SROM10_SIGN] == SROM10_SIGNATURE)
5434 sromrev = srom[SROM10_CRCREV] & 0xff;
5436 sromrev = srom[SROM4_CRCREV] & 0xff;
5483 if ((si_is_sprom_available(sih) && srom[0] == 0xffff) ||
5615 _initvars_srom_pci(sromrev, srom, 0, &b);
5629 int caldata_wordoffset = srom[SROM18_CALDATA_OFFSET_LOC] / 2;
5633 memcpy(caldata_array, srom + caldata_wordoffset, SROM18_CALDATA_WORDS * 2);
5637 int caldata_wordoffset = srom[SROM16_CALDATA_OFFSET_LOC] / 2;
5641 memcpy(caldata_array, srom + caldata_wordoffset, SROM_CALDATA_WORDS * 2);
5656 memcpy(caldata_array, srom + cal_wordoffset, caldata_size);
5667 MFREE(osh, srom, SROM_MAX);
5985 uint16 *srom; local
5992 if ((srom = (uint16 *)MALLOC(osh, sz)) == NULL)
5998 rc = otp_read_region(sih, OTP_SW_RGN, srom, &otpsz);
6000 body = (uint8 *)srom;
6004 rc = srom_read(sih, SI_BUS, curmap, osh, 0, sz, srom, TRUE);
6006 body = (uint8 *)srom + SBSDIO_SPROM_CIS_OFFSET;
6018 htol16_buf((uint8 *)srom, sz);
6023 MFREE(osh, srom, sz); /* Clean up */
6353 BCMATTACHFN(srom_get_caldata)(si_t *sih, uint16 *srom)
6359 memcpy(srom, caldata_array, SROM18_CALDATA_WORDS * 2);
6361 memcpy(srom, caldata_array, SROM_CALDATA_WORDS * 2);