/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/kmem.h

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-04 15:43:14 UTC
  • Revision ID: csa@suren.me-20160304154314-uor59rrkaw2hexm7
RPM generation

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
    uintptr_t pa;                                       /**< physical address of buffer */
70
70
    uintptr_t ba;                                       /**< bus address of buffer (if it is mapped for DMA operations) */
71
 
    void* volatile ua;                                  /**< pointer to buffer in the process address space */
 
71
    volatile void *ua;                                  /**< pointer to buffer in the process address space */
72
72
    size_t size;                                        /**< size of the buffer in bytes */
73
73
 
74
74
    size_t alignment_offset;                            /**< we may request alignment of allocated buffers. To enusre proper alignment the larger buffer will be allocated and the offset will specify the first position in the buffer fullfilling alignment request */
205
205
 * @param[in] k                 - kernel memory handle returned from pcilib_alloc_kernel_memory() call
206
206
 * @return                      - user-space pointer
207
207
 */
208
 
void* volatile pcilib_kmem_get_ua(pcilib_t *ctx, pcilib_kmem_handle_t *k);
 
208
volatile void *pcilib_kmem_get_ua(pcilib_t *ctx, pcilib_kmem_handle_t *k);
209
209
 
210
210
/**
211
211
 * Get a physical address of a single-buffer kernel memory
233
233
 * @param[in] block             - specifies the buffer within the kernel memory (buffers are numbered from 0)
234
234
 * @return                      - user-space pointer
235
235
 */
236
 
void* volatile pcilib_kmem_get_block_ua(pcilib_t *ctx, pcilib_kmem_handle_t *k, size_t block);
 
236
volatile void *pcilib_kmem_get_block_ua(pcilib_t *ctx, pcilib_kmem_handle_t *k, size_t block);
237
237
 
238
238
/**
239
239
 * Get a physical address of the specified kernel memory buffer