projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.denx.de/u-boot-tegra
[platform/kernel/u-boot.git]
/
include
/
os.h
diff --git
a/include/os.h
b/include/os.h
index
e3645e0
..
ffbdce8
100644
(file)
--- a/
include/os.h
+++ b/
include/os.h
@@
-13,6
+13,7
@@
#include <linux/types.h>
#include <linux/types.h>
+struct rtc_time;
struct sandbox_state;
/**
struct sandbox_state;
/**
@@
-64,7
+65,7
@@
off_t os_lseek(int fd, off_t offset, int whence);
* Access to the OS open() system call
*
* \param pathname Pathname of file to open
* Access to the OS open() system call
*
* \param pathname Pathname of file to open
- * \param flags Flags, like O
_RDONLY,
O_RDWR
+ * \param flags Flags, like O
S_O_RDONLY, OS_
O_RDWR
* \return file descriptor, or -1 on error
*/
int os_open(const char *pathname, int flags);
* \return file descriptor, or -1 on error
*/
int os_open(const char *pathname, int flags);
@@
-277,4
+278,14
@@
int os_read_ram_buf(const char *fname);
*/
int os_jump_to_image(const void *dest, int size);
*/
int os_jump_to_image(const void *dest, int size);
+/**
+ * Read the current system time
+ *
+ * This reads the current Local Time and places it into the provided
+ * structure.
+ *
+ * @param rt Place to put system time
+ */
+void os_localtime(struct rtc_time *rt);
+
#endif
#endif