diff options
| author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-10-22 08:34:51 -0400 |
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-10-22 08:34:51 -0400 |
| commit | c2fb7916927e989ea424e61ce5fe617e54878827 (patch) | |
| tree | 02f9d5482075f8931637d82bb697a6470270136a /include/uapi/linux/random.h | |
| parent | 29de6ce574870a0d3fd157afdbf51c0282e2bf63 (diff) | |
| parent | 6f0c0580b70c89094b3422ba81118c7b959c7556 (diff) | |
Merge tag 'v3.7-rc2' into drm-intel-next-queued
Linux 3.7-rc2
Backmerge to solve two ugly conflicts:
- uapi. We've already added new ioctl definitions for -next. Do I need to say more?
- wc support gtt ptes. We've had to revert this for snb+ for 3.7 and
also fix a few other things in the code. Now we know how to make it
work on snb+, but to avoid losing the other fixes do the backmerge
first before re-enabling wc gtt ptes on snb+.
And a few other minor things, among them git getting confused in
intel_dp.c and seemingly causing a conflict out of nothing ...
Conflicts:
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_modes.c
include/drm/i915_drm.h
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/uapi/linux/random.h')
| -rw-r--r-- | include/uapi/linux/random.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/include/uapi/linux/random.h b/include/uapi/linux/random.h new file mode 100644 index 000000000000..7471b5b3b8ba --- /dev/null +++ b/include/uapi/linux/random.h | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* | ||
| 2 | * include/linux/random.h | ||
| 3 | * | ||
| 4 | * Include file for the random number generator. | ||
| 5 | */ | ||
| 6 | |||
| 7 | #ifndef _UAPI_LINUX_RANDOM_H | ||
| 8 | #define _UAPI_LINUX_RANDOM_H | ||
| 9 | |||
| 10 | #include <linux/types.h> | ||
| 11 | #include <linux/ioctl.h> | ||
| 12 | #include <linux/irqnr.h> | ||
| 13 | |||
| 14 | /* ioctl()'s for the random number generator */ | ||
| 15 | |||
| 16 | /* Get the entropy count. */ | ||
| 17 | #define RNDGETENTCNT _IOR( 'R', 0x00, int ) | ||
| 18 | |||
| 19 | /* Add to (or subtract from) the entropy count. (Superuser only.) */ | ||
| 20 | #define RNDADDTOENTCNT _IOW( 'R', 0x01, int ) | ||
| 21 | |||
| 22 | /* Get the contents of the entropy pool. (Superuser only.) */ | ||
| 23 | #define RNDGETPOOL _IOR( 'R', 0x02, int [2] ) | ||
| 24 | |||
| 25 | /* | ||
| 26 | * Write bytes into the entropy pool and add to the entropy count. | ||
| 27 | * (Superuser only.) | ||
| 28 | */ | ||
| 29 | #define RNDADDENTROPY _IOW( 'R', 0x03, int [2] ) | ||
| 30 | |||
| 31 | /* Clear entropy count to 0. (Superuser only.) */ | ||
| 32 | #define RNDZAPENTCNT _IO( 'R', 0x04 ) | ||
| 33 | |||
| 34 | /* Clear the entropy pool and associated counters. (Superuser only.) */ | ||
| 35 | #define RNDCLEARPOOL _IO( 'R', 0x06 ) | ||
| 36 | |||
| 37 | struct rand_pool_info { | ||
| 38 | int entropy_count; | ||
| 39 | int buf_size; | ||
| 40 | __u32 buf[0]; | ||
| 41 | }; | ||
| 42 | |||
| 43 | struct rnd_state { | ||
| 44 | __u32 s1, s2, s3; | ||
| 45 | }; | ||
| 46 | |||
| 47 | /* Exported functions */ | ||
| 48 | |||
| 49 | |||
| 50 | #endif /* _UAPI_LINUX_RANDOM_H */ | ||
