aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mpu3050/mlos.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
commitfcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch)
treea57612d1888735a2ec7972891b68c1ac5ec8faea /drivers/misc/mpu3050/mlos.h
parent8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff)
Added missing tegra files.HEADmaster
Diffstat (limited to 'drivers/misc/mpu3050/mlos.h')
-rw-r--r--drivers/misc/mpu3050/mlos.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/drivers/misc/mpu3050/mlos.h b/drivers/misc/mpu3050/mlos.h
new file mode 100644
index 00000000000..4ebb86c9fa5
--- /dev/null
+++ b/drivers/misc/mpu3050/mlos.h
@@ -0,0 +1,73 @@
1/*
2 $License:
3 Copyright (C) 2010 InvenSense Corporation, All Rights Reserved.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 $
18 */
19
20#ifndef _MLOS_H
21#define _MLOS_H
22
23#ifndef __KERNEL__
24#include <stdio.h>
25#endif
26
27#include "mltypes.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33 /* ------------ */
34 /* - Defines. - */
35 /* ------------ */
36
37 /* - MLOSCreateFile defines. - */
38
39#define MLOS_GENERIC_READ ((unsigned int)0x80000000)
40#define MLOS_GENERIC_WRITE ((unsigned int)0x40000000)
41#define MLOS_FILE_SHARE_READ ((unsigned int)0x00000001)
42#define MLOS_FILE_SHARE_WRITE ((unsigned int)0x00000002)
43#define MLOS_OPEN_EXISTING ((unsigned int)0x00000003)
44
45 /* ---------- */
46 /* - Enums. - */
47 /* ---------- */
48
49 /* --------------- */
50 /* - Structures. - */
51 /* --------------- */
52
53 /* --------------------- */
54 /* - Function p-types. - */
55 /* --------------------- */
56
57 void *MLOSMalloc(unsigned int numBytes);
58 tMLError MLOSFree(void *ptr);
59 tMLError MLOSCreateMutex(HANDLE *mutex);
60 tMLError MLOSLockMutex(HANDLE mutex);
61 tMLError MLOSUnlockMutex(HANDLE mutex);
62 FILE *MLOSFOpen(char *filename);
63 void MLOSFClose(FILE *fp);
64
65 tMLError MLOSDestroyMutex(HANDLE handle);
66
67 void MLOSSleep(int mSecs);
68 unsigned long MLOSGetTickCount(void);
69
70#ifdef __cplusplus
71}
72#endif
73#endif /* _MLOS_H */