~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/ipxe/src/include/ipxe/bitops.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

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