From f10f8821014bc7a05e8bbc9f199e0f60b1541a0e Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Fri, 17 Sep 2004 04:25:19 +0000 Subject: [PATCH] Add the two GPL licensed I2C support files. --- linux/radeon_gpl.h | 29 ++++++++++ linux/radeon_i2c.c | 152 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 181 insertions(+) create mode 100644 linux/radeon_gpl.h create mode 100644 linux/radeon_i2c.c diff --git a/linux/radeon_gpl.h b/linux/radeon_gpl.h new file mode 100644 index 0000000..e8c479a --- /dev/null +++ b/linux/radeon_gpl.h @@ -0,0 +1,29 @@ +/* + * linux/radeon_gpl.h + * + * Original author probably Benjamin Herrenschmidt + * or Kronos + * Based on Xfree sources + * (C) Copyright 2004 Jon Smirl + * + * This is a GPL licensed file from the Linux kernel, don't add it to the BSD build + * + * Radeon I2C support routines + * + */ + +#include +#include +#include + +struct radeon_i2c_chan { + drm_device_t *dev; + u32 ddc_reg; + struct i2c_adapter adapter; + struct i2c_algo_bit_data algo; +}; + +extern int radeon_create_i2c_busses(drm_device_t *dev); +extern void radeon_delete_i2c_busses(drm_device_t *dev); + + diff --git a/linux/radeon_i2c.c b/linux/radeon_i2c.c new file mode 100644 index 0000000..a68b9ee --- /dev/null +++ b/linux/radeon_i2c.c @@ -0,0 +1,152 @@ +/* + * linux/radeon_i2c.c + * + * Original author probably Benjamin Herrenschmidt + * or Kronos + * Based on Xfree sources + * (C) Copyright 2004 Jon Smirl + * + * This is a GPL licensed file from the Linux kernel, don't add it to the BSD build + * + * Radeon I2C support routines + * + */ + +#include +#include +#include +#include +#include +#include +#include + +#include +#include