summaryrefslogtreecommitdiff
path: root/drivers/crypto/dcp_bootstream_ioctl.h
diff options
context:
space:
mode:
authorFrank Li <Frank.Li@freescale.com>2011-03-24 14:12:39 +0800
committerJason Liu <r64343@freescale.com>2012-01-09 19:53:57 +0800
commit46c2c7af1c5631d86f449e626dd3aeb2bdfe40d6 (patch)
treea0db8a8d1fee2df685b8b0f94417f0caef7f670f /drivers/crypto/dcp_bootstream_ioctl.h
parentf991471f4e8ce4836cc590ec93826cbbf50fc4fd (diff)
ENGR00141399-3 DCP: add dcp driver support
upgrade to 2.6.38 Signed-off-by: Frank Li <Frank.Li@freescale.com>
Diffstat (limited to 'drivers/crypto/dcp_bootstream_ioctl.h')
-rw-r--r--drivers/crypto/dcp_bootstream_ioctl.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/crypto/dcp_bootstream_ioctl.h b/drivers/crypto/dcp_bootstream_ioctl.h
new file mode 100644
index 000000000000..4fa118f079c0
--- /dev/null
+++ b/drivers/crypto/dcp_bootstream_ioctl.h
@@ -0,0 +1,32 @@
+/*
+ * Freescale DCP driver for bootstream update. Only handles the OTP KEY
+ * case and can only encrypt/decrypt.
+ *
+ * Author: Pantelis Antoniou <pantelis@embeddedalley.com>
+ *
+ * Copyright (C) 2008-2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
+ */
+
+/*
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+#ifndef DCP_BOOTSTREAM_IOCTL_H
+#define DCP_BOOTSTREAM_IOCTL_H
+
+/* remember to have included the proper _IO definition
+ * file before hand.
+ * For user space it's <sys/ioctl.h>
+ */
+
+#define DBS_IOCTL_BASE 'd'
+
+#define DBS_ENC _IOW(DBS_IOCTL_BASE, 0x00, uint8_t[16])
+#define DBS_DEC _IOW(DBS_IOCTL_BASE, 0x01, uint8_t[16])
+
+#endif