Home
last modified time | relevance | path

Searched refs:sih (Results 1 – 25 of 30) sorted by relevance

12

/linux-2.6.39/drivers/staging/brcm80211/include/
Dsiutils.h97 #define ISSIM_ENAB(sih) 0 argument
101 #define PMUCTL_ENAB(sih) (BCMPMUCTL) argument
103 #define PMUCTL_ENAB(sih) ((sih)->cccaps & CC_CAP_PMU) argument
108 #define CCCTL_ENAB(sih) (0) argument
109 #define CCPLL_ENAB(sih) (0) argument
111 #define CCCTL_ENAB(sih) ((sih)->cccaps & CC_CAP_PWR_CTL) argument
112 #define CCPLL_ENAB(sih) ((sih)->cccaps & CC_CAP_PLL_MASK) argument
124 extern void si_detach(si_t *sih);
125 extern bool si_pci_war16165(si_t *sih);
127 extern uint si_coreid(si_t *sih);
[all …]
Dhndpmu.h31 extern void si_pmu_init(si_t *sih);
32 extern void si_pmu_chip_init(si_t *sih);
33 extern void si_pmu_pll_init(si_t *sih, u32 xtalfreq);
34 extern void si_pmu_res_init(si_t *sih);
35 extern void si_pmu_swreg_init(si_t *sih);
37 extern u32 si_pmu_force_ilp(si_t *sih, bool force);
39 extern u32 si_pmu_si_clock(si_t *sih);
40 extern u32 si_pmu_cpu_clock(si_t *sih);
41 extern u32 si_pmu_mem_clock(si_t *sih);
42 extern u32 si_pmu_alp_clock(si_t *sih);
[all …]
Dbcmnvram.h41 extern int nvram_init(void *sih);
51 extern int nvram_reset(void *sih);
57 extern void nvram_exit(void *sih);
71 extern int nvram_resetgpio_init(void *sih);
Dbcmsrom.h23 extern int srom_var_init(si_t *sih, uint bus, void *curmap,
26 extern int srom_read(si_t *sih, uint bus, void *curmap,
Dbcmotp.h40 extern void *otp_init(si_t *sih);
41 extern int otp_read_region(si_t *sih, int region, u16 *data, uint *wlen);
Dhnddma.h151 extern struct hnddma_pub *dma_attach(char *name, si_t *sih,
204 extern uint dma_addrwidth(si_t *sih, void *dmaregs);
Dnicpci.h58 extern void *pcicore_init(si_t *sih, void *pdev, void *regs);
/linux-2.6.39/drivers/staging/brcm80211/util/
Dsiutils.c67 static char *si_devpathvar(si_t *sih, char *var, int len, const char *name);
372 struct si_pub *sih = &sii->pub; in si_doattach() local
384 sih->buscoreidx = BADIDX; in si_doattach()
391 sih->bustype = bustype; in si_doattach()
406 sih->socitype = (w & CID_TYPE_MASK) >> CID_TYPE_SHIFT; in si_doattach()
408 sih->chip = w & CID_ID_MASK; in si_doattach()
409 sih->chiprev = (w & CID_REV_MASK) >> CID_REV_SHIFT; in si_doattach()
410 sih->chippkg = (w & CID_PKG_MASK) >> CID_PKG_SHIFT; in si_doattach()
412 if ((sih->chip == BCM4329_CHIP_ID) && in si_doattach()
413 (sih->chippkg != BCM4329_289PIN_PKG_ID)) in si_doattach()
[all …]
Dhndpmu.c48 static void si_pmu1_pllinit0(si_t *sih, chipcregs_t *cc, u32 xtal);
49 static u32 si_pmu1_cpuclk0(si_t *sih, chipcregs_t *cc);
50 static u32 si_pmu1_alpclk0(si_t *sih, chipcregs_t *cc);
53 static bool si_pmu_res_depfltr_bb(si_t *sih);
54 static bool si_pmu_res_depfltr_ncb(si_t *sih);
55 static bool si_pmu_res_depfltr_paldo(si_t *sih);
56 static bool si_pmu_res_depfltr_npaldo(si_t *sih);
57 static u32 si_pmu_res_deps(si_t *sih, chipcregs_t *cc, u32 rsrcs, bool all);
58 static uint si_pmu_res_uptime(si_t *sih, chipcregs_t *cc, u8 rsrc);
59 static void si_pmu_res_masks(si_t *sih, u32 * pmin, u32 * pmax);
[all …]
Daiutils.c30 #define BCM47162_DMP() ((sih->chip == BCM47162_CHIP_ID) && \
31 (sih->chiprev == 0) && \
37 get_erom_ent(si_t *sih, u32 **eromptr, u32 mask, u32 match) in get_erom_ent() argument
72 get_asd(si_t *sih, u32 **eromptr, uint sp, uint ad, uint st, in get_asd() argument
77 asd = get_erom_ent(sih, eromptr, ER_VALID, ER_VALID); in get_asd()
87 *addrh = get_erom_ent(sih, eromptr, 0, 0); in get_asd()
93 szd = get_erom_ent(sih, eromptr, 0, 0); in get_asd()
96 *sizeh = get_erom_ent(sih, eromptr, 0, 0); in get_asd()
111 void ai_scan(si_t *sih, void *regs, uint devid) in ai_scan() argument
113 si_info_t *sii = SI_INFO(sih); in ai_scan()
[all …]
Dnicpci.c37 si_t *sih; /* System interconnect handle */ member
50 #define PCIE_PUB(sih) \ argument
51 (((sih)->bustype == PCI_BUS) && ((sih)->buscoretype == PCIE_CORE_ID))
73 #define PCIE_ASPM(sih) ((PCIE_PUB(sih)) && (((sih)->buscorerev >= 3) && ((sih)->buscorerev <= 5))) argument
82 void *pcicore_init(si_t *sih, void *pdev, void *regs) in pcicore_init() argument
86 ASSERT(sih->bustype == PCI_BUS); in pcicore_init()
95 pi->sih = sih; in pcicore_init()
98 if (sih->buscoretype == PCIE_CORE_ID) { in pcicore_init()
278 if (pi->sih->buscorerev >= 10) { in pcie_mdioop()
368 si_t *sih = pi->sih; in pcie_extendL1timer() local
[all …]
Dbcmotp.c60 typedef void *(*otp_init_t) (si_t *sih);
62 typedef int (*otp_read_region_t) (si_t *sih, int region, u16 *data,
79 si_t *sih; /* Saved sb handle */ member
219 static int ipxotp_max_rgnsz(si_t *sih, int osizew) in ipxotp_max_rgnsz() argument
223 switch (sih->chip) { in ipxotp_max_rgnsz()
244 if (oi->sih->ccrev == 21 || oi->sih->ccrev == 24 in _ipxotp_init()
245 || oi->sih->ccrev == 27) { in _ipxotp_init()
247 } else if (oi->sih->ccrev == 36) { in _ipxotp_init()
253 } else if (oi->sih->ccrev == 23 || oi->sih->ccrev >= 25) { in _ipxotp_init()
273 if ((oi->sih->chip == BCM43224_CHIP_ID) in _ipxotp_init()
[all …]
Dsiutils_priv.h21 extern void sb_scan(si_t *sih, void *regs, uint devid);
22 uint sb_coreid(si_t *sih);
23 uint sb_corerev(si_t *sih);
24 extern uint sb_corereg(si_t *sih, uint coreidx, uint regoff, uint mask,
26 extern bool sb_iscoreup(si_t *sih);
27 void *sb_setcoreidx(si_t *sih, uint coreidx);
28 extern void sb_core_reset(si_t *sih, u32 bits, u32 resetbits);
29 extern void sb_core_disable(si_t *sih, u32 bits);
Dsbutils.c64 uint sb_coreid(si_t *sih) in sb_coreid() argument
69 sii = SI_INFO(sih); in sb_coreid()
105 uint sb_corerev(si_t *sih) in sb_corerev() argument
111 sii = SI_INFO(sih); in sb_corerev()
118 bool sb_iscoreup(si_t *sih) in sb_iscoreup() argument
123 sii = SI_INFO(sih); in sb_iscoreup()
144 uint sb_corereg(si_t *sih, uint coreidx, uint regoff, uint mask, uint val) in sb_corereg() argument
153 sii = SI_INFO(sih); in sb_corereg()
292 void sb_scan(si_t *sih, void *regs, uint devid) in sb_scan() argument
298 sii = SI_INFO(sih); in sb_scan()
[all …]
Dbcmsrom.c49 #define SROM_OFFSET(sih) ((sih->ccrev > 31) ? \ argument
50 (((sih->cccaps & CC_CAP_SROM) == 0) ? NULL : \
69 static int initvars_srom_si(si_t *sih, void *curmap, char **vars, uint *count);
71 static int initvars_srom_pci(si_t *sih, void *curmap, char **vars, uint *count);
72 static int initvars_flash_si(si_t *sih, char **vars, uint *count);
78 static int sprom_read_pci(si_t *sih, u16 *sprom,
81 static int otp_read_pci(si_t *sih, u16 *buf, uint bufsz);
83 static u16 srom_cc_cmd(si_t *sih, void *ccregs, u32 cmd,
88 static int initvars_flash(si_t *sih, char **vp,
156 int srom_var_init(si_t *sih, uint bustype, void *curmap, in srom_var_init() argument
[all …]
Dhnddma.c277 struct hnddma_pub *dma_attach(char *name, si_t *sih, in dma_attach() argument
297 ASSERT(sih != NULL); in dma_attach()
299 di->dma64 = ((si_core_sflags(sih, 0, 0) & SISF_DMA64) == SISF_DMA64); in dma_attach()
335 di->pbus = ((struct si_info *)sih)->pbus; in dma_attach()
361 if (sih->bustype == PCI_BUS) { in dma_attach()
372 if ((si_coreid(sih) == SDIOD_CORE_ID) in dma_attach()
373 && ((si_corerev(sih) > 0) && (si_corerev(sih) <= 2))) in dma_attach()
375 else if ((si_coreid(sih) == I2S_CORE_ID) && in dma_attach()
376 ((si_corerev(sih) == 0) || (si_corerev(sih) == 1))) in dma_attach()
1782 uint dma_addrwidth(si_t *sih, void *dmaregs) argument
[all …]
/linux-2.6.39/drivers/mfd/
Dtwl4030-irq.c67 struct sih { struct
89 static const struct sih *sih_modules; argument
119 static const struct sih sih_modules_twl4030[6] = {
179 static const struct sih sih_modules_twl5031[8] = {
363 const struct sih *sih; in twl4030_init_sih_modules() local
376 sih = sih_modules; in twl4030_init_sih_modules()
377 for (i = 0; i < nr_sih_modules; i++, sih++) { in twl4030_init_sih_modules()
380 if (!sih->bytes_ixr) in twl4030_init_sih_modules()
384 if (sih->irq_lines <= line) in twl4030_init_sih_modules()
387 status = twl_i2c_write(sih->module, buf, in twl4030_init_sih_modules()
[all …]
/linux-2.6.39/drivers/staging/brcm80211/brcmsmac/
Dwlc_bmac.c238 ASSERT(si_iscoreup(wlc_hw->sih)); in WLBANDINITFN()
403 __func__, wlc_hw->sih->chip, in wlc_dpc()
404 wlc_hw->sih->chiprev); in wlc_dpc()
537 dma_addrwidth(wlc_hw->sih, DMAREG(wlc_hw, DMA_TX, 0)); in wlc_bmac_attach_dmapio()
552 wlc_hw->di[0] = dma_attach(name, wlc_hw->sih, in wlc_bmac_attach_dmapio()
568 wlc_hw->di[1] = dma_attach(name, wlc_hw->sih, in wlc_bmac_attach_dmapio()
580 wlc_hw->di[2] = dma_attach(name, wlc_hw->sih, in wlc_bmac_attach_dmapio()
592 wlc_hw->di[3] = dma_attach(name, wlc_hw->sih, in wlc_bmac_attach_dmapio()
669 wlc_hw->sih = si_attach((uint) device, regsva, bustype, btparam, in wlc_bmac_attach()
671 if (wlc_hw->sih == NULL) { in wlc_bmac_attach()
[all …]
Dwlc_main.h199 (si_deviceremoved(wlc->hw->sih)))
420 si_t *sih; /* SB handle (cookie for siutils calls) */ member
/linux-2.6.39/drivers/staging/brcm80211/util/nvram/
Dnvram_ro.c48 static void get_flash_nvram(si_t *sih, struct nvram_header *nvh) in get_flash_nvram() argument
107 si_t *sih; in nvram_exit() local
109 sih = (si_t *) si; in nvram_exit()
/linux-2.6.39/drivers/staging/brcm80211/brcmfmac/
Ddhd_sdio.c173 si_t *sih; /* Handle for SI calls */ member
514 if ((bus->sih->chip == BCM4329_CHIP_ID) in dhdsdio_htclk()
515 && (bus->sih->chiprev == 0)) in dhdsdio_htclk()
526 if (pendok && ((bus->sih->buscoretype == PCMCIA_CORE_ID) in dhdsdio_htclk()
527 && (bus->sih->buscorerev == 9))) { in dhdsdio_htclk()
821 if (bus->sih->chip != BCM4329_CHIP_ID in dhdsdio_bussleep()
822 && bus->sih->chip != BCM4319_CHIP_ID) { in dhdsdio_bussleep()
838 if ((bus->sih->buscoretype == PCMCIA_CORE_ID) in dhdsdio_bussleep()
839 && (bus->sih->buscorerev >= 10)) in dhdsdio_bussleep()
2274 si_sdiod_drive_strength_init(bus->sih, in dhdsdio_doiovar()
[all …]
/linux-2.6.39/drivers/staging/brcm80211/brcmsmac/phy/
Dwlc_phy_cmn.c551 sh->sih = shp->sih; in wlc_phy_shared_attach()
599 sflags = si_core_sflags(sh->sih, 0, 0); in wlc_phy_attach()
663 if (ISSIM_ENAB(pi->sh->sih)) { in wlc_phy_attach()
977 ASSERT(si_core_sflags(pi->sh->sih, 0, 0) & SISF_FCLKA); in WLBANDINITFN()
1290 if (ISSIM_ENAB(pi->sh->sih)) { in wlc_phy_do_dummy_tx()
3314 si_corereg(pi->sh->sih, SI_CC_IDX, in wlc_lcnphy_epa_switch()
3317 si_corereg(pi->sh->sih, SI_CC_IDX, in wlc_lcnphy_epa_switch()
3319 si_corereg(pi->sh->sih, SI_CC_IDX, in wlc_lcnphy_epa_switch()
3327 si_corereg(pi->sh->sih, SI_CC_IDX, in wlc_lcnphy_epa_switch()
3329 si_corereg(pi->sh->sih, SI_CC_IDX, in wlc_lcnphy_epa_switch()
[all …]
Dwlc_phy_hal.h128 si_t *sih; member
Dwlc_phy_lcn.c3643 si_pmu_pllcontrol(pi->sh->sih, 0x2, 0xffffffff, 0x03000c04); in wlc_lcnphy_set_chanspec_tweaks()
3644 si_pmu_pllcontrol(pi->sh->sih, 0x3, 0xffffff, 0x0); in wlc_lcnphy_set_chanspec_tweaks()
3645 si_pmu_pllcontrol(pi->sh->sih, 0x4, 0xffffffff, 0x200005c0); in wlc_lcnphy_set_chanspec_tweaks()
3647 si_pmu_pllupd(pi->sh->sih); in wlc_lcnphy_set_chanspec_tweaks()
3655 si_pmu_pllcontrol(pi->sh->sih, 0x2, 0xffffffff, 0x03140c04); in wlc_lcnphy_set_chanspec_tweaks()
3656 si_pmu_pllcontrol(pi->sh->sih, 0x3, 0xffffff, 0x333333); in wlc_lcnphy_set_chanspec_tweaks()
3657 si_pmu_pllcontrol(pi->sh->sih, 0x4, 0xffffffff, 0x202c2820); in wlc_lcnphy_set_chanspec_tweaks()
3659 si_pmu_pllupd(pi->sh->sih); in wlc_lcnphy_set_chanspec_tweaks()
3733 si_pmu_regcontrol(pi->sh->sih, 0, 0xf, 0x9); in WLBANDINITFN()
3735 si_pmu_chipcontrol(pi->sh->sih, 0, 0xffffffff, 0x03CDDDDD); in WLBANDINITFN()
[all …]
/linux-2.6.39/arch/x86/boot/
Dboot.h275 u8 sil, sih, esi2, esi3; member

12