• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVKM_ENUM_H__
3 #define __NVKM_ENUM_H__
4 #include <core/os.h>
5 
6 struct nvkm_enum {
7 	u32 value;
8 	const char *name;
9 	const void *data;
10 	u32 data2;
11 	int inst;
12 };
13 
14 const struct nvkm_enum *nvkm_enum_find(const struct nvkm_enum *, u32 value);
15 
16 struct nvkm_bitfield {
17 	u32 mask;
18 	const char *name;
19 };
20 
21 void nvkm_snprintbf(char *, int, const struct nvkm_bitfield *, u32 value);
22 #endif
23