File: compat_64.h

package info (click to toggle)
alsa-driver 1.0.13-5etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 20,108 kB
  • ctags: 50,477
  • sloc: ansic: 319,881; sh: 32,930; makefile: 2,015; python: 1,527; perl: 1,316; xml: 896; awk: 66
file content (31 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __ALSA_COMPAT_64_H
#define __ALSA_COMPAT_64_H

#include <linux/types.h>

/* FIXME: it is valid for x86_64, check other archs */

typedef s32             compat_time_t;

struct compat_timespec {
	compat_time_t   tv_sec;
	s32             tv_nsec;
};

struct compat_timeval {
	compat_time_t   tv_sec;
	s32             tv_usec;
};

/* compat_to() macro */
#ifndef A
#ifdef CONFIG_PPC64
#include <asm/ppc32.h>
#else
/* x86-64, sparc64 */
#define A(__x) ((void *)(unsigned long)(__x))
#endif
#endif
#define compat_ptr(x)	A(x)

#endif /* __ALSA_COMPAT_64_H */