diff options
| author | Michael Brown | 2006-12-04 16:36:51 +0100 |
|---|---|---|
| committer | Michael Brown | 2006-12-04 16:36:51 +0100 |
| commit | 931f94dca30b04f8303acdcfd08436e61a491a92 (patch) | |
| tree | b478b672436d696ce8d0a4d91c804d29a65db6a9 /src/drivers/bitbash/bitbash.c | |
| parent | Force syntax-checking on assertions even in non-asserting builds. (diff) | |
| download | ipxe-931f94dca30b04f8303acdcfd08436e61a491a92.tar.gz ipxe-931f94dca30b04f8303acdcfd08436e61a491a92.tar.xz ipxe-931f94dca30b04f8303acdcfd08436e61a491a92.zip | |
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.
Diffstat (limited to 'src/drivers/bitbash/bitbash.c')
| -rw-r--r-- | src/drivers/bitbash/bitbash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/bitbash/bitbash.c b/src/drivers/bitbash/bitbash.c index 19add4ce0..ec94feeea 100644 --- a/src/drivers/bitbash/bitbash.c +++ b/src/drivers/bitbash/bitbash.c @@ -37,7 +37,7 @@ */ void write_bit ( struct bit_basher *basher, unsigned int bit_id, unsigned long data ) { - basher->write ( basher, bit_id, ( data ? -1UL : 0 ) ); + basher->op->write ( basher, bit_id, ( data ? -1UL : 0 ) ); } /** @@ -52,5 +52,5 @@ void write_bit ( struct bit_basher *basher, unsigned int bit_id, * it needs to apply. */ int read_bit ( struct bit_basher *basher, unsigned int bit_id ) { - return ( basher->read ( basher, bit_id ) ? -1UL : 0 ); + return ( basher->op->read ( basher, bit_id ) ? -1UL : 0 ); } |
