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

/*
 * Copyright (c) 2006 Dave Airlie <[email protected]>
 * Copyright © 2006-2008,2010 Intel Corporation
 *   Jesse Barnes <[email protected]>
 *
 * 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.
 *
 * Authors:
 *	Eric Anholt <[email protected]>
 *	Chris Wilson <[email protected]>
 */

#include <linux/delay.h>
#include <linux/i2c-algo-bit.h>
#include <linux/i2c.h>
#include <linux/module.h>

#include "psb_drv.h"
#include "psb_intel_drv.h"
#include "psb_intel_reg.h"

#define _wait_for(COND, MS, W)

#define wait_for(COND, MS)

#define GMBUS_REG_READ(reg)
#define GMBUS_REG_WRITE(reg, val)

/* Intel GPIO access functions */

#define I2C_RISEFALL_TIME

static inline struct intel_gmbus *
to_intel_gmbus(struct i2c_adapter *i2c)
{}

struct intel_gpio {};

void
gma_intel_i2c_reset(struct drm_device *dev)
{}

static void intel_i2c_quirk_set(struct drm_psb_private *dev_priv, bool enable)
{}

static u32 get_reserved(struct intel_gpio *gpio)
{}

static int get_clock(void *data)
{}

static int get_data(void *data)
{}

static void set_clock(void *data, int state_high)
{}

static void set_data(void *data, int state_high)
{}

static struct i2c_adapter *
intel_gpio_create(struct drm_psb_private *dev_priv, u32 pin)
{}

static int
intel_i2c_quirk_xfer(struct drm_psb_private *dev_priv,
		     struct i2c_adapter *adapter,
		     struct i2c_msg *msgs,
		     int num)
{}

static int
gmbus_xfer(struct i2c_adapter *adapter,
	   struct i2c_msg *msgs,
	   int num)
{}

static u32 gmbus_func(struct i2c_adapter *adapter)
{}

static const struct i2c_algorithm gmbus_algorithm =;

/**
 * gma_intel_setup_gmbus() - instantiate all Intel i2c GMBuses
 * @dev: DRM device
 */
int gma_intel_setup_gmbus(struct drm_device *dev)
{}

void gma_intel_gmbus_set_speed(struct i2c_adapter *adapter, int speed)
{}

void gma_intel_gmbus_force_bit(struct i2c_adapter *adapter, bool force_bit)
{}

void gma_intel_teardown_gmbus(struct drm_device *dev)
{}