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

Unified Diff: arch/arm/mach-tegra/nv/include/linux/nvos_ioctl.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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « arch/arm/mach-tegra/nv/include/linux/nvmem_ioctl.h ('k') | arch/arm/mach-tegra/nv/include/mach/iovmm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: arch/arm/mach-tegra/nv/include/linux/nvos_ioctl.h
diff --git a/arch/arm/mach-tegra/nv/include/linux/nvos_ioctl.h b/arch/arm/mach-tegra/nv/include/linux/nvos_ioctl.h
new file mode 100644
index 0000000000000000000000000000000000000000..63aacd93b1c0e8038a01bfa74f2e56bae3a38b26
--- /dev/null
+++ b/arch/arm/mach-tegra/nv/include/linux/nvos_ioctl.h
@@ -0,0 +1,115 @@
+/*
+ * arch/arm/mach-tegra/include/linux/nvos_ioctl.h
+ *
+ * structure declarations for NvOs user-space ioctls
+ *
+ * Copyright (c) 2009, NVIDIA Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#include <linux/ioctl.h>
+#include "nvos.h"
+#include "nvcommon.h"
+
+#ifndef NVOS_LINUX_IOCTLS_H
+#define NVOS_LINUX_IOCTLS_H
+
+typedef struct
+{
+ NvU32 IoctlCode;
+ NvU32 InBufferSize;
+ NvU32 InOutBufferSize;
+ NvU32 OutBufferSize;
+ void *pBuffer;
+} NV_ALIGN(4) NvOsIoctlParams;
+
+typedef struct
+{
+ NvOsSemaphoreHandle sem;
+ NvU32 value;
+ NvError error;
+} NV_ALIGN(4) NvOsSemaphoreIoctlParams;
+
+typedef struct
+{
+ NvOsSemaphoreHandle hOrig;
+ NvOsSemaphoreHandle hNew;
+ NvError Error;
+} NV_ALIGN(4) NvOsSemaphoreUnmarshalParams;
+
+typedef struct
+{
+ NvOsSemaphoreHandle hOrig;
+ NvOsSemaphoreHandle hNew;
+ NvError Error;
+} NV_ALIGN(4) NvOsSemaphoreCloneParams;
+
+typedef struct
+{
+ NvU32 nIrqs;
+ const NvU32 *Irqs;
+ NvOsSemaphoreHandle *SemaphoreList;
+ NvError errCode;
+ NvUPtr kernelHandle;
+} NV_ALIGN(4) NvOsInterruptRegisterParams;
+
+typedef struct
+{
+ NvUPtr handle;
+ NvU32 arg;
+ NvError errCode;
+} NV_ALIGN(4) NvOsInterruptOpParams;
+
+typedef struct
+{
+ NvUPtr handle;
+ NvU32 mask;
+} NV_ALIGN(4) NvOsInterruptMaskParams;
+
+typedef struct
+{
+ NvU32 size;
+ char *text;
+} NV_ALIGN(4) NvOsDebugStringParams;
+
+typedef struct
+{
+ NvOsPhysAddr base;
+ NvU32 size;
+} NV_ALIGN(4) NvOsMemRangeParams;
+
+#define NV_IOCTL_SEMAPHORE_CREATE _IOWR('N', 0x20, NvOsSemaphoreIoctlParams)
+#define NV_IOCTL_SEMAPHORE_DESTROY _IOW('N', 0x21, NvOsSemaphoreHandle)
+#define NV_IOCTL_SEMAPHORE_CLONE \
+ _IOWR('N', 0x22, NvOsSemaphoreCloneParams)
+#define NV_IOCTL_SEMAPHORE_UNMARSHAL \
+ _IOWR('N', 0x23, NvOsSemaphoreUnmarshalParams)
+#define NV_IOCTL_SEMAPHORE_SIGNAL _IOW('N', 0x24, NvOsSemaphoreHandle)
+#define NV_IOCTL_SEMAPHORE_WAIT _IOW('N', 0x25, NvOsSemaphoreHandle)
+#define NV_IOCTL_SEMAPHORE_WAIT_TIMEOUT \
+ _IOW('N', 0x26, NvOsSemaphoreIoctlParams)
+#define NV_IOCTL_INTERRUPT_REGISTER \
+ _IOWR('N', 0x27, NvOsInterruptRegisterParams)
+#define NV_IOCTL_INTERRUPT_UNREGISTER _IOWR('N', 0x28, NvOsInterruptOpParams)
+#define NV_IOCTL_INTERRUPT_ENABLE _IOWR('N', 0x29, NvOsInterruptOpParams)
+#define NV_IOCTL_INTERRUPT_DONE _IOWR('N', 0x2A, NvOsInterruptOpParams)
+#define NV_IOCTL_INTERRUPT_MASK _IOWR('N', 0x2B, NvOsInterruptOpParams)
+#define NV_IOCTL_GLOBAL_LOCK _IO('N', 0x2C)
+#define NV_IOCTL_GLOBAL_UNLOCK _IO('N', 0x2D)
+#define NV_IOCTL_DEBUG_STRING _IOW('N', 0x2E, NvOsDebugStringParams)
+#define NV_IOCTL_MEMORY_RANGE _IOW('N', 0x2F, NvOsMemRangeParams)
+
+#endif
« no previous file with comments | « arch/arm/mach-tegra/nv/include/linux/nvmem_ioctl.h ('k') | arch/arm/mach-tegra/nv/include/mach/iovmm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698