Lines Matching defs:devi

194 static void	asy_parse_mode(dev_info_t *devi, struct asycom *asy);
200 static int asy_identify_chip(dev_info_t *devi, struct asycom *asy);
202 static int asy_getproperty(dev_info_t *devi, struct asycom *asy,
213 #define GET_PROP(devi, pname, pflag, pval, plen) \
214 (ddi_prop_op(DDI_DEV_T_ANY, (devi), PROP_LEN_AND_VAL_BUF, \
495 asy_get_io_regnum_pci(dev_info_t *devi, struct asycom *asy)
502 if (ddi_getlongprop(DDI_DEV_T_ANY, devi, DDI_PROP_DONTPASS,
542 asy_get_io_regnum_isa(dev_info_t *devi, struct asycom *asy)
552 if (ddi_getlongprop(DDI_DEV_T_ANY, devi, DDI_PROP_DONTPASS,
600 asydetach(dev_info_t *devi, ddi_detach_cmd_t cmd)
606 instance = ddi_get_instance(devi); /* find out which unit */
625 ddi_remove_minor_node(devi, NULL);
630 ddi_remove_intr(devi, 0, asy->asy_iblock);
731 asyprobe(dev_info_t *devi)
733 return ((asy_get_io_regnum(devi, NULL) < 0) ?
738 asyattach(dev_info_t *devi, ddi_attach_cmd_t cmd)
754 instance = ddi_get_instance(devi); /* find out which unit */
778 if (asy_identify_chip(devi, asy) != DDI_SUCCESS) {
832 regnum = asy_get_io_regnum(devi, asy);
835 ddi_regs_map_setup(devi, regnum, (caddr_t *)&asy->asy_ioaddr,
850 if (ddi_prop_lookup_int_array(DDI_DEV_T_ANY, devi, 0,
907 switch (asy_getproperty(devi, asy, "ignore-cd")) {
930 switch (asy_getproperty(devi, asy, "rts-dtr-off")) {
945 asy_parse_mode(devi, asy);
963 if ((ddi_get_iblock_cookie(devi, 0, &asy->asy_iblock) !=
965 (ddi_get_soft_iblock_cookie(devi, DDI_SOFTINT_MED,
988 if (asy_identify_chip(devi, asy) != DDI_SUCCESS) {
1020 asy->asy_dip = devi;
1025 if (ddi_add_softintr(devi, DDI_SOFTINT_MED,
1044 if (ddi_add_intr(devi, 0, NULL, 0, asyintr,
1079 status = ddi_create_minor_node(devi, name, S_IFCHR, instance,
1083 status = ddi_create_minor_node(devi, name, S_IFCHR,
1092 ddi_remove_minor_node(devi, NULL);
1093 ddi_remove_intr(devi, 0, asy->asy_iblock);
1115 ddi_report_dev(devi);
1154 asy_getproperty(dev_info_t *devi, struct asycom *asy, const char *property)
1166 ret = GET_PROP(devi, name, DDI_PROP_CANSLEEP, val, &len);
1170 ret = GET_PROP(devi, name, DDI_PROP_CANSLEEP, val, &len);
1175 ret = GET_PROP(devi, name, DDI_PROP_CANSLEEP, val, &len);
1180 ret = GET_PROP(devi, name, DDI_PROP_CANSLEEP, val, &len);
1235 asy_identify_chip(dev_info_t *devi, struct asycom *asy)
1518 (void) ddi_prop_update_string(dev, devi, "uart", asy_hw_name(asy));
4404 * asy_parse_mode(dev_info_t *devi, struct asycom *asy)
4415 asy_parse_mode(dev_info_t *devi, struct asycom *asy)
4431 ret = GET_PROP(devi, name, DDI_PROP_CANSLEEP, val, &len);
4435 ret = GET_PROP(devi, name, DDI_PROP_CANSLEEP, val, &len);
4824 asyquiesce(dev_info_t *devi)
4829 instance = ddi_get_instance(devi); /* find out which unit */