summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra_exports.c
diff options
context:
space:
mode:
authorMichael Hsu <mhsu@nvidia.com>2010-01-05 14:22:34 -0800
committerMichael Hsu <mhsu@nvidia.com>2010-01-05 17:58:22 -0800
commit80e29e5095c93722ce953c61cbd2d34cdcc478f5 (patch)
tree8873e077402ebef7908ad1f553527bf1049ebe16 /arch/arm/mach-tegra/tegra_exports.c
parent68fb5afd36f7a52dda43e429106ea8108de1b6e3 (diff)
Export Tegra-specific functions for use by kernel loadable modules.
Tegra has functions which aren't exposed by standard linux drivers (NvRM/NvOS API). Make these functions available to kernel loadable modules, using the EXPORT_SYMBOL macro. Change-Id: I6cd85d41727540e49a0272e9173bd84675840c88
Diffstat (limited to 'arch/arm/mach-tegra/tegra_exports.c')
-rw-r--r--arch/arm/mach-tegra/tegra_exports.c58
1 files changed, 58 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/tegra_exports.c b/arch/arm/mach-tegra/tegra_exports.c
new file mode 100644
index 000000000000..d140eb707f60
--- /dev/null
+++ b/arch/arm/mach-tegra/tegra_exports.c
@@ -0,0 +1,58 @@
+/*
+ * tegra_exports.c
+ *
+ * Export Tegra-specific functions for use by kernel loadable modules.
+ *
+ * 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/kernel.h>
+#include <linux/module.h>
+#include "nvrm_spi.h"
+#include "nvodm_services.h"
+#include "nvodm_query_discovery.h"
+#include "nvos.h"
+
+EXPORT_SYMBOL(NvOdmGpioOpen);
+EXPORT_SYMBOL(NvOdmGpioClose);
+EXPORT_SYMBOL(NvOdmGpioConfig);
+EXPORT_SYMBOL(NvOdmGpioGetState);
+EXPORT_SYMBOL(NvOdmGpioSetState);
+EXPORT_SYMBOL(NvOdmGpioAcquirePinHandle);
+EXPORT_SYMBOL(NvOdmGpioReleasePinHandle);
+EXPORT_SYMBOL(NvOdmGpioInterruptRegister);
+EXPORT_SYMBOL(NvOdmGpioInterruptUnregister);
+EXPORT_SYMBOL(NvOdmGpioInterruptDone);
+EXPORT_SYMBOL(NvOdmOsSemaphoreCreate);
+EXPORT_SYMBOL(NvOdmOsSemaphoreDestroy);
+EXPORT_SYMBOL(NvOdmOsSemaphoreSignal);
+EXPORT_SYMBOL(NvOdmOsSemaphoreWait);
+EXPORT_SYMBOL(NvOdmOsSleepMS);
+EXPORT_SYMBOL(NvOdmPeripheralGetGuid);
+EXPORT_SYMBOL(NvOsAlloc);
+EXPORT_SYMBOL(NvOsFree);
+EXPORT_SYMBOL(NvOsMemset);
+EXPORT_SYMBOL(NvOsThreadCreate);
+EXPORT_SYMBOL(NvOsThreadJoin);
+EXPORT_SYMBOL(NvOsDebugPrintf);
+EXPORT_SYMBOL(NvRmOpen);
+EXPORT_SYMBOL(NvRmClose);
+EXPORT_SYMBOL(NvRmSpiOpen);
+EXPORT_SYMBOL(NvRmSpiClose);
+EXPORT_SYMBOL(NvRmSpiStartTransaction);
+EXPORT_SYMBOL(NvRmSpiGetTransactionData);
+