Пример #1
0
static int
slugiic_send_start(void *arg, int flags)
{
	struct slugiic_softc *sc = arg;

	return (i2c_bitbang_send_start(sc, flags, &sc->sc_ibo));
}
Пример #2
0
int
i2c_bitbang_initiate_xfer(void *v, i2c_addr_t addr, int flags,
    i2c_bitbang_ops_t ops)
{
	int i2caddr;

	/* XXX Only support 7-bit addressing for now. */
	if ((addr & 0x78) == 0x78)
		return (EINVAL);

	i2caddr = (addr << 1) | ((flags & I2C_F_READ) ? 1 : 0);

	(void) i2c_bitbang_send_start(v, flags, ops);
	return (i2c_bitbang_write_byte(v, i2caddr, flags & ~I2C_F_STOP, ops));
}
Пример #3
0
int
gpioiic_i2c_send_start(void *cookie, int flags)
{
	return i2c_bitbang_send_start(cookie, flags, &gpioiic_bbops);
}
Пример #4
0
static int
igma_i2c_send_start(void *cookie, int flags)
{
	return i2c_bitbang_send_start(cookie, flags, &igma_i2cbb_ops);
}
int
radeonfb_i2c_send_start(void *cookie, int flags)
{

	return i2c_bitbang_send_start(cookie, flags, &radeonfb_i2cbb_ops);
}
Пример #6
0
int
armadillo9iic_send_start(void *cookie, int flags)
{
	return i2c_bitbang_send_start(cookie, flags, &armadillo9iic_bbops);
}
Пример #7
0
static int
iomdiic_send_start(void *cookie, int flags)
{

    return (i2c_bitbang_send_start(cookie, flags, &iomdiic_bbops));
}