diff options
Diffstat (limited to 'src/include/gpxe/bitbash.h')
| -rw-r--r-- | src/include/gpxe/bitbash.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/include/gpxe/bitbash.h b/src/include/gpxe/bitbash.h index f479b5ad0..62bdce004 100644 --- a/src/include/gpxe/bitbash.h +++ b/src/include/gpxe/bitbash.h @@ -7,8 +7,10 @@ * */ -/** A bit-bashing interface */ -struct bit_basher { +struct bit_basher; + +/** Bit-bashing operations */ +struct bit_basher_operations { /** * Set/clear output bit * @@ -35,6 +37,12 @@ struct bit_basher { int ( * read ) ( struct bit_basher *basher, unsigned int bit_id ); }; +/** A bit-bashing interface */ +struct bit_basher { + /** Bit-bashing operations */ + struct bit_basher_operations *op; +}; + extern void write_bit ( struct bit_basher *basher, unsigned int bit_id, unsigned long data ); extern int read_bit ( struct bit_basher *basher, unsigned int bit_id ); |
