Lines Matching refs:exca

655 exca_valid_slot(struct exca_softc *exca)  in exca_valid_slot()  argument
660 exca->chipset = EXCA_BOGUS; in exca_valid_slot()
667 c = exca_getb(exca, EXCA_IDENT); in exca_valid_slot()
668 DEVPRINTF(exca->dev, "Ident is %x\n", c); in exca_valid_slot()
679 exca->chipset = EXCA_I82365; in exca_valid_slot()
687 bus_space_write_1(exca->bst, exca->bsh, EXCA_REG_INDEX, in exca_valid_slot()
689 bus_space_write_1(exca->bst, exca->bsh, EXCA_REG_INDEX, in exca_valid_slot()
691 exca_setb(exca, EXCA_VADEM_VMISC, EXCA_VADEM_REV); in exca_valid_slot()
692 c = exca_getb(exca, EXCA_IDENT); in exca_valid_slot()
696 exca->chipset = EXCA_VG365; in exca_valid_slot()
699 exca->chipset = EXCA_VG465; in exca_valid_slot()
702 exca->chipset = EXCA_VG468; in exca_valid_slot()
705 exca->chipset = EXCA_VG469; in exca_valid_slot()
708 exca_clrb(exca, EXCA_VADEM_VMISC, EXCA_VADEM_REV); in exca_valid_slot()
714 c = exca_getb(exca, EXCA_RICOH_ID); in exca_valid_slot()
716 exca->chipset = EXCA_RF5C396; in exca_valid_slot()
719 exca->chipset = EXCA_RF5C296; in exca_valid_slot()
725 exca_putb(exca, EXCA_CIRRUS_CHIP_INFO, 0); in exca_valid_slot()
726 c = exca_getb(exca, EXCA_CIRRUS_CHIP_INFO); in exca_valid_slot()
729 c = exca_getb(exca, EXCA_CIRRUS_CHIP_INFO); in exca_valid_slot()
732 exca->chipset = EXCA_PD6722; in exca_valid_slot()
734 exca->chipset = EXCA_PD6710; in exca_valid_slot()
746 exca->chipset = EXCA_I82365SL_DF; in exca_valid_slot()
750 exca->chipset = EXCA_IBM; in exca_valid_slot()
753 exca->chipset = EXCA_IBM_KING; in exca_valid_slot()
769 exca_probe_slots(device_t dev, struct exca_softc *exca, bus_space_tag_t iot, in exca_probe_slots() argument
777 exca_init(&exca[i], dev, iot, ioh, i * EXCA_SOCKET_SIZE); in exca_probe_slots()
778 exca->getb = exca_io_getb; in exca_probe_slots()
779 exca->putb = exca_io_putb; in exca_probe_slots()
780 if (exca_valid_slot(&exca[i])) { in exca_probe_slots()
781 device_set_desc(dev, chip_names[exca[i].chipset]); in exca_probe_slots()
789 exca_insert(struct exca_softc *exca) in exca_insert() argument
791 if (device_is_attached(exca->pccarddev)) { in exca_insert()
792 if (CARD_ATTACH_CARD(exca->pccarddev) != 0) in exca_insert()
793 device_printf(exca->dev, in exca_insert()
796 device_printf(exca->dev, in exca_insert()
803 exca_removal(struct exca_softc *exca) in exca_removal() argument
805 if (device_is_attached(exca->pccarddev)) in exca_removal()
806 CARD_DETACH_CARD(exca->pccarddev); in exca_removal()
810 exca_activate_resource(struct exca_softc *exca, device_t child, int type, in exca_activate_resource() argument
817 err = BUS_ACTIVATE_RESOURCE(device_get_parent(exca->dev), child, in exca_activate_resource()
823 err = exca_io_map(exca, PCCARD_WIDTH_AUTO, res); in exca_activate_resource()
826 err = exca_mem_map(exca, 0, res); in exca_activate_resource()
830 BUS_DEACTIVATE_RESOURCE(device_get_parent(exca->dev), child, in exca_activate_resource()
836 exca_deactivate_resource(struct exca_softc *exca, device_t child, int type, in exca_deactivate_resource() argument
842 if (exca_io_unmap_res(exca, res)) in exca_deactivate_resource()
846 if (exca_mem_unmap_res(exca, res)) in exca_deactivate_resource()
851 return (BUS_DEACTIVATE_RESOURCE(device_get_parent(exca->dev), child, in exca_deactivate_resource()
928 DEV_MODULE(exca, exca_modevent, NULL);
929 MODULE_VERSION(exca, 1);