Lines Matching refs:exca

660 exca_valid_slot(struct exca_softc *exca)  in exca_valid_slot()  argument
665 exca->chipset = EXCA_BOGUS; in exca_valid_slot()
672 c = exca_getb(exca, EXCA_IDENT); in exca_valid_slot()
673 DEVPRINTF(exca->dev, "Ident is %x\n", c); in exca_valid_slot()
684 exca->chipset = EXCA_I82365; in exca_valid_slot()
692 bus_space_write_1(exca->bst, exca->bsh, EXCA_REG_INDEX, in exca_valid_slot()
694 bus_space_write_1(exca->bst, exca->bsh, EXCA_REG_INDEX, in exca_valid_slot()
696 exca_setb(exca, EXCA_VADEM_VMISC, EXCA_VADEM_REV); in exca_valid_slot()
697 c = exca_getb(exca, EXCA_IDENT); in exca_valid_slot()
701 exca->chipset = EXCA_VG365; in exca_valid_slot()
704 exca->chipset = EXCA_VG465; in exca_valid_slot()
707 exca->chipset = EXCA_VG468; in exca_valid_slot()
710 exca->chipset = EXCA_VG469; in exca_valid_slot()
713 exca_clrb(exca, EXCA_VADEM_VMISC, EXCA_VADEM_REV); in exca_valid_slot()
719 c = exca_getb(exca, EXCA_RICOH_ID); in exca_valid_slot()
721 exca->chipset = EXCA_RF5C396; in exca_valid_slot()
724 exca->chipset = EXCA_RF5C296; in exca_valid_slot()
730 exca_putb(exca, EXCA_CIRRUS_CHIP_INFO, 0); in exca_valid_slot()
731 c = exca_getb(exca, EXCA_CIRRUS_CHIP_INFO); in exca_valid_slot()
734 c = exca_getb(exca, EXCA_CIRRUS_CHIP_INFO); in exca_valid_slot()
737 exca->chipset = EXCA_PD6722; in exca_valid_slot()
739 exca->chipset = EXCA_PD6710; in exca_valid_slot()
753 exca->chipset = EXCA_I82365SL_DF; in exca_valid_slot()
757 exca->chipset = EXCA_IBM; in exca_valid_slot()
760 exca->chipset = EXCA_IBM_KING; in exca_valid_slot()
776 exca_probe_slots(device_t dev, struct exca_softc *exca, bus_space_tag_t iot, in exca_probe_slots() argument
784 exca_init(&exca[i], dev, iot, ioh, i * EXCA_SOCKET_SIZE); in exca_probe_slots()
785 exca->getb = exca_io_getb; in exca_probe_slots()
786 exca->putb = exca_io_putb; in exca_probe_slots()
787 if (exca_valid_slot(&exca[i])) { in exca_probe_slots()
788 device_set_desc(dev, chip_names[exca[i].chipset]); in exca_probe_slots()
796 exca_insert(struct exca_softc *exca) in exca_insert() argument
798 if (device_is_attached(exca->pccarddev)) { in exca_insert()
799 if (CARD_ATTACH_CARD(exca->pccarddev) != 0) in exca_insert()
800 device_printf(exca->dev, in exca_insert()
803 device_printf(exca->dev, in exca_insert()
810 exca_removal(struct exca_softc *exca) in exca_removal() argument
812 if (device_is_attached(exca->pccarddev)) in exca_removal()
813 CARD_DETACH_CARD(exca->pccarddev); in exca_removal()
817 exca_activate_resource(struct exca_softc *exca, device_t child, int type, in exca_activate_resource() argument
824 err = BUS_ACTIVATE_RESOURCE(device_get_parent(exca->dev), child, in exca_activate_resource()
830 err = exca_io_map(exca, PCCARD_WIDTH_AUTO, res); in exca_activate_resource()
833 err = exca_mem_map(exca, 0, res); in exca_activate_resource()
837 BUS_DEACTIVATE_RESOURCE(device_get_parent(exca->dev), child, in exca_activate_resource()
843 exca_deactivate_resource(struct exca_softc *exca, device_t child, int type, in exca_deactivate_resource() argument
849 if (exca_io_unmap_res(exca, res)) in exca_deactivate_resource()
853 if (exca_mem_unmap_res(exca, res)) in exca_deactivate_resource()
858 return (BUS_DEACTIVATE_RESOURCE(device_get_parent(exca->dev), child, in exca_deactivate_resource()
935 DEV_MODULE(exca, exca_modevent, NULL);
936 MODULE_VERSION(exca, 1);