| Erik Gilling | da14b0e | 2011-03-01 14:46:11 -0800 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 2 | **************************************************************************** | 
|  | 3 | *** | 
|  | 4 | ***   This header was automatically generated from a Linux kernel header | 
|  | 5 | ***   of the same name, to make information necessary for userspace to | 
|  | 6 | ***   call into the kernel available to libc.  It contains only constants, | 
|  | 7 | ***   structures, and macros generated from the original header, and thus, | 
|  | 8 | ***   contains no copyrightable information. | 
|  | 9 | *** | 
|  | 10 | ***   To edit the content of this header, modify the corresponding | 
|  | 11 | ***   source file (e.g. under external/kernel-headers/original/) then | 
|  | 12 | ***   run bionic/libc/kernel/tools/update_all.py | 
|  | 13 | *** | 
|  | 14 | ***   Any manual change here will be lost the next time this script will | 
|  | 15 | ***   be run. You've been warned! | 
|  | 16 | *** | 
|  | 17 | **************************************************************************** | 
|  | 18 | ****************************************************************************/ | 
|  | 19 | #ifndef _LINUX_NVHDCP_H_ | 
|  | 20 | #define _LINUX_NVHDCP_H_ | 
|  | 21 | #include <linux/fb.h> | 
|  | 22 | #include <linux/types.h> | 
|  | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 24 | #include <asm/ioctl.h> | 
|  | 25 | #define TEGRA_NVHDCP_MAX_DEVS 127 | 
|  | 26 | #define TEGRA_NVHDCP_FLAG_AN 0x0001 | 
|  | 27 | #define TEGRA_NVHDCP_FLAG_AKSV 0x0002 | 
|  | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 29 | #define TEGRA_NVHDCP_FLAG_BKSV 0x0004 | 
|  | 30 | #define TEGRA_NVHDCP_FLAG_BSTATUS 0x0008 | 
|  | 31 | #define TEGRA_NVHDCP_FLAG_CN 0x0010 | 
|  | 32 | #define TEGRA_NVHDCP_FLAG_CKSV 0x0020 | 
|  | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 34 | #define TEGRA_NVHDCP_FLAG_DKSV 0x0040 | 
|  | 35 | #define TEGRA_NVHDCP_FLAG_KP 0x0080 | 
|  | 36 | #define TEGRA_NVHDCP_FLAG_S 0x0100 | 
|  | 37 | #define TEGRA_NVHDCP_FLAG_CS 0x0200 | 
|  | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 39 | #define TEGRA_NVHDCP_FLAG_V 0x0400 | 
|  | 40 | #define TEGRA_NVHDCP_FLAG_MP 0x0800 | 
|  | 41 | #define TEGRA_NVHDCP_FLAG_BKSVLIST 0x1000 | 
|  | 42 | #define TEGRA_NVHDCP_RESULT_SUCCESS 0 | 
|  | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 44 | #define TEGRA_NVHDCP_RESULT_UNSUCCESSFUL 1 | 
|  | 45 | #define TEGRA_NVHDCP_RESULT_PENDING 0x103 | 
|  | 46 | #define TEGRA_NVHDCP_RESULT_LINK_FAILED 0xc0000013 | 
|  | 47 | #define TEGRA_NVHDCP_RESULT_INVALID_PARAMETER 0xc000000d | 
|  | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 49 | #define TEGRA_NVHDCP_RESULT_INVALID_PARAMETER_MIX 0xc0000030 | 
|  | 50 | #define TEGRA_NVHDCP_RESULT_NO_MEMORY 0xc0000017 | 
|  | 51 | struct tegra_nvhdcp_packet { | 
|  | 52 | __u32 value_flags; | 
|  | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 54 | __u32 packet_results; | 
|  | 55 | __u64 c_n; | 
|  | 56 | __u64 c_ksv; | 
|  | 57 | __u32 b_status; | 
|  | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 59 | __u64 hdcp_status; | 
|  | 60 | __u64 cs; | 
|  | 61 | __u64 k_prime; | 
|  | 62 | __u64 a_n; | 
|  | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 64 | __u64 a_ksv; | 
|  | 65 | __u64 b_ksv; | 
|  | 66 | __u64 d_ksv; | 
|  | 67 | __u8 v_prime[20]; | 
|  | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 69 | __u64 m_prime; | 
|  | 70 | __u32 num_bksv_list; | 
|  | 71 | __u64 bksv_list[TEGRA_NVHDCP_MAX_DEVS]; | 
|  | 72 | }; | 
|  | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 74 | #define TEGRA_NVHDCP_POLICY_ON_DEMAND 0 | 
|  | 75 | #define TEGRA_NVHDCP_POLICY_ALWAYS_ON 1 | 
|  | 76 | #define TEGRAIO_NVHDCP_ON _IO('F', 0x70) | 
|  | 77 | #define TEGRAIO_NVHDCP_OFF _IO('F', 0x71) | 
|  | 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 79 | #define TEGRAIO_NVHDCP_SET_POLICY _IOW('F', 0x72, __u32) | 
|  | 80 | #define TEGRAIO_NVHDCP_READ_M _IOWR('F', 0x73, struct tegra_nvhdcp_packet) | 
|  | 81 | #define TEGRAIO_NVHDCP_READ_S _IOWR('F', 0x74, struct tegra_nvhdcp_packet) | 
|  | 82 | #define TEGRAIO_NVHDCP_RENEGOTIATE _IO('F', 0x75) | 
|  | 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 84 | #endif | 
|  | 85 |  |