You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bitops.h 426B

12345678910111213141516171819
  1. #ifndef _IPXE_BITOPS_H
  2. #define _IPXE_BITOPS_H
  3. /** @file
  4. *
  5. * Bit operations
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  9. #include <bits/bitops.h>
  10. void set_bit ( unsigned int bit, volatile void *bits );
  11. void clear_bit ( unsigned int bit, volatile void *bits );
  12. int test_and_set_bit ( unsigned int bit, volatile void *bits );
  13. int test_and_clear_bit ( unsigned int bit, volatile void *bits );
  14. #endif /* _IPXE_BITOPS_H */