mirror of
https://github.com/ipxe/ipxe
synced 2026-01-12 00:18:33 +03:00
Generalised the SPI abstraction layer to also be able to handle interfaces
that don't provide the full flexibility of a bit-bashing interface. Temporarily hacked rtl8139.c to use the new interface.
This commit is contained in:
@@ -314,8 +314,8 @@ static int i2c_bit_write ( struct i2c_interface *i2c,
|
||||
void init_i2c_bit_basher ( struct i2c_bit_basher *i2cbit ) {
|
||||
struct bit_basher *basher = &i2cbit->basher;
|
||||
|
||||
assert ( basher->read != NULL );
|
||||
assert ( basher->write != NULL );
|
||||
assert ( basher->op->read != NULL );
|
||||
assert ( basher->op->write != NULL );
|
||||
i2cbit->i2c.read = i2c_bit_read;
|
||||
i2cbit->i2c.write = i2c_bit_write;
|
||||
i2c_stop ( basher );
|
||||
|
||||
Reference in New Issue
Block a user