pcilib_types.h 509 B

12345678910111213141516171819202122232425
  1. #ifndef _PCILIB_TYPES_H
  2. #define _PCILIB_TYPES_H
  3. typedef enum {
  4. PCILIB_KMEM_TYPE_CONSISTENT = 0,
  5. PCILIB_KMEM_TYPE_PAGE,
  6. } pcilib_kmem_type_t;
  7. typedef enum {
  8. PCILIB_KMEM_USE_DMA = 1,
  9. } pcilib_kmem_use_t;
  10. typedef enum {
  11. PCILIB_KMEM_SYNC_TODEVICE = 1,
  12. PCILIB_KMEM_SYNC_FROMDEVICE = 2
  13. } pcilib_kmem_sync_direction_t;
  14. #define PCILIB_KMEM_USE(type, subtype) (((type) << 16)|(subtype))
  15. //pcilib_alloc_kmem_buffer(pcilib_t *ctx, size_t size, size_t alignment)
  16. #endif /* _PCILIB_TYPES_H */