linux/drivers/video/fbdev/matrox/i2c-matroxfb.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *
 * Hardware accelerated Matrox Millennium I, II, Mystique, G100, G200, G400 and G450.
 *
 * (c) 1998-2002 Petr Vandrovec <[email protected]>
 *
 * Version: 1.64 2002/06/10
 *
 * See matroxfb_base.c for contributors.
 *
 */

#include "matroxfb_base.h"
#include "matroxfb_maven.h"
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/i2c-algo-bit.h>

/* MGA-TVO I2C for G200, G400 */
#define MAT_CLK
#define MAT_DATA
/* primary head DDC for Mystique(?), G100, G200, G400 */
#define DDC1_CLK
#define DDC1_DATA
/* primary head DDC for Millennium, Millennium II */
#define DDC1B_CLK
#define DDC1B_DATA
/* secondary head DDC for G400 */
#define DDC2_CLK
#define DDC2_DATA

/******************************************************/

struct matroxfb_dh_maven_info {};

static int matroxfb_read_gpio(struct matrox_fb_info* minfo) {}

static void matroxfb_set_gpio(struct matrox_fb_info* minfo, int mask, int val) {}

/* software I2C functions */
static inline void matroxfb_i2c_set(struct matrox_fb_info* minfo, int mask, int state) {}

static void matroxfb_gpio_setsda(void* data, int state) {}

static void matroxfb_gpio_setscl(void* data, int state) {}

static int matroxfb_gpio_getsda(void* data) {}

static int matroxfb_gpio_getscl(void* data) {}

static const struct i2c_algo_bit_data matrox_i2c_algo_template =;

static int i2c_bus_reg(struct i2c_bit_adapter* b, struct matrox_fb_info* minfo, 
		unsigned int data, unsigned int clock, const char *name)
{}

static void i2c_bit_bus_del(struct i2c_bit_adapter* b) {}

static inline void i2c_maven_done(struct matroxfb_dh_maven_info* minfo2) {}

static inline void i2c_ddc1_done(struct matroxfb_dh_maven_info* minfo2) {}

static inline void i2c_ddc2_done(struct matroxfb_dh_maven_info* minfo2) {}

static void* i2c_matroxfb_probe(struct matrox_fb_info* minfo) {}

static void i2c_matroxfb_remove(struct matrox_fb_info* minfo, void* data) {}

static struct matroxfb_driver i2c_matroxfb =;

static int __init i2c_matroxfb_init(void) {}

static void __exit i2c_matroxfb_exit(void) {}

MODULE_AUTHOR();
MODULE_DESCRIPTION();

module_init();
module_exit(i2c_matroxfb_exit);
/* no __setup required */
MODULE_LICENSE();