-/* $OpenBSD: schizo.c,v 1.64 2013/05/13 17:46:42 kettenis Exp $ */
+/* $OpenBSD: schizo.c,v 1.65 2014/05/10 12:18:38 kettenis Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
printf("%s: pci bus %c error\n", sc->sc_dv.dv_xname,
sp->sp_bus_a ? 'A' : 'B');
- printf("PCIAFSR=%lb\n", afsr, SCZ_PCIAFSR_BITS);
- printf("PCIAFAR=%lx\n", afar);
- printf("PCICTRL=%lb\n", ctrl, SCZ_PCICTRL_BITS);
+ printf("PCIAFSR=%llb\n", afsr, SCZ_PCIAFSR_BITS);
+ printf("PCIAFAR=%llx\n", afar);
+ printf("PCICTRL=%llb\n", ctrl, SCZ_PCICTRL_BITS);
printf("PCICSR=%b\n", csr, PCI_COMMAND_STATUS_BITS);
if (ctrl & SCZ_PCICTRL_MMU_ERR) {
- u_int32_t ctrl, tfar;
+ u_int64_t ctrl, tfar;
ctrl = schizo_pbm_read(sp, SCZ_PCI_IOMMU_CTRL);
- printf("IOMMUCTRL=%lx\n", ctrl);
+ printf("IOMMUCTRL=%llx\n", ctrl);
if ((ctrl & TOM_IOMMU_ERR) == 0)
goto clear_error;
if (sc->sc_tomatillo) {
tfar = schizo_pbm_read(sp, TOM_PCI_IOMMU_TFAR);
- printf("IOMMUTFAR=%lx\n", tfar);
+ printf("IOMMUTFAR=%llx\n", tfar);
}
/* These are non-fatal if target abort was signalled. */
printf("%s: safari error\n", sc->sc_dv.dv_xname);
- printf("ERRLOG=%lx\n", schizo_read(sc, SCZ_SAFARI_ERRLOG));
- printf("UE_AFSR=%lx\n", schizo_read(sc, SCZ_UE_AFSR));
- printf("UE_AFAR=%lx\n", schizo_read(sc, SCZ_UE_AFAR));
- printf("CE_AFSR=%lx\n", schizo_read(sc, SCZ_CE_AFSR));
- printf("CE_AFAR=%lx\n", schizo_read(sc, SCZ_CE_AFAR));
+ printf("ERRLOG=%llx\n", schizo_read(sc, SCZ_SAFARI_ERRLOG));
+ printf("UE_AFSR=%llx\n", schizo_read(sc, SCZ_UE_AFSR));
+ printf("UE_AFAR=%llx\n", schizo_read(sc, SCZ_UE_AFAR));
+ printf("CE_AFSR=%llx\n", schizo_read(sc, SCZ_CE_AFSR));
+ printf("CE_AFAR=%llx\n", schizo_read(sc, SCZ_CE_AFAR));
panic("%s: fatal", sc->sc_dv.dv_xname);
return (1);