Lines Matching +full:board +full:- +full:related
2 * Sonics Silicon Backplane SoC host related functions.
18 struct ssb_bus *bus = dev->bus; in ssb_host_soc_read8()
20 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_read8()
21 return readb(bus->mmio + offset); in ssb_host_soc_read8()
26 struct ssb_bus *bus = dev->bus; in ssb_host_soc_read16()
28 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_read16()
29 return readw(bus->mmio + offset); in ssb_host_soc_read16()
34 struct ssb_bus *bus = dev->bus; in ssb_host_soc_read32()
36 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_read32()
37 return readl(bus->mmio + offset); in ssb_host_soc_read32()
44 struct ssb_bus *bus = dev->bus; in ssb_host_soc_block_read()
47 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_block_read()
48 addr = bus->mmio + offset; in ssb_host_soc_block_read()
57 count--; in ssb_host_soc_block_read()
68 count -= 2; in ssb_host_soc_block_read()
79 count -= 4; in ssb_host_soc_block_read()
91 struct ssb_bus *bus = dev->bus; in ssb_host_soc_write8()
93 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_write8()
94 writeb(value, bus->mmio + offset); in ssb_host_soc_write8()
99 struct ssb_bus *bus = dev->bus; in ssb_host_soc_write16()
101 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_write16()
102 writew(value, bus->mmio + offset); in ssb_host_soc_write16()
107 struct ssb_bus *bus = dev->bus; in ssb_host_soc_write32()
109 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_write32()
110 writel(value, bus->mmio + offset); in ssb_host_soc_write32()
117 struct ssb_bus *bus = dev->bus; in ssb_host_soc_block_write()
120 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_block_write()
121 addr = bus->mmio + offset; in ssb_host_soc_block_write()
130 count--; in ssb_host_soc_block_write()
141 count -= 2; in ssb_host_soc_block_write()
152 count -= 4; in ssb_host_soc_block_write()
162 /* Ops for the plain SSB bus without a host-device (no PCI or PCMCIA). */
183 memset(&iv->boardinfo, 0, sizeof(struct ssb_boardinfo)); in ssb_host_soc_get_invariants()
187 err = kstrtou16(strim(buf), 0, &iv->boardinfo.vendor); in ssb_host_soc_get_invariants()
189 pr_warn("Couldn't parse nvram board vendor entry with value \"%s\"\n", in ssb_host_soc_get_invariants()
192 if (!iv->boardinfo.vendor) in ssb_host_soc_get_invariants()
193 iv->boardinfo.vendor = SSB_BOARDVENDOR_BCM; in ssb_host_soc_get_invariants()
197 err = kstrtou16(strim(buf), 0, &iv->boardinfo.type); in ssb_host_soc_get_invariants()
199 pr_warn("Couldn't parse nvram board type entry with value \"%s\"\n", in ssb_host_soc_get_invariants()
203 memset(&iv->sprom, 0, sizeof(struct ssb_sprom)); in ssb_host_soc_get_invariants()
204 ssb_fill_sprom_with_fallback(bus, &iv->sprom); in ssb_host_soc_get_invariants()
207 iv->has_cardbus_slot = !!simple_strtoul(buf, NULL, 10); in ssb_host_soc_get_invariants()