ocxl: Add a kernel API for other opencapi drivers
authorFrederic Barrat <fbarrat@linux.vnet.ibm.com>
Tue, 23 Jan 2018 11:31:43 +0000 (12:31 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Jan 2018 00:42:59 +0000 (11:42 +1100)
commit280b983ce2b8759722d911ea4b5af66e95d84e09
treed3f3ffe5ee5acd780749b690921e97c09aa76845
parentaeddad1760aeb206d912b27b230269407efd5b06
ocxl: Add a kernel API for other opencapi drivers

Some of the functions done by the generic driver should also be needed
by other opencapi drivers: attaching a context to an adapter,
translation fault handling, AFU interrupt allocation...

So to avoid code duplication, the driver provides a kernel API that
other drivers can use, similar to calling a in-kernel library.

It is still a bit theoretical, for lack of real hardware, and will
likely need adjustements down the road. But we used the cxlflash
driver as a guinea pig.

Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/ocxl/config.c
drivers/misc/ocxl/link.c
drivers/misc/ocxl/ocxl_internal.h
include/misc/ocxl.h [new file with mode: 0644]