Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/iir/iir_pci.c
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | /* no FC ctr. | ||||
if (gdt->sc_device >= GDT_PCI_PRODUCT_FC) | if (gdt->sc_device >= GDT_PCI_PRODUCT_FC) | ||||
gdt->sc_class |= GDT_FC; | gdt->sc_class |= GDT_FC; | ||||
*/ | */ | ||||
/* initialize RP controller */ | /* initialize RP controller */ | ||||
/* check and reset interface area */ | /* check and reset interface area */ | ||||
bus_write_4(gdt->sc_dpmem, GDT_MPR_IC, htole32(GDT_MPR_MAGIC)); | bus_write_4(gdt->sc_dpmem, GDT_MPR_IC, htole32(GDT_MPR_MAGIC)); | ||||
if (bus_read_4(gdt->sc_dpmem, GDT_MPR_IC) != htole32(GDT_MPR_MAGIC)) { | if (bus_read_4(gdt->sc_dpmem, GDT_MPR_IC) != htole32(GDT_MPR_MAGIC)) { | ||||
device_printf(dev, "cannot access DPMEM at 0x%lx (shadowed?)\n", | device_printf(dev, "cannot access DPMEM at 0x%jx (shadowed?)\n", | ||||
rman_get_start(gdt->sc_dpmem)); | rman_get_start(gdt->sc_dpmem)); | ||||
error = ENXIO; | error = ENXIO; | ||||
goto err; | goto err; | ||||
} | } | ||||
bus_set_region_4(gdt->sc_dpmem, GDT_I960_SZ, htole32(0), GDT_MPR_SZ >> 2); | bus_set_region_4(gdt->sc_dpmem, GDT_I960_SZ, htole32(0), GDT_MPR_SZ >> 2); | ||||
/* Disable everything */ | /* Disable everything */ | ||||
bus_write_1(gdt->sc_dpmem, GDT_EDOOR_EN, | bus_write_1(gdt->sc_dpmem, GDT_EDOOR_EN, | ||||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |