search for: bl_core_suspendresum

Displaying 1 result from an estimated 1 matches for "bl_core_suspendresum".

Did you mean: bl_core_suspendresume
2009 Feb 18
1
[PATCH] Add in-kernel backlight control support
...nouveau_private *dev_priv = dev->dev_private; + int val = bd->props.brightness; + int reg = NV_READ(NV40_PMC_BACKLIGHT); + + NV_WRITE(NV40_PMC_BACKLIGHT, + (val << 16) | (reg & ~NV40_PMC_BACKLIGHT_MASK)); + + return 0; +} + +static struct backlight_ops nv40_bl_ops = { + .options = BL_CORE_SUSPENDRESUME, + .get_brightness = nv40_get_intensity, + .update_status = nv40_set_intensity, +}; + +static int nv50_get_intensity(struct backlight_device *bd) +{ + struct drm_device *dev = bl_get_data(bd); + struct drm_nouveau_private *dev_priv = dev->dev_private; + + return NV_READ(NV50_PDISPLAY_BACKLIGHT)...