Lines Matching refs:sprom
525 static int ssb_pcmcia_sprom_read_all(struct ssb_bus *bus, u16 *sprom) in ssb_pcmcia_sprom_read_all() argument
530 err = ssb_pcmcia_sprom_read(bus, i, &sprom[i]); in ssb_pcmcia_sprom_read_all()
539 static int ssb_pcmcia_sprom_write_all(struct ssb_bus *bus, const u16 *sprom) in ssb_pcmcia_sprom_write_all() argument
562 err = ssb_pcmcia_sprom_write(bus, i, sprom[i]); in ssb_pcmcia_sprom_write_all()
583 static int ssb_pcmcia_sprom_check_crc(const u16 *sprom, size_t size) in ssb_pcmcia_sprom_check_crc() argument
600 struct ssb_sprom *sprom = priv; in ssb_pcmcia_get_mac() local
608 memcpy(sprom->il0mac, &tuple->TupleData[2], ETH_ALEN); in ssb_pcmcia_get_mac()
617 struct ssb_sprom *sprom = &iv->sprom; in ssb_pcmcia_do_get_invariants() local
633 sprom->board_rev = tuple->TupleData[1]; in ssb_pcmcia_do_get_invariants()
639 sprom->pa0b0 = tuple->TupleData[1] | in ssb_pcmcia_do_get_invariants()
641 sprom->pa0b1 = tuple->TupleData[3] | in ssb_pcmcia_do_get_invariants()
643 sprom->pa0b2 = tuple->TupleData[5] | in ssb_pcmcia_do_get_invariants()
645 sprom->itssi_a = tuple->TupleData[7]; in ssb_pcmcia_do_get_invariants()
646 sprom->itssi_bg = tuple->TupleData[7]; in ssb_pcmcia_do_get_invariants()
647 sprom->maxpwr_a = tuple->TupleData[8]; in ssb_pcmcia_do_get_invariants()
648 sprom->maxpwr_bg = tuple->TupleData[8]; in ssb_pcmcia_do_get_invariants()
656 sprom->country_code = tuple->TupleData[1]; in ssb_pcmcia_do_get_invariants()
661 sprom->ant_available_a = tuple->TupleData[1]; in ssb_pcmcia_do_get_invariants()
662 sprom->ant_available_bg = tuple->TupleData[1]; in ssb_pcmcia_do_get_invariants()
667 sprom->antenna_gain.a0 = tuple->TupleData[1]; in ssb_pcmcia_do_get_invariants()
668 sprom->antenna_gain.a1 = tuple->TupleData[1]; in ssb_pcmcia_do_get_invariants()
669 sprom->antenna_gain.a2 = tuple->TupleData[1]; in ssb_pcmcia_do_get_invariants()
670 sprom->antenna_gain.a3 = tuple->TupleData[1]; in ssb_pcmcia_do_get_invariants()
676 sprom->boardflags_lo = tuple->TupleData[1] | in ssb_pcmcia_do_get_invariants()
682 sprom->gpio0 = tuple->TupleData[1]; in ssb_pcmcia_do_get_invariants()
683 sprom->gpio1 = tuple->TupleData[2]; in ssb_pcmcia_do_get_invariants()
684 sprom->gpio2 = tuple->TupleData[3]; in ssb_pcmcia_do_get_invariants()
685 sprom->gpio3 = tuple->TupleData[4]; in ssb_pcmcia_do_get_invariants()
700 struct ssb_sprom *sprom = &iv->sprom; in ssb_pcmcia_get_invariants() local
703 memset(sprom, 0xFF, sizeof(*sprom)); in ssb_pcmcia_get_invariants()
704 sprom->revision = 1; in ssb_pcmcia_get_invariants()
705 sprom->boardflags_lo = 0; in ssb_pcmcia_get_invariants()
706 sprom->boardflags_hi = 0; in ssb_pcmcia_get_invariants()
710 ssb_pcmcia_get_mac, sprom); in ssb_pcmcia_get_invariants()