crypto: nx - add PowerNV platform NX-842 driver
Add driver for NX-842 hardware on the PowerNV platform. This allows the use of the 842 compression hardware coprocessor on the PowerNV platform. 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
959e6659b6
commit
99182a42b7
@@ -160,15 +160,6 @@ static inline unsigned long nx842_get_scatterlist_size(
|
||||
return sl->entry_nr * sizeof(struct nx842_slentry);
|
||||
}
|
||||
|
||||
static inline unsigned long nx842_get_pa(void *addr)
|
||||
{
|
||||
if (is_vmalloc_addr(addr))
|
||||
return page_to_phys(vmalloc_to_page(addr))
|
||||
+ offset_in_page(addr);
|
||||
else
|
||||
return __pa(addr);
|
||||
}
|
||||
|
||||
static int nx842_build_scatterlist(unsigned long buf, int len,
|
||||
struct nx842_scatterlist *sl)
|
||||
{
|
||||
|
Reference in New Issue
Block a user