david/ipxe
david
/
ipxe
Archived
1
0
Fork 0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/include/ipxe/bitops.h

20 lines
426 B
C

#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 */