/* * dump PMU registers * */ void vrpmu_dump_regs(void *arg) { struct vrpmu_softc *sc = arg; unsigned int reg; #if NVRBCU > 0 int cpuid; #endif reg = vrpmu_read(sc, PMUINT_REG_W); reg = vrpmu_read(sc, PMUINT2_REG_W); /* others? XXXX */ reg = vrpmu_read(sc, PMUCNT_REG_W); printf("vrpmu: cnt 0x%x: ", reg); dbg_bit_print(reg); reg = vrpmu_read(sc, PMUCNT2_REG_W); printf("vrpmu: cnt2 0x%x: ", reg); dbg_bit_print(reg); #if NVRBCU > 0 cpuid = vrbcu_vrip_getcpuid(); if (cpuid >= BCUREVID_RID_4111){ reg = vrpmu_read(sc, PMUWAIT_REG_W); printf("vrpmu: wait 0x%x", reg); } if (cpuid >= BCUREVID_RID_4121){ reg = vrpmu_read(sc, PMUDIV_REG_W); printf(" div 0x%x", reg); } printf("\n"); #endif /* NVRBCU > 0 */ }
static void betty_dump(hpcio_chip_t hc) { #ifdef UCBIO_DEBUG struct ucbio_softc *sc = hc->hc_sc; struct betty_port_status *stat = &sc->sc_stat; printf("[BETTY I/O]\n"); printf("IN "); dbg_bit_print(stat->in); printf("OUT "); dbg_bit_print(stat->out); printf("DIR "); dbg_bit_print(stat->dir); #endif /* UCBIO_DEBUG */ }