Home
last modified time | relevance | path

Searched refs:i2c_tp (Results 1 – 4 of 4) sorted by relevance

/titanic_41/usr/src/uts/sun4u/io/
H A Dtodds1337.c233 i2c_transfer_t *i2c_tp = NULL; in todds1337_attach() local
282 &i2c_tp, 1, 1, I2C_SLEEP); in todds1337_attach()
283 i2c_tp->i2c_version = I2C_XFER_REV; in todds1337_attach()
284 i2c_tp->i2c_flags = I2C_WR_RD; in todds1337_attach()
285 i2c_tp->i2c_wbuf[0] = (uchar_t)RTC_STATUS; /* Read Status register */ in todds1337_attach()
286 i2c_tp->i2c_wlen = 1; in todds1337_attach()
287 i2c_tp->i2c_rlen = 1; in todds1337_attach()
289 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp)) != I2C_SUCCESS) { in todds1337_attach()
290 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp); in todds1337_attach()
299 tempVal = i2c_tp->i2c_rbuf[0]; in todds1337_attach()
[all …]
/titanic_41/usr/src/uts/sun4u/snowbird/io/todds1307/
H A Dtodds1307.c236 i2c_transfer_t *i2c_tp = NULL; in todds1307_attach() local
277 &i2c_tp, 1, 1, I2C_SLEEP); in todds1307_attach()
278 i2c_tp->i2c_version = I2C_XFER_REV; in todds1307_attach()
279 i2c_tp->i2c_flags = I2C_WR_RD; in todds1307_attach()
280 i2c_tp->i2c_wbuf[0] = (uchar_t)0x00; /* Read 00h */ in todds1307_attach()
281 i2c_tp->i2c_wlen = 1; in todds1307_attach()
282 i2c_tp->i2c_rlen = 1; in todds1307_attach()
284 if ((i2c_transfer(statep->ds1307_i2c_hdl, i2c_tp)) != I2C_SUCCESS) { in todds1307_attach()
285 (void) i2c_transfer_free(statep->ds1307_i2c_hdl, i2c_tp); in todds1307_attach()
291 tempVal = i2c_tp->i2c_rbuf[0]; in todds1307_attach()
[all …]
/titanic_41/usr/src/uts/sun4u/snowbird/sys/
H A Dtodds1307.h88 i2c_transfer_t *i2c_tp; member
/titanic_41/usr/src/uts/sun4u/sys/
H A Dtodds1337.h118 i2c_transfer_t *i2c_tp; member