Lines Matching refs:exca
658 exca_valid_slot(struct exca_softc *exca) in exca_valid_slot() argument
663 exca->chipset = EXCA_BOGUS; in exca_valid_slot()
670 c = exca_getb(exca, EXCA_IDENT); in exca_valid_slot()
671 DEVPRINTF(exca->dev, "Ident is %x\n", c); in exca_valid_slot()
682 exca->chipset = EXCA_I82365; in exca_valid_slot()
690 bus_space_write_1(exca->bst, exca->bsh, EXCA_REG_INDEX, in exca_valid_slot()
692 bus_space_write_1(exca->bst, exca->bsh, EXCA_REG_INDEX, in exca_valid_slot()
694 exca_setb(exca, EXCA_VADEM_VMISC, EXCA_VADEM_REV); in exca_valid_slot()
695 c = exca_getb(exca, EXCA_IDENT); in exca_valid_slot()
699 exca->chipset = EXCA_VG365; in exca_valid_slot()
702 exca->chipset = EXCA_VG465; in exca_valid_slot()
705 exca->chipset = EXCA_VG468; in exca_valid_slot()
708 exca->chipset = EXCA_VG469; in exca_valid_slot()
711 exca_clrb(exca, EXCA_VADEM_VMISC, EXCA_VADEM_REV); in exca_valid_slot()
717 c = exca_getb(exca, EXCA_RICOH_ID); in exca_valid_slot()
719 exca->chipset = EXCA_RF5C396; in exca_valid_slot()
722 exca->chipset = EXCA_RF5C296; in exca_valid_slot()
728 exca_putb(exca, EXCA_CIRRUS_CHIP_INFO, 0); in exca_valid_slot()
729 c = exca_getb(exca, EXCA_CIRRUS_CHIP_INFO); in exca_valid_slot()
732 c = exca_getb(exca, EXCA_CIRRUS_CHIP_INFO); in exca_valid_slot()
735 exca->chipset = EXCA_PD6722; in exca_valid_slot()
737 exca->chipset = EXCA_PD6710; in exca_valid_slot()
751 exca->chipset = EXCA_I82365SL_DF; in exca_valid_slot()
755 exca->chipset = EXCA_IBM; in exca_valid_slot()
758 exca->chipset = EXCA_IBM_KING; in exca_valid_slot()
774 exca_probe_slots(device_t dev, struct exca_softc *exca, bus_space_tag_t iot, in exca_probe_slots() argument
782 exca_init(&exca[i], dev, iot, ioh, i * EXCA_SOCKET_SIZE); in exca_probe_slots()
783 exca->getb = exca_io_getb; in exca_probe_slots()
784 exca->putb = exca_io_putb; in exca_probe_slots()
785 if (exca_valid_slot(&exca[i])) { in exca_probe_slots()
786 device_set_desc(dev, chip_names[exca[i].chipset]); in exca_probe_slots()
794 exca_insert(struct exca_softc *exca) in exca_insert() argument
796 if (device_is_attached(exca->pccarddev)) { in exca_insert()
797 if (CARD_ATTACH_CARD(exca->pccarddev) != 0) in exca_insert()
798 device_printf(exca->dev, in exca_insert()
801 device_printf(exca->dev, in exca_insert()
808 exca_removal(struct exca_softc *exca) in exca_removal() argument
810 if (device_is_attached(exca->pccarddev)) in exca_removal()
811 CARD_DETACH_CARD(exca->pccarddev); in exca_removal()
815 exca_activate_resource(struct exca_softc *exca, device_t child, int type, in exca_activate_resource() argument
822 err = BUS_ACTIVATE_RESOURCE(device_get_parent(exca->dev), child, in exca_activate_resource()
828 err = exca_io_map(exca, PCCARD_WIDTH_AUTO, res); in exca_activate_resource()
831 err = exca_mem_map(exca, 0, res); in exca_activate_resource()
835 BUS_DEACTIVATE_RESOURCE(device_get_parent(exca->dev), child, in exca_activate_resource()
841 exca_deactivate_resource(struct exca_softc *exca, device_t child, int type, in exca_deactivate_resource() argument
847 if (exca_io_unmap_res(exca, res)) in exca_deactivate_resource()
851 if (exca_mem_unmap_res(exca, res)) in exca_deactivate_resource()
856 return (BUS_DEACTIVATE_RESOURCE(device_get_parent(exca->dev), child, in exca_deactivate_resource()
933 DEV_MODULE(exca, exca_modevent, NULL);
934 MODULE_VERSION(exca, 1);