aboutsummaryrefslogtreecommitdiff
path: root/kernel-headers/drm/psb_ttm_fence_driver.h
blob: de9ea3229f88449caf95f30886f6b7f5b97c9429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/****************************************************************************
 ****************************************************************************
 ***
 ***   This header was automatically generated from a Linux kernel header
 ***   of the same name, to make information necessary for userspace to
 ***   call into the kernel available to libc.  It contains only constants,
 ***   structures, and macros generated from the original header, and thus,
 ***   contains no copyrightable information.
 ***
 ***   To edit the content of this header, modify the corresponding
 ***   source file (e.g. under external/kernel-headers/original/) then
 ***   run bionic/libc/kernel/tools/update_all.py
 ***
 ***   Any manual change here will be lost the next time this script will
 ***   be run. You've been warned!
 ***
 ****************************************************************************
 ****************************************************************************/
#ifndef _TTM_FENCE_DRIVER_H_
#define _TTM_FENCE_DRIVER_H_
#include <linux/kref.h>
#include <linux/spinlock.h>
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
#include <linux/wait.h>
#include "psb_ttm_fence_api.h"
#include "ttm/ttm_memory.h"
struct ttm_fence_class_manager {
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  uint32_t wrap_diff;
  uint32_t flush_diff;
  uint32_t sequence_mask;
  rwlock_t lock;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  struct list_head ring;
  uint32_t pending_flush;
  uint32_t waiting_types;
  wait_queue_head_t fence_queue;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  uint32_t latest_queued_sequence;
};
struct ttm_fence_device {
  struct ttm_mem_global * mem_glob;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  struct ttm_fence_class_manager * fence_class;
  uint32_t num_classes;
  atomic_t count;
  const struct ttm_fence_driver * driver;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
};
struct ttm_fence_class_init {
  uint32_t wrap_diff;
  uint32_t flush_diff;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  uint32_t sequence_mask;
};
struct ttm_fence_driver {
  bool(* has_irq) (struct ttm_fence_device * fdev, uint32_t fence_class, uint32_t flags);
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  int(* emit) (struct ttm_fence_device * fdev, uint32_t fence_class, uint32_t flags, uint32_t * breadcrumb, unsigned long * timeout_jiffies);
  void(* flush) (struct ttm_fence_device * fdev, uint32_t fence_class);
  void(* poll) (struct ttm_fence_device * fdev, uint32_t fence_class, uint32_t types);
  uint32_t(* needed_flush) (struct ttm_fence_object * fence);
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
  int(* wait) (struct ttm_fence_object * fence, bool lazy, bool interruptible, uint32_t mask);
  void(* signaled) (struct ttm_fence_object * fence);
  void(* lockup) (struct ttm_fence_object * fence, uint32_t fence_types);
};
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
#endif