@@ -42,20 +42,20 @@ areas on the the AFU. Endian conversion is handled automatically.
4242# Usage
4343A typical use of libocxl will follow this pattern:
4444
45- 1 . ** Setup:** optionally turn on error reporting within the library : ocxl\_ want \_ verbose \_ errors ().
45+ 1 . ** Setup:** optionally turn on error reporting for the open calls : ocxl\_ enable \_ messages ().
46462 . ** Open the device:** ocxl\_ afu\_ open() if an AFU name is used, or ocxl\_ afu\_ open\_ from\_ dev() if
47- a device path is used.
48- 3 . ** Allocate IRQs:** ocxl\_ afu \ _ irq\_ alloc(). This returns a sequential per-AFU IRQ number.
47+ a device path is used. Optionally turn on error reporting for the AFU: ocxl \_ afu \_ enable \_ messages().
48+ 3 . ** Allocate IRQs:** ocxl\_ irq\_ alloc(). This returns a sequential per-AFU IRQ number.
4949 An opaque pointer is associated with the
5050 handle in which the caller can store additional information. This is not used by OpenCAPI,
5151 but is passed as part of the event information to provide additional context to the IRQ handler.
52524 . ** Configure global MMIO:** Some AFUs may have a global MMIO area, which will contain configuration
53- information that will affect all PASIDs on the AFU. Use ocxl\_ mmio\_ map to make the area available,
53+ information that will affect all PASIDs on the AFU. Use ocxl\_ mmio\_ map() to make the area available,
5454 then use ocxl\_ mmio\_ write32() and ocxl\_ mmio\_ write64() to write the information.
55555 . ** Configure the per-PASID MMIO:** Some AFUs support multiple contexts, and each context will
5656 get it's own MMIO area for configuration and communication. Typical information that may
5757 be communicated across the MMIO interface include IRQ handles (obtained with
58- ocxl\_ afu \ _ irq\_ get\_ id ()), and pointers to AFU-specific
58+ ocxl\_ irq\_ get\_ handle ()), and pointers to AFU-specific
5959 data structures. Use ocxl\_ mmio\_ map to make the area available, then use
6060 ocxl\_ mmio\_ write32() and ocxl\_ mmio\_ write64() to write the information.
61616 . ** Attach the AFU context to the process:** Use ocxl\_ afu\_ attach() to make the process's address space available
@@ -68,7 +68,7 @@ A typical use of libocxl will follow this pattern:
6868 the MMIO area. Typically, bulk data should be written to a pointer passed to the AFU, however,
6969 small quantities of data may be read from an MMIO area using ocxl\_ mmio\_ read32() and
7070 ocxl\_ mmio\_ read64().
71- 10 . ** Termination:** ocxl\_ afu\_ free () will free all resources associated with an AFU handle.
71+ 10 . ** Termination:** ocxl\_ afu\_ close () will free all resources associated with an AFU handle.
7272
7373# Development
7474Patches may be submitted via Github pull requests. Please prepare your patches
0 commit comments