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

Side by Side Diff: arch/arm/mach-tegra/nv/include/nvec_device.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
« no previous file with comments | « arch/arm/mach-tegra/nv/include/nvec.h ('k') | arch/arm/mach-tegra/nv/include/nverror.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2010 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_NVEC_DEVICE_H
34 #define INCLUDED_NVEC_DEVICE_H
35
36
37 #if defined(__cplusplus)
38 extern "C"
39 {
40 #endif
41
42 #define nvec_get_drvdata(f) dev_get_drvdata(&(f)->dev)
43 #define nvec_set_drvdata(f,d) dev_set_drvdata(&(f)->dev, d)
44
45 struct nvec_driver;
46
47 struct nvec_device {
48 char *name;
49 struct device *parent;
50 struct device dev;
51 struct bus_type *bus; /* type of bus device is on */
52 struct nvec_driver *driver; /* which driver has allocated this
53 device */
54 };
55
56 extern int nvec_register_device(struct nvec_device *pdev);
57 extern void nvec_unregister_device(struct nvec_device *pdev);
58
59 /*
60 * NVEC function device driver
61 */
62 struct nvec_driver {
63 char *name;
64 struct device_driver driver;
65 struct device dev;
66
67 int (*probe)(struct nvec_device *);
68 void (*remove)(struct nvec_device *);
69
70 int (*suspend)(struct nvec_device *dev, pm_message_t state);
71 int (*resume)(struct nvec_device *dev);
72 };
73
74 extern int nvec_register_driver(struct nvec_driver *);
75 extern void nvec_unregister_driver(struct nvec_driver *);
76
77 #if defined(__cplusplus)
78 }
79 #endif
80
81 #endif // INCLUDED_NVEC_DEVICE_H
OLDNEW
« no previous file with comments | « arch/arm/mach-tegra/nv/include/nvec.h ('k') | arch/arm/mach-tegra/nv/include/nverror.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698