Lines Matching +full:hot +full:- +full:plug
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
51 /* See comments below for why auto-scanning is a bad idea. */
102 sc->dev = dev; in iicbus_attach_common()
103 mtx_init(&sc->lock, "iicbus", NULL, MTX_DEF); in iicbus_attach_common()
108 sc->strict = strict; in iicbus_attach_common()
110 sc->strict = 1; in iicbus_attach_common()
113 * hot-plug. Moreover, some I2C chips do not appreciate random in iicbus_attach_common()
150 mtx_destroy(&sc->lock); in iicbus_detach()
161 if (devi->addr != 0) in iicbus_print_child()
162 retval += printf(" at addr %#x", devi->addr); in iicbus_print_child()
163 resource_list_print_type(&devi->rl, "irq", SYS_RES_IRQ, "%jd"); in iicbus_print_child()
174 device_printf(bus, "<unknown card> at addr %#x\n", devi->addr); in iicbus_probe_nomatch()
182 sbuf_printf(sb, "addr=%#x", devi->addr); in iicbus_child_location()
201 *result = devi->addr; in iicbus_read_ivar()
216 if (devi->addr != 0) in iicbus_write_ivar()
218 devi->addr = value; in iicbus_write_ivar()
238 resource_list_init(&devi->rl); in iicbus_add_child_common()
259 resource_list_free(&devi->rl); in iicbus_child_deleted()
272 resource_int_value(dname, dunit, "addr", &devi->addr); in iicbus_hinted_child()
286 return (&devi->rl); in iicbus_get_resource_list()
321 sc->bus_freq = bus_freq; in iicbus_init_frequency()
323 sc->bus_freq = 100000; in iicbus_init_frequency()
325 "frequency", (int *)&sc->bus_freq); in iicbus_init_frequency()
336 OID_AUTO, "frequency", CTLFLAG_RWTUN, &sc->bus_freq, in iicbus_init_frequency()
337 sc->bus_freq, "Bus frequency in Hz"); in iicbus_init_frequency()
350 if (sc->bus_freq == 0 || speed == IIC_SLOW) in iicbus_get_frequency()
352 return (sc->bus_freq); in iicbus_get_frequency()