Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1494)

Side by Side Diff: arch/arm/mach-tegra/nv/include/nvrm_keylist.h

Issue 3256004: [ARM] tegra: add nvos/nvrm/nvmap drivers (Closed) Base URL: ssh://git@gitrw.chromium.org/kernel.git
Patch Set: remove ap15 headers Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2009 NVIDIA Corporation.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 *
11 * Redistributions in binary form must reproduce the above copyright notice,
12 * this list of conditions and the following disclaimer in the documentation
13 * and/or other materials provided with the distribution.
14 *
15 * Neither the name of the NVIDIA Corporation nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 *
31 */
32
33 #ifndef INCLUDED_nvrm_keylist_H
34 #define INCLUDED_nvrm_keylist_H
35
36
37 #if defined(__cplusplus)
38 extern "C"
39 {
40 #endif
41
42 #include "nvrm_module.h"
43 #include "nvrm_init.h"
44
45 /** @file
46 * @brief <b>NVIDIA Driver Development Kit:
47 * Resource Manager Key-List APIs</b>
48 *
49 * @b Description: This API, defines a simple means to set/get the state
50 * of ODM-Defined Keys.
51 */
52
53 #include "nvos.h"
54 #include "nvodm_keylist_reserved.h"
55
56 /**
57 * Searches the List of Keys present and returns
58 * the Value of the appropriate Key.
59 *
60 * @param hRm Handle to the RM Device.
61 * @param KeyID ID of the key whose value is required.
62 *
63 * @retval returns the value of the corresponding key. If the Key is not
64 * present in the list, it returns 0.
65 */
66
67
68
69 NvU32 NvRmGetKeyValue(
70 NvRmDeviceHandle hRm,
71 NvU32 KeyID );
72
73 /**
74 * Searches the List of Keys Present and sets the value of the Key to the value
75 * given. If the Key is not present, it adds the key to the list and sets the
76 * value.
77 *
78 * @param hRM Handle to the RM Device.
79 * @param KeyID ID of the key whose value is to be set.
80 * @param Value Value to be set for the corresponding key.
81 *
82 * @retval NvSuccess Value has been successfully set.
83 * @retval NvError_InsufficientMemory Operation has failed while adding the
84 * key to the existing list.
85 */
86
87 NvError NvRmSetKeyValuePair(
88 NvRmDeviceHandle hRm,
89 NvU32 KeyID,
90 NvU32 Value );
91
92 #if defined(__cplusplus)
93 }
94 #endif
95
96 #endif
OLDNEW
« no previous file with comments | « arch/arm/mach-tegra/nv/include/nvrm_ioctls.h ('k') | arch/arm/mach-tegra/nv/include/nvrm_memctrl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698