]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit799882c178b9ba560869f099e33eea9e9ada5a28
treed3f3ffe5ee5acd780749b690921e97c09aa76845
parent6a731afa2745082a6f6d3bbe8071d58af92b90cc
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]