diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/bitops.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/ipxe/bitops.h b/src/include/ipxe/bitops.h new file mode 100644 index 000000000..7366cd9f1 --- /dev/null +++ b/src/include/ipxe/bitops.h @@ -0,0 +1,19 @@ +#ifndef _IPXE_BITOPS_H +#define _IPXE_BITOPS_H + +/** @file + * + * Bit operations + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +#include <bits/bitops.h> + +void set_bit ( unsigned int bit, volatile void *bits ); +void clear_bit ( unsigned int bit, volatile void *bits ); +int test_and_set_bit ( unsigned int bit, volatile void *bits ); +int test_and_clear_bit ( unsigned int bit, volatile void *bits ); + +#endif /* _IPXE_BITOPS_H */ |
