diff options
Diffstat (limited to 'drivers/gpu/drm/drm_crtc_internal.h')
| -rw-r--r-- | drivers/gpu/drm/drm_crtc_internal.h | 88 |
1 files changed, 87 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc_internal.h b/drivers/gpu/drm/drm_crtc_internal.h index a78c138282ea..47a500b90fd7 100644 --- a/drivers/gpu/drm/drm_crtc_internal.h +++ b/drivers/gpu/drm/drm_crtc_internal.h | |||
| @@ -31,14 +31,100 @@ | |||
| 31 | * and are not exported to drivers. | 31 | * and are not exported to drivers. |
| 32 | */ | 32 | */ |
| 33 | 33 | ||
| 34 | |||
| 35 | /* drm_crtc.c */ | ||
| 36 | void drm_connector_ida_init(void); | ||
| 37 | void drm_connector_ida_destroy(void); | ||
| 34 | int drm_mode_object_get(struct drm_device *dev, | 38 | int drm_mode_object_get(struct drm_device *dev, |
| 35 | struct drm_mode_object *obj, uint32_t obj_type); | 39 | struct drm_mode_object *obj, uint32_t obj_type); |
| 36 | void drm_mode_object_unregister(struct drm_device *dev, | 40 | void drm_mode_object_unregister(struct drm_device *dev, |
| 37 | struct drm_mode_object *object); | 41 | struct drm_mode_object *object); |
| 42 | bool drm_property_change_valid_get(struct drm_property *property, | ||
| 43 | uint64_t value, | ||
| 44 | struct drm_mode_object **ref); | ||
| 45 | void drm_property_change_valid_put(struct drm_property *property, | ||
| 46 | struct drm_mode_object *ref); | ||
| 47 | |||
| 48 | int drm_plane_check_pixel_format(const struct drm_plane *plane, | ||
| 49 | u32 format); | ||
| 50 | int drm_crtc_check_viewport(const struct drm_crtc *crtc, | ||
| 51 | int x, int y, | ||
| 52 | const struct drm_display_mode *mode, | ||
| 53 | const struct drm_framebuffer *fb); | ||
| 54 | |||
| 55 | void drm_fb_release(struct drm_file *file_priv); | ||
| 56 | void drm_property_destroy_user_blobs(struct drm_device *dev, | ||
| 57 | struct drm_file *file_priv); | ||
| 58 | |||
| 59 | /* dumb buffer support IOCTLs */ | ||
| 60 | int drm_mode_create_dumb_ioctl(struct drm_device *dev, | ||
| 61 | void *data, struct drm_file *file_priv); | ||
| 62 | int drm_mode_mmap_dumb_ioctl(struct drm_device *dev, | ||
| 63 | void *data, struct drm_file *file_priv); | ||
| 64 | int drm_mode_destroy_dumb_ioctl(struct drm_device *dev, | ||
| 65 | void *data, struct drm_file *file_priv); | ||
| 66 | |||
| 67 | /* framebuffer IOCTLs */ | ||
| 68 | extern int drm_mode_addfb(struct drm_device *dev, | ||
| 69 | void *data, struct drm_file *file_priv); | ||
| 70 | extern int drm_mode_addfb2(struct drm_device *dev, | ||
| 71 | void *data, struct drm_file *file_priv); | ||
| 72 | int drm_mode_rmfb(struct drm_device *dev, | ||
| 73 | void *data, struct drm_file *file_priv); | ||
| 74 | int drm_mode_getfb(struct drm_device *dev, | ||
| 75 | void *data, struct drm_file *file_priv); | ||
| 76 | int drm_mode_dirtyfb_ioctl(struct drm_device *dev, | ||
| 77 | void *data, struct drm_file *file_priv); | ||
| 78 | |||
| 79 | /* IOCTLs */ | ||
| 80 | int drm_mode_obj_get_properties_ioctl(struct drm_device *dev, void *data, | ||
| 81 | struct drm_file *file_priv); | ||
| 82 | int drm_mode_obj_set_property_ioctl(struct drm_device *dev, void *data, | ||
| 83 | struct drm_file *file_priv); | ||
| 84 | |||
| 85 | int drm_mode_getresources(struct drm_device *dev, | ||
| 86 | void *data, struct drm_file *file_priv); | ||
| 87 | int drm_mode_getplane_res(struct drm_device *dev, void *data, | ||
| 88 | struct drm_file *file_priv); | ||
| 89 | int drm_mode_getcrtc(struct drm_device *dev, | ||
| 90 | void *data, struct drm_file *file_priv); | ||
| 91 | int drm_mode_getconnector(struct drm_device *dev, | ||
| 92 | void *data, struct drm_file *file_priv); | ||
| 93 | int drm_mode_setcrtc(struct drm_device *dev, | ||
| 94 | void *data, struct drm_file *file_priv); | ||
| 95 | int drm_mode_getplane(struct drm_device *dev, | ||
| 96 | void *data, struct drm_file *file_priv); | ||
| 97 | int drm_mode_setplane(struct drm_device *dev, | ||
| 98 | void *data, struct drm_file *file_priv); | ||
| 99 | int drm_mode_cursor_ioctl(struct drm_device *dev, | ||
| 100 | void *data, struct drm_file *file_priv); | ||
| 101 | int drm_mode_cursor2_ioctl(struct drm_device *dev, | ||
| 102 | void *data, struct drm_file *file_priv); | ||
| 103 | int drm_mode_getproperty_ioctl(struct drm_device *dev, | ||
| 104 | void *data, struct drm_file *file_priv); | ||
| 105 | int drm_mode_getblob_ioctl(struct drm_device *dev, | ||
| 106 | void *data, struct drm_file *file_priv); | ||
| 107 | int drm_mode_createblob_ioctl(struct drm_device *dev, | ||
| 108 | void *data, struct drm_file *file_priv); | ||
| 109 | int drm_mode_destroyblob_ioctl(struct drm_device *dev, | ||
| 110 | void *data, struct drm_file *file_priv); | ||
| 111 | int drm_mode_connector_property_set_ioctl(struct drm_device *dev, | ||
| 112 | void *data, struct drm_file *file_priv); | ||
| 113 | int drm_mode_getencoder(struct drm_device *dev, | ||
| 114 | void *data, struct drm_file *file_priv); | ||
| 115 | int drm_mode_gamma_get_ioctl(struct drm_device *dev, | ||
| 116 | void *data, struct drm_file *file_priv); | ||
| 117 | int drm_mode_gamma_set_ioctl(struct drm_device *dev, | ||
| 118 | void *data, struct drm_file *file_priv); | ||
| 119 | |||
| 120 | int drm_mode_page_flip_ioctl(struct drm_device *dev, | ||
| 121 | void *data, struct drm_file *file_priv); | ||
| 38 | 122 | ||
| 39 | /* drm_atomic.c */ | 123 | /* drm_atomic.c */ |
| 40 | int drm_atomic_get_property(struct drm_mode_object *obj, | 124 | int drm_atomic_get_property(struct drm_mode_object *obj, |
| 41 | struct drm_property *property, uint64_t *val); | 125 | struct drm_property *property, uint64_t *val); |
| 42 | int drm_mode_atomic_ioctl(struct drm_device *dev, | 126 | int drm_mode_atomic_ioctl(struct drm_device *dev, |
| 43 | void *data, struct drm_file *file_priv); | 127 | void *data, struct drm_file *file_priv); |
| 44 | 128 | ||
| 129 | int drm_modeset_register_all(struct drm_device *dev); | ||
| 130 | void drm_modeset_unregister_all(struct drm_device *dev); | ||
