summaryrefslogtreecommitdiff
path: root/shared-core/radeon_drv.h
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-09-17 04:02:28 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-09-17 04:02:28 +0000
commit0c6fb0fbe1fff43af60634b785cd5b7196c8dd03 (patch)
treeb5c4ee063c6f62212d5fff7f4e2f629b0fb1722e /shared-core/radeon_drv.h
parentc7c9d3ef7b82215696c007415a018c670d54041e (diff)
Add linux sysfs i2c support to radeon driver. This patch adds GPL licensed
files to the linux build but not to the BSD directories.
Diffstat (limited to 'shared-core/radeon_drv.h')
-rw-r--r--shared-core/radeon_drv.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/shared-core/radeon_drv.h b/shared-core/radeon_drv.h
index d3c65a00..ec3560aa 100644
--- a/shared-core/radeon_drv.h
+++ b/shared-core/radeon_drv.h
@@ -47,6 +47,10 @@ enum radeon_family {
CHIP_LAST,
};
+#if defined(__linux__)
+#include "radeon_gpl.h"
+#endif
+
/*
* Chip flags
*/
@@ -102,8 +106,6 @@ struct mem_block {
typedef struct drm_radeon_private {
- uint32_t flags; /* see radeon_chip_flags */
-
drm_radeon_ring_buffer_t ring;
drm_radeon_sarea_t *sarea_priv;
@@ -180,6 +182,11 @@ typedef struct drm_radeon_private {
wait_queue_head_t swi_queue;
atomic_t swi_emitted;
+ /* starting from here on, data is preserved accross an open */
+ uint32_t flags; /* see radeon_chip_flags */
+#if defined(__linux__)
+ struct radeon_i2c_chan i2c[4];
+#endif
} drm_radeon_private_t;
typedef struct drm_radeon_buf_priv {