Subversion Repositories Kolibri OS

Rev

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

Rev 1120 Rev 1123
Line 48... Line 48...
48
#include 
48
#include 
Line 49... Line 49...
49
 
49
 
Line 50... Line 50...
50
#include 
50
#include 
51
 
-
 
-
 
51
 
52
#include 
52
#include 
53
 
53
#include "drm_edid.h"
54
#include "radeon_mode.h"
54
#include "radeon_mode.h"
Line 55... Line 55...
55
#include "radeon_reg.h"
55
#include "radeon_reg.h"
Line -... Line 56...
-
 
56
#include "r300.h"
56
#include "r300.h"
57
 
57
 
-
 
58
#include 
58
#include 
59
 
-
 
-
 
59
 
-
 
60
extern int radeon_modeset;
Line 60... Line 61...
60
extern int radeon_dynclks;
61
extern int radeon_dynclks;
61
extern int radeon_gart_size;
62
extern int radeon_r4xx_atom;
62
extern int radeon_r4xx_atom;
63
extern int radeon_gart_size;
63
 
64
extern int radeon_connector_table;
Line 210... Line 211...
210
	uint64_t		gpu_offset;
211
	uint64_t		gpu_offset;
211
	unsigned		rdomain;
212
	unsigned		rdomain;
212
	unsigned		wdomain;
213
	unsigned		wdomain;
213
};
214
};
Line -... Line 215...
-
 
215
 
-
 
216
int radeon_object_init(struct radeon_device *rdev);
-
 
217
void radeon_object_fini(struct radeon_device *rdev);
-
 
218
int radeon_object_create(struct radeon_device *rdev,
-
 
219
			 struct drm_gem_object *gobj,
-
 
220
			 unsigned long size,
-
 
221
			 bool kernel,
-
 
222
			 uint32_t domain,
-
 
223
			 bool interruptible,
Line -... Line 224...
-
 
224
			 struct radeon_object **robj_ptr);
-
 
225
 
-
 
226
 
-
 
227
/*
-
 
228
 * GEM objects.
-
 
229
 */
Line 214... Line 230...
214
 
230
struct radeon_gem {
215
 
231
	struct list_head	objects;
Line 1038... Line 1054...
1038
    int cant_use_aperture;
1054
    int cant_use_aperture;
1039
    unsigned long page_mask;
1055
    unsigned long page_mask;
1040
};
1056
};
Line 1041... Line -...
1041
 
-
 
1042
 
-
 
1043
 
-
 
1044
 
-
 
1045
 
-
 
1046
/**
-
 
1047
 * DRM device structure. This structure represent a complete card that
-
 
1048
 * may contain multiple heads.
-
 
1049
 */
-
 
1050
struct drm_device {
-
 
1051
 
-
 
1052
    int irq_enabled;                /**< True if irq handler is enabled */
-
 
1053
    __volatile__ long context_flag; /**< Context swapping flag */
-
 
1054
    __volatile__ long interrupt_flag; /**< Interruption handler flag */
-
 
1055
    __volatile__ long dma_flag;     /**< DMA dispatch flag */
-
 
1056
    int last_checked;               /**< Last context checked for DMA */
-
 
1057
    int last_context;               /**< Last current context */
-
 
1058
    unsigned long last_switch;      /**< jiffies at last context switch */
-
 
1059
 
-
 
1060
    struct drm_agp_head *agp;     /**< AGP data */
-
 
1061
 
-
 
1062
    struct pci_dev *pdev;         /**< PCI device structure */
-
 
1063
    int pci_vendor;                 /**< PCI vendor id */
-
 
1064
    int pci_device;                 /** PCI device id */
-
 
1065
    int num_crtcs;                  /**< Number of CRTCs on this device */
-
 
1066
    void *dev_private;              /**< device private data */
-
 
1067
    void *mm_private;
-
 
1068
 
-
 
1069
//    struct address_space *dev_mapping;
-
 
1070
 
-
 
1071
    struct drm_mode_config mode_config; /**< Current mode config */
-
 
1072
 
-
 
1073
};
-
 
1074
 
-
 
1075
 
1057
 
Line 1076... Line 1058...
1076
 
1058
 
1077
#define radeon_errata(rdev) (rdev)->asic->errata((rdev))
1059
#define radeon_errata(rdev) (rdev)->asic->errata((rdev))