20 enum backlight_type type;
24 * Find and set up a backlight for a valid udev connector device, i.e. one
25 * matching drm subsytem and with status of connected.
27 struct backlight *backlight_init(struct udev_device *drm_device,
28 uint32_t connector_type);
30 /* Free backlight resources */
31 void backlight_destroy(struct backlight *backlight);
33 /* Provide the maximum backlight value */
34 long backlight_get_max_brightness(struct backlight *backlight);
36 /* Provide the cached backlight value */
37 long backlight_get_brightness(struct backlight *backlight);
39 /* Provide the hardware backlight value */
40 long backlight_get_actual_brightness(struct backlight *backlight);
42 /* Set the backlight to a value between 0 and max */
43 long backlight_set_brightness(struct backlight *backlight, long brightness);
49 #endif /* LIBBACKLIGHT_H */