linux/drivers/cxl
Dan Williams a261e9a157 cxl/pci: Add @base to cxl_register_map
In addition to carrying @barno, @block_offset, and @reg_type, add @base
to keep all map/unmap parameters in one object. The helpers
cxl_{map,unmap}_regblock() handle adjusting @base to the @block_offset
at map and unmap time.

Document that @base incorporates @block_offset so that downstream
consumers of a mapped cxl_register_map instance do not need perform any
fixups / can use @base directly.

Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/163433497228.889435.11271988238496181536.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2021-10-29 11:53:51 -07:00
..
core cxl/core: Split decoder setup into alloc + add 2021-09-21 14:09:34 -07:00
acpi.c cxl/acpi: Do not fail cxl_acpi_probe() based on a missing CHBS 2021-10-08 01:05:31 -07:00
cxl.h cxl/pci: Add @base to cxl_register_map 2021-10-29 11:53:51 -07:00
cxlmem.h cxl/mbox: Move command definitions to common location 2021-09-21 14:09:34 -07:00
Kconfig cxl/pmem: Add initial infrastructure for pmem support 2021-06-15 16:47:14 -07:00
Makefile cxl: Move cxl_core to new directory 2021-08-06 08:22:53 -07:00
pci.c cxl/pci: Add @base to cxl_register_map 2021-10-29 11:53:51 -07:00
pci.h cxl/pci: Convert register block identifiers to an enum 2021-10-29 11:53:51 -07:00
pmem.c tools/testing/cxl: Introduce a mock memory device + driver 2021-09-21 14:09:34 -07:00