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

12

/freebsd-11-stable/sys/modules/i2c/smbus/
H A DMakefile1 # $FreeBSD: stable/11/sys/modules/i2c/smbus/Makefile 319182 2017-05-30 04:11:12Z ngie $
3 .PATH: ${SRCTOP}/sys/dev/smbus
4 KMOD = smbus
6 smbconf.h smbconf.c smbus.h smbus.c
/freebsd-11-stable/sys/modules/i2c/smb/
H A DMakefile3 .PATH: ${SRCTOP}/sys/dev/smbus
/freebsd-11-stable/sys/modules/i2c/
H A DMakefile24 smbus \
/freebsd-11-stable/sys/dev/ipmi/
H A Dipmi_smbus.c40 #include <dev/smbus/smbconf.h>
41 #include <dev/smbus/smbus.h>
42 #include <dev/smbus/smb.h>
130 DRIVER_MODULE(ipmi_smbus, smbus, ipmi_smbus_driver, ipmi_devclass, 0, 0);
131 MODULE_DEPEND(ipmi_smbus, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
H A Dipmi_ssif.c40 #include <dev/smbus/smbconf.h>
41 #include <dev/smbus/smb.h>
76 device_t smbus = sc->ipmi_ssif_smbus; local
82 if (smbus_request_bus(smbus, dev, SMB_WAIT) != 0)
101 error = smbus_error(smbus_bwrite(smbus,
116 error = smbus_error(smbus_bwrite(smbus,
134 error = smbus_error(smbus_bwrite(smbus,
161 error = smbus_error(smbus_bwrite(smbus,
175 smbus_release_bus(smbus, dev);
182 if (smbus_request_bus(smbus, de
379 ipmi_ssif_attach(struct ipmi_softc *sc, device_t smbus, int smbus_address) argument
[all...]
H A Dipmivars.h85 device_t smbus; member in struct:ipmi_ssif
122 #define ipmi_ssif_smbus _iface.ssif.smbus
/freebsd-11-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>
/freebsd-11-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-11-stable/sys/dev/jedec_ts/
H A Djedec_ts.c38 #include <dev/smbus/smbconf.h>
39 #include <dev/smbus/smbus.h>
281 DRIVER_MODULE(jedec_ts, smbus, jedec_ts_driver, jedec_ts_devclass, 0, 0);
282 MODULE_DEPEND(jedec_ts, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
/freebsd-11-stable/sys/dev/smbus/
H A Dsmbconf.c38 #include <dev/smbus/smbconf.h>
39 #include <dev/smbus/smbus.h>
60 * Converts an smbus error to a unix error.
H A Dsmbus.c30 __FBSDID("$FreeBSD: stable/11/sys/dev/smbus/smbus.c 310518 2016-12-24 14:39:30Z avg $");
39 #include <dev/smbus/smbconf.h>
40 #include <dev/smbus/smbus.h>
68 mtx_init(&sc->lock, device_get_nameunit(dev), "smbus", MTX_DEF);
239 "smbus",
246 MODULE_VERSION(smbus, SMBUS_MODVER);
H A Dsmb.c26 * $FreeBSD: stable/11/sys/dev/smbus/smb.c 324624 2017-10-15 10:59:31Z kib $
38 #include <dev/smbus/smbconf.h>
39 #include <dev/smbus/smbus.h>
40 #include <dev/smbus/smb.h>
67 /* smbus interface */
279 DRIVER_MODULE(smb, smbus, smb_driver, smb_devclass, 0, 0);
280 MODULE_DEPEND(smb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
H A Dsmbconf.h26 * $FreeBSD: stable/11/sys/dev/smbus/smbconf.h 324409 2017-10-08 08:01:24Z kib $
37 /* Order constants for smbus children. */
89 __BUS_ACCESSOR(smbus, var, SMBUS, ivar, type)
/freebsd-11-stable/sys/dev/bktr/
H A Dbktr_i2c.c68 #include <dev/smbus/smbconf.h>
72 * defined. This allows bktr owners to have smbus active for there
73 * motherboard and still use their bktr without smbus.
89 sc->smbus = device_add_child(dev, "smbus", -1);
92 if (!sc->iicbb || !sc->smbus)
112 if (sc->smbus && (error = device_delete_child(dev, sc->smbus)))
162 /* test each time if we already have/haven't the smbus
360 DRIVER_MODULE(smbus, bkt
[all...]
/freebsd-11-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-11-stable/sys/dev/iicbus/
H A Diicsmb.c37 * smbus
60 #include <dev/smbus/smb.h>
61 #include <dev/smbus/smbconf.h>
80 device_t smbus; member in struct:iicsmb_softc
113 /* smbus interface */
157 sc->smbus = device_add_child(dev, "smbus", -1);
159 /* probe and attach the smbus */
195 /* call smbus intr handler */
196 smbus_intr(sc->smbus, s
[all...]
/freebsd-11-stable/sys/dev/amdsmb/
H A Damdsmb.c45 #include <dev/smbus/smbconf.h>
113 device_t smbus; member in struct:amdsmb_softc
166 /* Allocate a new smbus device */
167 amdsmb_sc->smbus = device_add_child(dev, "smbus", -1);
168 if (!amdsmb_sc->smbus) {
183 if (amdsmb_sc->smbus) {
184 device_delete_child(dev, amdsmb_sc->smbus);
185 amdsmb_sc->smbus = NULL;
220 device_printf(sc->smbus, "timeou
[all...]
/freebsd-11-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-11-stable/sys/dev/amdpm/
H A Damdpm.c53 #include <dev/smbus/smbconf.h>
126 device_t smbus; member in struct:amdpm_softc
216 /* Allocate a new smbus device */
217 amdpm_sc->smbus = device_add_child(dev, "smbus", -1);
218 if (!amdpm_sc->smbus) {
233 if (amdpm_sc->smbus) {
234 device_delete_child(dev, amdpm_sc->smbus);
235 amdpm_sc->smbus = NULL;
664 DRIVER_MODULE(smbus, amdp
[all...]
/freebsd-11-stable/sys/kern/
H A DMake.tags.inc24 ${SYS}/dev/smbus/*.[ch] \
83 ${SYS}/dev/smbus \
/freebsd-11-stable/sys/dev/intpm/
H A Dintpm.c39 #include <dev/smbus/smbconf.h>
55 device_t smbus; member in struct:intsmb_softc
203 if (sc->smbus)
204 device_delete_child(dev, sc->smbus);
326 sc->smbus = device_add_child(dev, "smbus", -1);
327 if (sc->smbus == NULL) {
328 device_printf(dev, "failed to add smbus child\n");
332 error = device_probe_and_attach(sc->smbus);
334 device_printf(dev, "failed to probe+attach smbus chil
[all...]
/freebsd-11-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-11-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 187 milliseconds

12