Linux Audio

Check our new training course

Loading...
Note: File does not exist in v3.5.6.
 1/*
 2 * Copyright 2012 Tilera Corporation. All Rights Reserved.
 3 *
 4 *   This program is free software; you can redistribute it and/or
 5 *   modify it under the terms of the GNU General Public License
 6 *   as published by the Free Software Foundation, version 2.
 7 *
 8 *   This program is distributed in the hope that it will be useful, but
 9 *   WITHOUT ANY WARRANTY; without even the implied warranty of
10 *   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
11 *   NON INFRINGEMENT.  See the GNU General Public License for
12 *   more details.
13 */
14
15#ifndef __TILE_VDSO_H__
16#define __TILE_VDSO_H__
17
18#include <linux/types.h>
19
20/*
21 * Note about the vdso_data structure:
22 *
23 * NEVER USE THEM IN USERSPACE CODE DIRECTLY. The layout of the
24 * structure is supposed to be known only to the function in the vdso
25 * itself and may change without notice.
26 */
27
28struct vdso_data {
29	__u64 tz_update_count;  /* Timezone atomicity ctr             */
30	__u64 tb_update_count;  /* Timebase atomicity ctr             */
31	__u64 xtime_tod_stamp;  /* TOD clock for xtime                */
32	__u64 xtime_clock_sec;  /* Kernel time second                 */
33	__u64 xtime_clock_nsec; /* Kernel time nanosecond             */
34	__u64 wtom_clock_sec;   /* Wall to monotonic clock second     */
35	__u64 wtom_clock_nsec;  /* Wall to monotonic clock nanosecond */
36	__u32 mult;             /* Cycle to nanosecond multiplier     */
37	__u32 shift;            /* Cycle to nanosecond divisor (power of two) */
38	__u32 tz_minuteswest;   /* Minutes west of Greenwich          */
39	__u32 tz_dsttime;       /* Type of dst correction             */
40};
41
42extern struct vdso_data *vdso_data;
43
44/* __vdso_rt_sigreturn is defined with the addresses in the vdso page. */
45extern void __vdso_rt_sigreturn(void);
46
47extern int setup_vdso_pages(void);
48
49#endif /* __TILE_VDSO_H__ */