diff options
author | Erik Gilling <konkers@android.com> | 2011-03-01 14:46:11 -0800 |
---|---|---|
committer | Erik Gilling <konkers@android.com> | 2011-03-01 14:46:11 -0800 |
commit | da14b0e1ddabf753285e913a7601aafccd294617 (patch) | |
tree | 1eb2d4ede53ca08aa14a9797d806ed80fc1a7bb6 | |
parent | 0ee092fb23318bc479de8e6514fbf2e05e0ce646 (diff) | |
download | bionic-da14b0e1ddabf753285e913a7601aafccd294617.zip bionic-da14b0e1ddabf753285e913a7601aafccd294617.tar.gz bionic-da14b0e1ddabf753285e913a7601aafccd294617.tar.bz2 |
add linux/nvhdcp.h header
Change-Id: I74a1cf90bc9807002869aa9c7b5eddb065638db2
-rw-r--r-- | libc/kernel/common/linux/nvhdcp.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/nvhdcp.h b/libc/kernel/common/linux/nvhdcp.h new file mode 100644 index 0000000..d21ea55 --- /dev/null +++ b/libc/kernel/common/linux/nvhdcp.h @@ -0,0 +1,85 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _LINUX_NVHDCP_H_ +#define _LINUX_NVHDCP_H_ +#include <linux/fb.h> +#include <linux/types.h> +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#include <asm/ioctl.h> +#define TEGRA_NVHDCP_MAX_DEVS 127 +#define TEGRA_NVHDCP_FLAG_AN 0x0001 +#define TEGRA_NVHDCP_FLAG_AKSV 0x0002 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define TEGRA_NVHDCP_FLAG_BKSV 0x0004 +#define TEGRA_NVHDCP_FLAG_BSTATUS 0x0008 +#define TEGRA_NVHDCP_FLAG_CN 0x0010 +#define TEGRA_NVHDCP_FLAG_CKSV 0x0020 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define TEGRA_NVHDCP_FLAG_DKSV 0x0040 +#define TEGRA_NVHDCP_FLAG_KP 0x0080 +#define TEGRA_NVHDCP_FLAG_S 0x0100 +#define TEGRA_NVHDCP_FLAG_CS 0x0200 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define TEGRA_NVHDCP_FLAG_V 0x0400 +#define TEGRA_NVHDCP_FLAG_MP 0x0800 +#define TEGRA_NVHDCP_FLAG_BKSVLIST 0x1000 +#define TEGRA_NVHDCP_RESULT_SUCCESS 0 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define TEGRA_NVHDCP_RESULT_UNSUCCESSFUL 1 +#define TEGRA_NVHDCP_RESULT_PENDING 0x103 +#define TEGRA_NVHDCP_RESULT_LINK_FAILED 0xc0000013 +#define TEGRA_NVHDCP_RESULT_INVALID_PARAMETER 0xc000000d +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define TEGRA_NVHDCP_RESULT_INVALID_PARAMETER_MIX 0xc0000030 +#define TEGRA_NVHDCP_RESULT_NO_MEMORY 0xc0000017 +struct tegra_nvhdcp_packet { + __u32 value_flags; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u32 packet_results; + __u64 c_n; + __u64 c_ksv; + __u32 b_status; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u64 hdcp_status; + __u64 cs; + __u64 k_prime; + __u64 a_n; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u64 a_ksv; + __u64 b_ksv; + __u64 d_ksv; + __u8 v_prime[20]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u64 m_prime; + __u32 num_bksv_list; + __u64 bksv_list[TEGRA_NVHDCP_MAX_DEVS]; +}; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define TEGRA_NVHDCP_POLICY_ON_DEMAND 0 +#define TEGRA_NVHDCP_POLICY_ALWAYS_ON 1 +#define TEGRAIO_NVHDCP_ON _IO('F', 0x70) +#define TEGRAIO_NVHDCP_OFF _IO('F', 0x71) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define TEGRAIO_NVHDCP_SET_POLICY _IOW('F', 0x72, __u32) +#define TEGRAIO_NVHDCP_READ_M _IOWR('F', 0x73, struct tegra_nvhdcp_packet) +#define TEGRAIO_NVHDCP_READ_S _IOWR('F', 0x74, struct tegra_nvhdcp_packet) +#define TEGRAIO_NVHDCP_RENEGOTIATE _IO('F', 0x75) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#endif + |