summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h')
-rw-r--r--drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h
new file mode 100644
index 00000000..929517ad
--- /dev/null
+++ b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.h
@@ -0,0 +1,45 @@
1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 */
13
14#ifndef _BOARDOBJGRP_E255_H_
15#define _BOARDOBJGRP_E255_H_
16
17#include <linux/nvgpu.h>
18#include "gk20a/gk20a.h"
19#include "gk20a/pmu_gk20a.h"
20#include "ctrl/ctrlboardobj.h"
21#include "boardobj.h"
22#include "boardobjgrpmask.h"
23#include "boardobj/boardobjgrp.h"
24#include "boardobjgrp_e255.h"
25
26/*
27 * boardobjgrp_e255 is @ref BOARDOBJGRP child class allowing storage of up
28 * to 255 @ref BOARDOBJ object pointers with single static 255-bit mask denoting
29 * valid object pointers.
30 */
31struct boardobjgrp_e255 {
32 struct boardobjgrp super;
33 struct boardobj *objects[CTRL_BOARDOBJGRP_E255_MAX_OBJECTS];
34 struct boardobjgrpmask_e255 mask;
35};
36
37#define boardobjgrp_pmudatainit_e255(g, pboardpbjgrp, pboardobjgrppmu) \
38 boardobjgrp_pmudatainit_super(g, pboardpbjgrp, pboardobjgrppmu)
39
40/* Constructor and destructor */
41u32 boardobjgrpconstruct_e255(struct boardobjgrp_e255 *pboardobjgrp);
42boardobjgrp_destruct boardobjgrpdestruct_e255;
43boardobjgrp_pmuhdrdatainit boardobjgrp_pmuhdrdatainit_e255;
44
45#endif