crypto: nx - add LE support to pSeries platform driver
Add support to the nx-842-pseries.c driver for running in little endian mode. The pSeries platform NX 842 driver currently only works as big endian. This adds cpu_to_be*() and be*_to_cpu() in the appropriate places to work in LE mode also. Signed-off-by: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:

committed by
Herbert Xu

parent
7793bda8fe
commit
c47d63020c
@@ -88,7 +88,8 @@
|
||||
#define CCB_CM_EXTRA_WRITE (CCB_CM0_ALL_COMPLETIONS & CCB_CM12_STORE)
|
||||
#define CCB_CM_INTERRUPT (CCB_CM0_ALL_COMPLETIONS & CCB_CM12_INTERRUPT)
|
||||
|
||||
#define LEN_ON_PAGE(pa) (PAGE_SIZE - ((pa) & ~PAGE_MASK))
|
||||
#define LEN_ON_SIZE(pa, size) ((size) - ((pa) & ((size) - 1)))
|
||||
#define LEN_ON_PAGE(pa) LEN_ON_SIZE(pa, PAGE_SIZE)
|
||||
|
||||
static inline unsigned long nx842_get_pa(void *addr)
|
||||
{
|
||||
|
Reference in New Issue
Block a user