Searched refs:smbus (Results 1 - 25 of 35) sorted by relevance

12

/freebsd-12-stable/sys/modules/i2c/smbus/
H A DMakefile3 .PATH: ${SRCTOP}/sys/dev/smbus
4 KMOD = smbus
6 smbconf.h smbconf.c smbus.h smbus.c
/freebsd-12-stable/sys/modules/i2c/smb/
H A DMakefile3 .PATH: ${SRCTOP}/sys/dev/smbus
/freebsd-12-stable/sys/modules/i2c/
H A DMakefile25 smbus \
/freebsd-12-stable/sys/dev/ipmi/
H A Dipmi_smbus.c42 #include <dev/smbus/smbconf.h>
43 #include <dev/smbus/smbus.h>
44 #include <dev/smbus/smb.h>
132 DRIVER_MODULE(ipmi_smbus, smbus, ipmi_smbus_driver, ipmi_devclass, 0, 0);
133 MODULE_DEPEND(ipmi_smbus, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
H A Dipmi_ssif.c42 #include <dev/smbus/smbconf.h>
43 #include <dev/smbus/smb.h>
78 device_t smbus = sc->ipmi_ssif_smbus; local
84 if (smbus_request_bus(smbus, dev, SMB_WAIT) != 0)
103 error = smbus_error(smbus_bwrite(smbus,
118 error = smbus_error(smbus_bwrite(smbus,
136 error = smbus_error(smbus_bwrite(smbus,
163 error = smbus_error(smbus_bwrite(smbus,
177 smbus_release_bus(smbus, dev);
184 if (smbus_request_bus(smbus, de
381 ipmi_ssif_attach(struct ipmi_softc *sc, device_t smbus, int smbus_address) argument
[all...]
H A Dipmivars.h87 device_t smbus; member in struct:ipmi_ssif
129 #define ipmi_ssif_smbus _iface.ssif.smbus
/freebsd-12-stable/sys/dev/imcsmb/
H A Dimcsmb_var.h52 #include <dev/smbus/smbconf.h>
100 device_t smbus; /* The child smbusX interface */ member in struct:imcsmb_softc
H A Dimcsmb.c51 #include <dev/smbus/smbconf.h>
74 * parent imcsmb_pci's registers that we will use. Create the smbus(4) device,
94 /* Create the smbus child */
95 sc->smbus = device_add_child(dev, "smbus", -1);
96 if (sc->smbus == NULL) {
98 device_printf(dev, "Child smbus not added\n");
103 /* Attach the smbus child. */
105 device_printf(dev, "Failed to attach smbus: %d\n", rc);
534 /* smbus method
[all...]
H A Dimcsmb_reg.h52 #include <dev/smbus/smbconf.h>
H A Dimcsmb_pci.c49 #include <dev/smbus/smbconf.h>
83 * - "imcsmb" is an smbus(4)-compliant SMBus controller driver
/freebsd-12-stable/sys/dev/jedec_dimm/
H A Djedec_dimm.c49 #include <dev/smbus/smbconf.h>
50 #include <dev/smbus/smbus.h>
56 device_t smbus; member in struct:jedec_dimm_softc
209 sc->smbus = device_get_parent(dev);
218 rc = smbus_readb(sc->smbus, sc->spd_addr, SPD_OFFSET_DRAM_TYPE, &byte);
284 rc = smbus_readb(sc->smbus, sc->spd_addr, tsod_present_offset, &byte);
448 rc = smbus_readb(sc->smbus, sc->spd_addr, bus_width_offset,
455 rc = smbus_readb(sc->smbus, sc->spd_addr, dimm_ranks_offset,
462 rc = smbus_readb(sc->smbus, s
842 device_t smbus; local
[all...]
/freebsd-12-stable/sys/dev/smbus/
H A Dsmbconf.c40 #include <dev/smbus/smbconf.h>
41 #include <dev/smbus/smbus.h>
62 * Converts an smbus error to a unix error.
H A Dsmbus.c41 #include <dev/smbus/smbconf.h>
42 #include <dev/smbus/smbus.h>
70 mtx_init(&sc->lock, device_get_nameunit(dev), "smbus", MTX_DEF);
241 "smbus",
248 MODULE_VERSION(smbus, SMBUS_MODVER);
H A Dsmb.c40 #include <dev/smbus/smbconf.h>
41 #include <dev/smbus/smbus.h>
42 #include <dev/smbus/smb.h>
69 /* smbus interface */
281 DRIVER_MODULE(smb, smbus, smb_driver, smb_devclass, 0, 0);
282 MODULE_DEPEND(smb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
H A Dsmbconf.h39 /* Order constants for smbus children. */
91 __BUS_ACCESSOR(smbus, var, SMBUS, ivar, type)
/freebsd-12-stable/sys/dev/bktr/
H A Dbktr_i2c.c70 #include <dev/smbus/smbconf.h>
74 * defined. This allows bktr owners to have smbus active for there
75 * motherboard and still use their bktr without smbus.
91 sc->smbus = device_add_child(dev, "smbus", -1);
94 if (!sc->iicbb || !sc->smbus)
114 if (sc->smbus && (error = device_delete_child(dev, sc->smbus)))
164 /* test each time if we already have/haven't the smbus
362 DRIVER_MODULE(smbus, bkt
[all...]
/freebsd-12-stable/sys/dev/nfsmb/
H A Dnfsmb.c45 #include <dev/smbus/smbconf.h>
119 device_t smbus; member in struct:nfsmb_softc
202 nfsmbsub_sc->smbus = device_add_child(dev, "smbus", -1);
203 if (nfsmbsub_sc->smbus == NULL) {
237 /* Allocate a new smbus device */
238 nfsmb_sc->smbus = device_add_child(dev, "smbus", -1);
239 if (!nfsmb_sc->smbus) {
284 if (nfsmbsub_sc->smbus) {
[all...]
/freebsd-12-stable/sys/dev/iicbus/
H A Diicsmb.c39 * smbus
62 #include <dev/smbus/smb.h>
63 #include <dev/smbus/smbconf.h>
82 device_t smbus; member in struct:iicsmb_softc
115 /* smbus interface */
159 sc->smbus = device_add_child(dev, "smbus", -1);
161 /* probe and attach the smbus */
197 /* call smbus intr handler */
198 smbus_intr(sc->smbus, s
[all...]
/freebsd-12-stable/sys/dev/amdsmb/
H A Damdsmb.c45 #include <dev/smbus/smbconf.h>
113 device_t smbus; member in struct:amdsmb_softc
164 /* Allocate a new smbus device */
165 amdsmb_sc->smbus = device_add_child(dev, "smbus", -1);
166 if (!amdsmb_sc->smbus) {
181 if (amdsmb_sc->smbus) {
182 device_delete_child(dev, amdsmb_sc->smbus);
183 amdsmb_sc->smbus = NULL;
218 device_printf(sc->smbus, "timeou
[all...]
/freebsd-12-stable/sys/dev/alpm/
H A Dalpm.c49 #include <dev/smbus/smbconf.h>
129 device_t smbus; member in struct:alpm_softc
223 /* attach the smbus */
224 alpm->smbus = device_add_child(dev, "smbus", -1);
225 if (alpm->smbus == NULL) {
239 if (alpm->smbus) {
240 device_delete_child(dev, alpm->smbus);
241 alpm->smbus = NULL;
638 /* smbus interfac
[all...]
/freebsd-12-stable/sys/dev/amdpm/
H A Damdpm.c53 #include <dev/smbus/smbconf.h>
128 device_t smbus; member in struct:amdpm_softc
219 /* Allocate a new smbus device */
220 amdpm_sc->smbus = device_add_child(dev, "smbus", -1);
221 if (!amdpm_sc->smbus) {
236 if (amdpm_sc->smbus) {
237 device_delete_child(dev, amdpm_sc->smbus);
238 amdpm_sc->smbus = NULL;
667 DRIVER_MODULE(smbus, amdp
[all...]
/freebsd-12-stable/sys/kern/
H A DMake.tags.inc24 ${SYS}/dev/smbus/*.[ch] \
83 ${SYS}/dev/smbus \
/freebsd-12-stable/sys/dev/intpm/
H A Dintpm.c39 #include <dev/smbus/smbconf.h>
55 device_t smbus; member in struct:intsmb_softc
208 if (sc->smbus)
209 device_delete_child(dev, sc->smbus);
332 sc->smbus = device_add_child(dev, "smbus", -1);
333 if (sc->smbus == NULL) {
334 device_printf(dev, "failed to add smbus child\n");
338 error = device_probe_and_attach(sc->smbus);
340 device_printf(dev, "failed to probe+attach smbus chil
[all...]
/freebsd-12-stable/sys/dev/ichsmb/
H A Dichsmb_pci.c64 #include <dev/smbus/smbconf.h>
266 MODULE_DEPEND(ichsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
/freebsd-12-stable/sys/dev/viapm/
H A Dviapm.c53 #include <dev/smbus/smbconf.h>
101 device_t smbus; member in struct:viapm_softc
381 viapm->smbus = device_add_child(dev, "smbus", -1);
383 /* probe and attach the smbus */
472 if (viapm->smbus) {
473 device_delete_child(dev, viapm->smbus);
979 /* smbus interface */
1011 DRIVER_MODULE(smbus, viapropm, smbus_driver, smbus_devclass, 0, 0);
1016 MODULE_DEPEND(viapropm, smbus, SMBUS_MINVE
[all...]

Completed in 262 milliseconds

12