omap-aes.c (68fb31706d50dd5d337cd7928aeb780358b910a5) omap-aes.c (45c3eb7d3a07eb08d1b5b0f5983a996d41610b84)
1/*
2 * Cryptographic API.
3 *
4 * Support for OMAP AES HW acceleration.
5 *
6 * Copyright (c) 2010 Nokia Corporation
7 * Author: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
8 *

--- 15 unchanged lines hidden (view full) ---

24#include <linux/scatterlist.h>
25#include <linux/dma-mapping.h>
26#include <linux/io.h>
27#include <linux/crypto.h>
28#include <linux/interrupt.h>
29#include <crypto/scatterwalk.h>
30#include <crypto/aes.h>
31
1/*
2 * Cryptographic API.
3 *
4 * Support for OMAP AES HW acceleration.
5 *
6 * Copyright (c) 2010 Nokia Corporation
7 * Author: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
8 *

--- 15 unchanged lines hidden (view full) ---

24#include <linux/scatterlist.h>
25#include <linux/dma-mapping.h>
26#include <linux/io.h>
27#include <linux/crypto.h>
28#include <linux/interrupt.h>
29#include <crypto/scatterwalk.h>
30#include <crypto/aes.h>
31
32#include <plat-omap/dma-omap.h>
32#include <linux/omap-dma.h>
33
34/* OMAP TRM gives bitfields as start:end, where start is the higher bit
35 number. For example 7:0 */
36#define FLD_MASK(start, end) (((1 << ((start) - (end) + 1)) - 1) << (end))
37#define FLD_VAL(val, start, end) (((val) << (end)) & FLD_MASK(start, end))
38
39#define AES_REG_KEY(x) (0x1C - ((x ^ 0x01) * 0x04))
40#define AES_REG_IV(x) (0x20 + ((x) * 0x04))

--- 917 unchanged lines hidden ---
33
34/* OMAP TRM gives bitfields as start:end, where start is the higher bit
35 number. For example 7:0 */
36#define FLD_MASK(start, end) (((1 << ((start) - (end) + 1)) - 1) << (end))
37#define FLD_VAL(val, start, end) (((val) << (end)) & FLD_MASK(start, end))
38
39#define AES_REG_KEY(x) (0x1C - ((x ^ 0x01) * 0x04))
40#define AES_REG_IV(x) (0x20 + ((x) * 0x04))

--- 917 unchanged lines hidden ---