H A D | twsi.c | 1 /*- 33 * Driver for the TWSI (aka I2C, aka IIC) bus controller found on Marvell 36 * Calls to DELAY() are needed per Application Note AN-179 "TWSI Software 86 #define debugf(sc, fmt, args...) if ((sc)->debug) \ 87 device_printf((sc)->dev, "%s: " fmt, __func__, ##args) 92 { -1, 0 } 100 val = bus_read_4(sc->res[0], off); in TWSI_READ() 101 if (sc->debug > 1) in TWSI_READ() 110 if (sc->debug > 1) in TWSI_WRITE() 112 bus_write_4(sc->re in TWSI_WRITE() 162 twsi_poll_ctrl(struct twsi_softc * sc,int timeout,uint32_t mask) twsi_poll_ctrl() argument 185 twsi_locked_start(device_t dev,struct twsi_softc * sc,int32_t mask,u_char slave,int timeout) twsi_locked_start() argument 345 twsi_repeated_start(device_t dev,u_char slave,int timeout) twsi_repeated_start() argument 369 twsi_start(device_t dev,u_char slave,int timeout) twsi_start() argument 437 twsi_write(device_t dev,const char * buf,int len,int * sent,int timeout) twsi_write() argument [all...] |