card_base.h (9d14e766183efb44579e9f14ed6e3417c784b798) card_base.h (658a494a5b793ab19575f6825cd3f01ce662b0c6)
1#ifndef __CARD_BASE_H__
2#define __CARD_BASE_H__
3
4/**
5 * IBM Accelerator Family 'GenWQE'
6 *
7 * (C) Copyright IBM Corp. 2013
8 *

--- 476 unchanged lines hidden (view full) ---

485int genwqe_init_debug_data(struct genwqe_dev *cd,
486 struct genwqe_debug_data *d);
487
488void genwqe_init_crc32(void);
489int genwqe_read_app_id(struct genwqe_dev *cd, char *app_name, int len);
490
491/* Memory allocation/deallocation; dma address handling */
492int genwqe_user_vmap(struct genwqe_dev *cd, struct dma_mapping *m,
1#ifndef __CARD_BASE_H__
2#define __CARD_BASE_H__
3
4/**
5 * IBM Accelerator Family 'GenWQE'
6 *
7 * (C) Copyright IBM Corp. 2013
8 *

--- 476 unchanged lines hidden (view full) ---

485int genwqe_init_debug_data(struct genwqe_dev *cd,
486 struct genwqe_debug_data *d);
487
488void genwqe_init_crc32(void);
489int genwqe_read_app_id(struct genwqe_dev *cd, char *app_name, int len);
490
491/* Memory allocation/deallocation; dma address handling */
492int genwqe_user_vmap(struct genwqe_dev *cd, struct dma_mapping *m,
493 void *uaddr, unsigned long size,
494 struct ddcb_requ *req);
493 void *uaddr, unsigned long size);
495
494
496int genwqe_user_vunmap(struct genwqe_dev *cd, struct dma_mapping *m,
497 struct ddcb_requ *req);
495int genwqe_user_vunmap(struct genwqe_dev *cd, struct dma_mapping *m);
498
499static inline bool dma_mapping_used(struct dma_mapping *m)
500{
501 if (!m)
502 return 0;
503 return m->size != 0;
504}
505

--- 82 unchanged lines hidden ---
496
497static inline bool dma_mapping_used(struct dma_mapping *m)
498{
499 if (!m)
500 return 0;
501 return m->size != 0;
502}
503

--- 82 unchanged lines hidden ---