Subversion Repositories Kolibri OS

Rev

Rev 1117 | Rev 1125 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1117 Rev 1123
Line 30... Line 30...
30
#ifndef RADEON_MODE_H
30
#ifndef RADEON_MODE_H
31
#define RADEON_MODE_H
31
#define RADEON_MODE_H
Line 32... Line 32...
32
 
32
 
33
#include "drm_mode.h"
33
#include "drm_mode.h"
-
 
34
#include "drm_crtc.h"
Line 34... Line -...
34
#include "drm_crtc.h"
-
 
35
 
35
#include 
36
//#include 
36
 
37
//#include 
37
//#include 
Line 38... Line 38...
38
//#include 
38
//#include 
Line 146... Line 146...
146
	uint32_t best_vco;
146
	uint32_t best_vco;
147
};
147
};
Line 148... Line 148...
148
 
148
 
149
struct radeon_i2c_chan {
149
struct radeon_i2c_chan {
150
	struct drm_device *dev;
150
	struct drm_device *dev;
151
//   struct i2c_adapter adapter;
151
    struct i2c_adapter adapter;
152
//   struct i2c_algo_bit_data algo;
152
    struct i2c_algo_bit_data algo;
153
	struct radeon_i2c_bus_rec rec;
153
	struct radeon_i2c_bus_rec rec;
Line 154... Line 154...
154
};
154
};
155
 
155
 
Line 172... Line 172...
172
	enum radeon_connector_table connector_table;
172
	enum radeon_connector_table connector_table;
173
	bool mode_config_initialized;
173
	bool mode_config_initialized;
174
};
174
};
Line 175... Line 175...
175
 
175
 
176
struct radeon_crtc {
176
struct radeon_crtc {
177
//   struct drm_crtc base;
177
	struct drm_crtc base;
178
	int crtc_id;
178
	int crtc_id;
179
    u16_t lut_r[256], lut_g[256], lut_b[256];
179
    u16_t lut_r[256], lut_g[256], lut_b[256];
180
	bool enabled;
180
	bool enabled;
181
	bool can_tile;
181
	bool can_tile;
182
	uint32_t crtc_offset;
182
	uint32_t crtc_offset;
183
	struct radeon_framebuffer *fbdev_fb;
183
	struct radeon_framebuffer *fbdev_fb;
184
//   struct drm_mode_set mode_set;
184
	struct drm_mode_set mode_set;
185
//   struct drm_gem_object *cursor_bo;
185
//   struct drm_gem_object *cursor_bo;
186
	uint64_t cursor_addr;
186
	uint64_t cursor_addr;
187
	int cursor_width;
187
	int cursor_width;
188
	int cursor_height;
188
	int cursor_height;
Line 270... Line 270...
270
	int use_digital;
270
	int use_digital;
271
	void *con_priv;
271
	void *con_priv;
272
};
272
};
Line 273... Line 273...
273
 
273
 
274
struct radeon_framebuffer {
274
struct radeon_framebuffer {
275
//   struct drm_framebuffer base;
275
   struct drm_framebuffer base;
276
//   struct drm_gem_object *obj;
276
   struct drm_gem_object *obj;
Line 277... Line 277...
277
};
277
};
278
 
278
 
279
extern struct radeon_i2c_chan *radeon_i2c_create(struct drm_device *dev,
279
extern struct radeon_i2c_chan *radeon_i2c_create(struct drm_device *dev,
280
						 struct radeon_i2c_bus_rec *rec,
280
						 struct radeon_i2c_bus_rec *rec,
281
						 const char *name);
281
						 const char *name);
282
extern void radeon_i2c_destroy(struct radeon_i2c_chan *i2c);
282
extern void radeon_i2c_destroy(struct radeon_i2c_chan *i2c);
Line 283... Line 283...
283
extern bool radeon_ddc_probe(struct radeon_connector *radeon_connector);
283
extern bool radeon_ddc_probe(struct radeon_connector *radeon_connector);
Line 284... Line 284...
284
extern int radeon_ddc_get_modes(struct radeon_connector *radeon_connector);
284
extern int radeon_ddc_get_modes(struct radeon_connector *radeon_connector);
285
 
285
 
286
//extern struct drm_encoder *radeon_best_encoder(struct drm_connector *connector);
286
extern struct drm_encoder *radeon_best_encoder(struct drm_connector *connector);
287
 
287
 
Line 300... Line 300...
300
struct drm_encoder *radeon_encoder_legacy_tmds_int_add(struct drm_device *dev, int bios_index);
300
struct drm_encoder *radeon_encoder_legacy_tmds_int_add(struct drm_device *dev, int bios_index);
301
struct drm_encoder *radeon_encoder_legacy_tmds_ext_add(struct drm_device *dev, int bios_index);
301
struct drm_encoder *radeon_encoder_legacy_tmds_ext_add(struct drm_device *dev, int bios_index);
302
extern void atombios_external_tmds_setup(struct drm_encoder *encoder, int action);
302
extern void atombios_external_tmds_setup(struct drm_encoder *encoder, int action);
303
extern int atombios_get_encoder_mode(struct drm_encoder *encoder);
303
extern int atombios_get_encoder_mode(struct drm_encoder *encoder);
Line 304... Line -...
304
 
-
 
305
/*
304
 
306
extern void radeon_crtc_load_lut(struct drm_crtc *crtc);
305
extern void radeon_crtc_load_lut(struct drm_crtc *crtc);
307
extern int atombios_crtc_set_base(struct drm_crtc *crtc, int x, int y,
306
extern int atombios_crtc_set_base(struct drm_crtc *crtc, int x, int y,
308
                  struct drm_framebuffer *old_fb);
307
                  struct drm_framebuffer *old_fb);
309
extern int atombios_crtc_mode_set(struct drm_crtc *crtc,
308
extern int atombios_crtc_mode_set(struct drm_crtc *crtc,
Line 394... Line 393...
394
			       struct drm_display_mode *mode1,
393
			       struct drm_display_mode *mode1,
395
			       uint32_t pixel_bytes1,
394
			       uint32_t pixel_bytes1,
396
			       struct drm_display_mode *mode2,
395
			       struct drm_display_mode *mode2,
397
			       uint32_t pixel_bytes2);
396
			       uint32_t pixel_bytes2);
398
void radeon_init_disp_bandwidth(struct drm_device *dev);
397
void radeon_init_disp_bandwidth(struct drm_device *dev);
399
*/
398
 
400
#endif
399
#endif