/freebsd/sys/dev/ipmi/ |
H A D | ipmi_ssif.c | 75 device_t smbus = sc->ipmi_ssif_smbus; in ssif_polled_request() local 81 if (smbus_request_bus(smbus, dev, SMB_WAIT) != 0) in ssif_polled_request() 100 error = smbus_error(smbus_bwrite(smbus, in ssif_polled_request() 115 error = smbus_error(smbus_bwrite(smbus, in ssif_polled_request() 133 error = smbus_error(smbus_bwrite(smbus, in ssif_polled_request() 160 error = smbus_error(smbus_bwrite(smbus, in ssif_polled_request() 174 smbus_release_bus(smbus, dev); in ssif_polled_request() 181 if (smbus_request_bus(smbus, dev, SMB_WAIT) != 0) in ssif_polled_request() 184 error = smbus_error(smbus_bread(smbus, in ssif_polled_request() 187 smbus_release_bus(smbus, dev); in ssif_polled_request() [all …]
|
H A D | ipmi_smbus.c | 40 #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, 0, 0); 131 MODULE_DEPEND(ipmi_smbus, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
|
H A D | ipmivars.h | 96 device_t smbus; member 140 #define ipmi_ssif_smbus _iface.ssif.smbus
|
/freebsd/sys/dev/jedec_dimm/ |
H A D | jedec_dimm.c | 54 device_t smbus; member 228 rc = smbus_writeb(sc->smbus, (JEDEC_DTI_PAGE | JEDEC_LSA_PAGE_SET1), in jedec_dimm_adjust_offset() 283 sc->smbus = device_get_parent(dev); in jedec_dimm_attach() 292 rc = smbus_readb(sc->smbus, sc->spd_addr, SPD_OFFSET_DRAM_TYPE, &byte); in jedec_dimm_attach() 363 rc = smbus_readb(sc->smbus, sc->spd_addr, tsod_present_offset, &byte); in jedec_dimm_attach() 520 rc = smbus_readb(sc->smbus, sc->spd_addr, bus_width_offset, in jedec_dimm_capacity() 527 rc = smbus_readb(sc->smbus, sc->spd_addr, dimm_ranks_offset, in jedec_dimm_capacity() 534 rc = smbus_readb(sc->smbus, sc->spd_addr, sdram_capacity_offset, in jedec_dimm_capacity() 542 rc = smbus_readb(sc->smbus, sc->spd_addr, sdram_width_offset, in jedec_dimm_capacity() 551 rc = smbus_readb(sc->smbus, sc->spd_addr, sdram_pkg_type_offset, in jedec_dimm_capacity() [all …]
|
/freebsd/sys/modules/i2c/smbus/ |
H A D | Makefile | 1 .PATH: ${SRCTOP}/sys/dev/smbus 2 KMOD = smbus 4 smbconf.h smbconf.c smbus.h smbus.c
|
/freebsd/sys/dev/nfsmb/ |
H A D | nfsmb.c | 42 #include <dev/smbus/smbconf.h> 116 device_t smbus; member 199 nfsmbsub_sc->smbus = device_add_child(dev, "smbus", DEVICE_UNIT_ANY); in nfsmbsub_attach() 200 if (nfsmbsub_sc->smbus == NULL) { in nfsmbsub_attach() 234 /* Allocate a new smbus device */ in nfsmb_attach() 235 nfsmb_sc->smbus = device_add_child(dev, "smbus", DEVICE_UNIT_ANY); in nfsmb_attach() 236 if (!nfsmb_sc->smbus) { in nfsmb_attach() 281 if (nfsmbsub_sc->smbus) { in nfsmbsub_detach() [all...] |
/freebsd/sys/dev/amdsmb/ |
H A D | amdsmb.c | 42 #include <dev/smbus/smbconf.h> 110 device_t smbus; member 161 /* Allocate a new smbus device */ in amdsmb_attach() 162 amdsmb_sc->smbus = device_add_child(dev, "smbus", DEVICE_UNIT_ANY); in amdsmb_attach() 163 if (!amdsmb_sc->smbus) { in amdsmb_attach() 178 if (amdsmb_sc->smbus) { in amdsmb_detach() 179 device_delete_child(dev, amdsmb_sc->smbus); in amdsmb_detach() 180 amdsmb_sc->smbus = NULL; in amdsmb_detach() 215 device_printf(sc->smbus, "timeou in amdsmb_ec_wait_write() [all...] |
/freebsd/sys/dev/alpm/ |
H A D | alpm.c | 46 #include <dev/smbus/smbconf.h> 126 device_t smbus; member 220 /* attach the smbus */ in alpm_attach() 221 alpm->smbus = device_add_child(dev, "smbus", DEVICE_UNIT_ANY); in alpm_attach() 222 if (alpm->smbus == NULL) { in alpm_attach() 236 if (alpm->smbus) { in alpm_detach() 237 device_delete_child(dev, alpm->smbus); in alpm_detach() 238 alpm->smbus = NULL; in alpm_detach() 633 /* smbus interfac [all...] |
/freebsd/sys/contrib/device-tree/Bindings/hwmon/ |
H A D | stts751.txt | 8 - smbus-timeout-disable: when set, the smbus timeout function will be disabled
|
H A D | jc42.txt | 38 - smbus-timeout-disable: When set, the smbus timeout function will be disabled.
|
H A D | max6697.txt | 20 - smbus-timeout-disable 60 smbus-timeout-disable;
|
/freebsd/sys/dev/amdpm/ |
H A D | amdpm.c | 50 #include <dev/smbus/smbconf.h> 125 device_t smbus; member 216 /* Allocate a new smbus device */ in amdpm_attach() 217 amdpm_sc->smbus = device_add_child(dev, "smbus", DEVICE_UNIT_ANY); in amdpm_attach() 218 if (!amdpm_sc->smbus) { in amdpm_attach() 233 if (amdpm_sc->smbus) { in amdpm_detach() 234 device_delete_child(dev, amdpm_sc->smbus); in amdpm_detach() 235 amdpm_sc->smbus = NULL; in amdpm_detach() 661 DRIVER_MODULE(smbus, amdp [all...] |
/freebsd/sys/dev/iicbus/ |
H A D | iicsmb.c | 37 * smbus 60 #include <dev/smbus/smb.h> 61 #include <dev/smbus/smbconf.h> 80 device_t smbus; member 111 /* smbus interface */ 155 sc->smbus = device_add_child(dev, "smbus", DEVICE_UNIT_ANY); in iicsmb_attach() 157 /* probe and attach the smbus */ in iicsmb_attach() 193 /* call smbus intr handler */ in iicsmb_intr() 194 smbus_intr(sc->smbus, s in iicsmb_intr() [all...] |
/freebsd/sys/dev/imcsmb/ |
H A D | imcsmb.c | 49 #include <dev/smbus/smbconf.h> 72 * parent imcsmb_pci's registers that we will use. Create the smbus(4) device, 92 /* Create the smbus child */ in imcsmb_attach() 93 sc->smbus = device_add_child(dev, "smbus", DEVICE_UNIT_ANY); in imcsmb_attach() 94 if (sc->smbus == NULL) { in imcsmb_attach() 96 device_printf(dev, "Child smbus not added\n"); in imcsmb_attach() 101 /* Attach the smbus child. */ in imcsmb_attach() 103 device_printf(dev, "Failed to attach smbus: %d\n", rc); in imcsmb_attach() 529 /* smbus method [all...] |
H A D | imcsmb_var.h | 98 device_t smbus; /* The child smbusX interface */ member
|
/freebsd/sys/dev/intpm/ |
H A D | intpm.c | 36 #include <dev/smbus/smbconf.h> 52 device_t smbus; member 205 if (sc->smbus) in intsmb_release_resources() 206 device_delete_child(dev, sc->smbus); in intsmb_release_resources() 329 sc->smbus = device_add_child(dev, "smbus", DEVICE_UNIT_ANY); in intsmb_attach() 330 if (sc->smbus == NULL) { in intsmb_attach() 331 device_printf(dev, "failed to add smbus child\n"); in intsmb_attach() 335 error = device_probe_and_attach(sc->smbus); in intsmb_attach() 337 device_printf(dev, "failed to probe+attach smbus chil in intsmb_attach() [all...] |
/freebsd/sys/dev/viapm/ |
H A D | viapm.c | 51 #include <dev/smbus/smbconf.h> 99 device_t smbus; member 374 viapm->smbus = device_add_child(dev, "smbus", DEVICE_UNIT_ANY); in viapm_pro_attach() 376 /* probe and attach the smbus */ in viapm_pro_attach() 465 if (viapm->smbus) { in viapm_pro_detach() 466 device_delete_child(dev, viapm->smbus); in viapm_pro_detach() 972 /* smbus interface */ 1004 DRIVER_MODULE(smbus, viapropm, smbus_driver, 0, 0); 1009 MODULE_DEPEND(viapropm, smbus, SMBUS_MINVE [all...] |
/freebsd/sys/kern/ |
H A D | Make.tags.inc | 16 ${SYS}/dev/smbus/*.[ch] \ 65 ${SYS}/dev/smbus \
|
/freebsd/sys/modules/i2c/smb/ |
H A D | Makefile | 1 .PATH: ${SRCTOP}/sys/dev/smbus
|
/freebsd/tools/kerneldoc/subsys/ |
H A D | Doxyfile-dev_smbus | 12 INPUT = $(DOXYGEN_SRC_PATH)/dev/smbus/ \
|
/freebsd/sys/modules/i2c/ |
H A D | Makefile | 27 smbus \
|
/freebsd/sys/dev/smbus/ |
H A D | smbus_if.m | 30 INTERFACE smbus; 44 # smbus callback
|
H A D | smb.c | 40 #include <dev/smbus/smbconf.h> 41 #include <dev/smbus/smbus.h> 42 #include <dev/smbus/smb.h> 105 /* smbus interface */ 418 DRIVER_MODULE(smb, smbus, smb_driver, 0, 0); 419 MODULE_DEPEND(smb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
|
H A D | smbconf.h | 89 __BUS_ACCESSOR(smbus, var, SMBUS, ivar, type)
|
/freebsd/etc/mtree/ |
H A D | BSD.include.dist | 178 smbus
|