File: bitops.h

package info (click to toggle)
intel-gpu-tools 2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 64,504 kB
  • sloc: xml: 781,458; ansic: 378,272; python: 8,407; yacc: 2,781; perl: 1,196; sh: 1,177; lex: 487; asm: 227; lisp: 35; makefile: 30
file content (22 lines) | stat: -rw-r--r-- 663 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: MIT */

#ifndef _LINUX_BITOPS_H_
#define _LINUX_BITOPS_H_

/*
 * Origin of this file requires some comment.
 *
 * In the i915 we use nicely collected gpu command macros in
 * intel_gpu_commands.h file and we want to reuse it here. Moreover we want
 * to copy this file verbatimly and not touch it at all. Unfortunatly this file
 * includes kernel header which doesn't have its userspace counterpart.
 *
 * We need to solve this include substituting kernel file with this one and
 * provide some scaffold macros which will solve the rest.
 */

#include "linux_scaffold.h"

#define REG_BIT(x) (1ul << (x))

#endif /* _LINUX_BITOPS_H_ */