summaryrefslogtreecommitdiff
path: root/shared-core/drm.h
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-07-05 12:04:07 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-07-05 12:04:07 +0200
commit7cbc5f6145046f3775e3b3ca2862bfb71831ec44 (patch)
treec2a08b63bf94dfcfeb995fcb43a393a5c3fcbc10 /shared-core/drm.h
parentbe31a0fa73272b9c727668096ba652ea748a9735 (diff)
modesetting-101: Make the interface variable names a little more consistent + modeprint changes.
- All things are now called _id when they are id's. - modeprint now accepts driver name as first argument.
Diffstat (limited to 'shared-core/drm.h')
-rw-r--r--shared-core/drm.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index c9b40e78..b64e265d 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -1059,17 +1059,13 @@ struct drm_mode_card_res {
struct drm_mode_crtc {
uint64_t set_connectors_ptr;
+ int count_connectors;
unsigned int crtc_id; /**< Id */
unsigned int fb_id; /**< Id of framebuffer */
int x, y; /**< Position on the frameuffer */
- int count_connectors;
- unsigned int connectors; /**< Connectors that are connected */
-
- int count_possibles;
- unsigned int possibles; /**< Connectors that can be connected */
uint32_t gamma_size;
int mode_valid;
struct drm_mode_modeinfo mode;
@@ -1083,12 +1079,13 @@ struct drm_mode_crtc {
struct drm_mode_get_encoder {
- uint32_t encoder_type;
- uint32_t encoder_id;
+ unsigned int encoder_type;
+ unsigned int encoder_id;
+
+ unsigned int crtc_id; /**< Id of crtc */
- unsigned int crtc; /**< Id of crtc */
- uint32_t crtcs;
- uint32_t clones;
+ uint32_t possible_crtcs;
+ uint32_t possible_clones;
};
/* This is for connectors with multiple signal types. */
@@ -1126,8 +1123,8 @@ struct drm_mode_get_connector {
int count_props;
int count_encoders;
- unsigned int encoder; /**< Current Encoder */
- unsigned int connector; /**< Id */
+ unsigned int encoder_id; /**< Current Encoder */
+ unsigned int connector_id; /**< Id */
unsigned int connector_type;
unsigned int connector_type_id;