linux/drivers/gpu/drm/gma500/opregion.c

/*
 * Copyright 2011 Intel Corporation
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 *
 */
#include <linux/acpi.h>
#include "psb_drv.h"
#include "psb_irq.h"
#include "psb_intel_reg.h"

#define PCI_ASLE
#define PCI_ASLS

#define OPREGION_HEADER_OFFSET
#define OPREGION_ACPI_OFFSET
#define ACPI_CLID
#define ACPI_CDCK
#define OPREGION_SWSCI_OFFSET
#define OPREGION_ASLE_OFFSET
#define OPREGION_VBT_OFFSET

#define OPREGION_SIGNATURE
#define MBOX_ACPI
#define MBOX_SWSCI
#define MBOX_ASLE

struct opregion_header {} __packed;

/* OpRegion mailbox #1: public ACPI methods */
struct opregion_acpi {} __packed;

/* OpRegion mailbox #2: SWSCI */
struct opregion_swsci {} __packed;

/* OpRegion mailbox #3: ASLE */
struct opregion_asle {} __packed;

/* ASLE irq request bits */
#define ASLE_SET_ALS_ILLUM
#define ASLE_SET_BACKLIGHT
#define ASLE_SET_PFIT
#define ASLE_SET_PWM_FREQ
#define ASLE_REQ_MSK

/* response bits of ASLE irq request */
#define ASLE_ALS_ILLUM_FAILED
#define ASLE_BACKLIGHT_FAILED
#define ASLE_PFIT_FAILED
#define ASLE_PWM_FREQ_FAILED

/* ASLE backlight brightness to set */
#define ASLE_BCLP_VALID
#define ASLE_BCLP_MSK

/* ASLE panel fitting request */
#define ASLE_PFIT_VALID
#define ASLE_PFIT_CENTER
#define ASLE_PFIT_STRETCH_TEXT
#define ASLE_PFIT_STRETCH_GFX

/* response bits of ASLE irq request */
#define ASLE_ALS_ILLUM_FAILED
#define ASLE_BACKLIGHT_FAILED
#define ASLE_PFIT_FAILED
#define ASLE_PWM_FREQ_FAILED

/* ASLE backlight brightness to set */
#define ASLE_BCLP_VALID
#define ASLE_BCLP_MSK

/* ASLE panel fitting request */
#define ASLE_PFIT_VALID
#define ASLE_PFIT_CENTER
#define ASLE_PFIT_STRETCH_TEXT
#define ASLE_PFIT_STRETCH_GFX

/* PWM frequency and minimum brightness */
#define ASLE_PFMB_BRIGHTNESS_MASK
#define ASLE_PFMB_BRIGHTNESS_VALID
#define ASLE_PFMB_PWM_MASK
#define ASLE_PFMB_PWM_VALID

#define ASLE_CBLV_VALID

static struct psb_intel_opregion *system_opregion;

static u32 asle_set_backlight(struct drm_device *dev, u32 bclp)
{}

static void psb_intel_opregion_asle_work(struct work_struct *work)
{}

void psb_intel_opregion_asle_intr(struct drm_device *dev)
{}

#define ASLE_ALS_EN
#define ASLE_BLC_EN
#define ASLE_PFIT_EN
#define ASLE_PFMB_EN

void psb_intel_opregion_enable_asle(struct drm_device *dev)
{}

#define ACPI_EV_DISPLAY_SWITCH
#define ACPI_EV_LID
#define ACPI_EV_DOCK


static int psb_intel_opregion_video_event(struct notifier_block *nb,
					  unsigned long val, void *data)
{}

static struct notifier_block psb_intel_opregion_notifier =;

void psb_intel_opregion_init(struct drm_device *dev)
{}

void psb_intel_opregion_fini(struct drm_device *dev)
{}

int psb_intel_opregion_setup(struct drm_device *dev)
{}