@@ -76,7 +76,7 @@ struct intel_sdvo {
76
76
i915_reg_t sdvo_reg ;
77
77
78
78
/* Active outputs controlled by this SDVO output */
79
- uint16_t controlled_output ;
79
+ u16 controlled_output ;
80
80
81
81
/*
82
82
* Capabilities of the SDVO device returned by
@@ -91,32 +91,32 @@ struct intel_sdvo {
91
91
* For multiple function SDVO device,
92
92
* this is for current attached outputs.
93
93
*/
94
- uint16_t attached_output ;
94
+ u16 attached_output ;
95
95
96
96
/*
97
97
* Hotplug activation bits for this device
98
98
*/
99
- uint16_t hotplug_active ;
99
+ u16 hotplug_active ;
100
100
101
101
enum port port ;
102
102
103
103
bool has_hdmi_monitor ;
104
104
bool has_hdmi_audio ;
105
105
106
106
/* DDC bus used by this SDVO encoder */
107
- uint8_t ddc_bus ;
107
+ u8 ddc_bus ;
108
108
109
109
/*
110
110
* the sdvo flag gets lost in round trip: dtd->adjusted_mode->dtd
111
111
*/
112
- uint8_t dtd_sdvo_flags ;
112
+ u8 dtd_sdvo_flags ;
113
113
};
114
114
115
115
struct intel_sdvo_connector {
116
116
struct intel_connector base ;
117
117
118
118
/* Mark the type of connector */
119
- uint16_t output_flag ;
119
+ u16 output_flag ;
120
120
121
121
/* This contains all current supported TV format */
122
122
u8 tv_format_supported [TV_FORMAT_NUM ];
@@ -184,7 +184,7 @@ to_intel_sdvo_connector(struct drm_connector *connector)
184
184
container_of((conn_state), struct intel_sdvo_connector_state, base.base)
185
185
186
186
static bool
187
- intel_sdvo_output_setup (struct intel_sdvo * intel_sdvo , uint16_t flags );
187
+ intel_sdvo_output_setup (struct intel_sdvo * intel_sdvo , u16 flags );
188
188
static bool
189
189
intel_sdvo_tv_create_property (struct intel_sdvo * intel_sdvo ,
190
190
struct intel_sdvo_connector * intel_sdvo_connector ,
@@ -746,9 +746,9 @@ static bool intel_sdvo_get_input_timing(struct intel_sdvo *intel_sdvo,
746
746
static bool
747
747
intel_sdvo_create_preferred_input_timing (struct intel_sdvo * intel_sdvo ,
748
748
struct intel_sdvo_connector * intel_sdvo_connector ,
749
- uint16_t clock ,
750
- uint16_t width ,
751
- uint16_t height )
749
+ u16 clock ,
750
+ u16 width ,
751
+ u16 height )
752
752
{
753
753
struct intel_sdvo_preferred_input_timing_args args ;
754
754
@@ -791,9 +791,9 @@ static bool intel_sdvo_set_clock_rate_mult(struct intel_sdvo *intel_sdvo, u8 val
791
791
static void intel_sdvo_get_dtd_from_mode (struct intel_sdvo_dtd * dtd ,
792
792
const struct drm_display_mode * mode )
793
793
{
794
- uint16_t width , height ;
795
- uint16_t h_blank_len , h_sync_len , v_blank_len , v_sync_len ;
796
- uint16_t h_sync_offset , v_sync_offset ;
794
+ u16 width , height ;
795
+ u16 h_blank_len , h_sync_len , v_blank_len , v_sync_len ;
796
+ u16 h_sync_offset , v_sync_offset ;
797
797
int mode_clock ;
798
798
799
799
memset (dtd , 0 , sizeof (* dtd ));
@@ -898,13 +898,13 @@ static bool intel_sdvo_check_supp_encode(struct intel_sdvo *intel_sdvo)
898
898
}
899
899
900
900
static bool intel_sdvo_set_encode (struct intel_sdvo * intel_sdvo ,
901
- uint8_t mode )
901
+ u8 mode )
902
902
{
903
903
return intel_sdvo_set_value (intel_sdvo , SDVO_CMD_SET_ENCODE , & mode , 1 );
904
904
}
905
905
906
906
static bool intel_sdvo_set_colorimetry (struct intel_sdvo * intel_sdvo ,
907
- uint8_t mode )
907
+ u8 mode )
908
908
{
909
909
return intel_sdvo_set_value (intel_sdvo , SDVO_CMD_SET_COLORIMETRY , & mode , 1 );
910
910
}
@@ -913,11 +913,11 @@ static bool intel_sdvo_set_colorimetry(struct intel_sdvo *intel_sdvo,
913
913
static void intel_sdvo_dump_hdmi_buf (struct intel_sdvo * intel_sdvo )
914
914
{
915
915
int i , j ;
916
- uint8_t set_buf_index [2 ];
917
- uint8_t av_split ;
918
- uint8_t buf_size ;
919
- uint8_t buf [48 ];
920
- uint8_t * pos ;
916
+ u8 set_buf_index [2 ];
917
+ u8 av_split ;
918
+ u8 buf_size ;
919
+ u8 buf [48 ];
920
+ u8 * pos ;
921
921
922
922
intel_sdvo_get_value (encoder , SDVO_CMD_GET_HBUF_AV_SPLIT , & av_split , 1 );
923
923
@@ -940,11 +940,11 @@ static void intel_sdvo_dump_hdmi_buf(struct intel_sdvo *intel_sdvo)
940
940
#endif
941
941
942
942
static bool intel_sdvo_write_infoframe (struct intel_sdvo * intel_sdvo ,
943
- unsigned if_index , uint8_t tx_rate ,
944
- const uint8_t * data , unsigned length )
943
+ unsigned int if_index , u8 tx_rate ,
944
+ const u8 * data , unsigned int length )
945
945
{
946
- uint8_t set_buf_index [2 ] = { if_index , 0 };
947
- uint8_t hbuf_size , tmp [8 ];
946
+ u8 set_buf_index [2 ] = { if_index , 0 };
947
+ u8 hbuf_size , tmp [8 ];
948
948
int i ;
949
949
950
950
if (!intel_sdvo_set_value (intel_sdvo ,
@@ -984,7 +984,7 @@ static bool intel_sdvo_set_avi_infoframe(struct intel_sdvo *intel_sdvo,
984
984
{
985
985
const struct drm_display_mode * adjusted_mode =
986
986
& pipe_config -> base .adjusted_mode ;
987
- uint8_t sdvo_data [HDMI_INFOFRAME_SIZE (AVI )];
987
+ u8 sdvo_data [HDMI_INFOFRAME_SIZE (AVI )];
988
988
union hdmi_infoframe frame ;
989
989
int ret ;
990
990
ssize_t len ;
@@ -1017,7 +1017,7 @@ static bool intel_sdvo_set_tv_format(struct intel_sdvo *intel_sdvo,
1017
1017
const struct drm_connector_state * conn_state )
1018
1018
{
1019
1019
struct intel_sdvo_tv_format format ;
1020
- uint32_t format_map ;
1020
+ u32 format_map ;
1021
1021
1022
1022
format_map = 1 << conn_state -> tv .mode ;
1023
1023
memset (& format , 0 , sizeof (format ));
@@ -1208,7 +1208,7 @@ static void intel_sdvo_update_props(struct intel_sdvo *intel_sdvo,
1208
1208
const struct drm_connector_state * conn_state = & sdvo_state -> base .base ;
1209
1209
struct intel_sdvo_connector * intel_sdvo_conn =
1210
1210
to_intel_sdvo_connector (conn_state -> connector );
1211
- uint16_t val ;
1211
+ u16 val ;
1212
1212
1213
1213
if (intel_sdvo_conn -> left )
1214
1214
UPDATE_PROPERTY (sdvo_state -> tv .overscan_h , OVERSCAN_H );
@@ -1692,10 +1692,10 @@ static bool intel_sdvo_get_capabilities(struct intel_sdvo *intel_sdvo, struct in
1692
1692
return true;
1693
1693
}
1694
1694
1695
- static uint16_t intel_sdvo_get_hotplug_support (struct intel_sdvo * intel_sdvo )
1695
+ static u16 intel_sdvo_get_hotplug_support (struct intel_sdvo * intel_sdvo )
1696
1696
{
1697
1697
struct drm_i915_private * dev_priv = to_i915 (intel_sdvo -> base .base .dev );
1698
- uint16_t hotplug ;
1698
+ u16 hotplug ;
1699
1699
1700
1700
if (!I915_HAS_HOTPLUG (dev_priv ))
1701
1701
return 0 ;
@@ -1826,7 +1826,7 @@ intel_sdvo_connector_matches_edid(struct intel_sdvo_connector *sdvo,
1826
1826
static enum drm_connector_status
1827
1827
intel_sdvo_detect (struct drm_connector * connector , bool force )
1828
1828
{
1829
- uint16_t response ;
1829
+ u16 response ;
1830
1830
struct intel_sdvo * intel_sdvo = intel_attached_sdvo (connector );
1831
1831
struct intel_sdvo_connector * intel_sdvo_connector = to_intel_sdvo_connector (connector );
1832
1832
enum drm_connector_status ret ;
@@ -1977,7 +1977,7 @@ static void intel_sdvo_get_tv_modes(struct drm_connector *connector)
1977
1977
struct intel_sdvo * intel_sdvo = intel_attached_sdvo (connector );
1978
1978
const struct drm_connector_state * conn_state = connector -> state ;
1979
1979
struct intel_sdvo_sdtv_resolution_request tv_res ;
1980
- uint32_t reply = 0 , format_map = 0 ;
1980
+ u32 reply = 0 , format_map = 0 ;
1981
1981
int i ;
1982
1982
1983
1983
DRM_DEBUG_KMS ("[CONNECTOR:%d:%s]\n" ,
@@ -2062,7 +2062,7 @@ static int
2062
2062
intel_sdvo_connector_atomic_get_property (struct drm_connector * connector ,
2063
2063
const struct drm_connector_state * state ,
2064
2064
struct drm_property * property ,
2065
- uint64_t * val )
2065
+ u64 * val )
2066
2066
{
2067
2067
struct intel_sdvo_connector * intel_sdvo_connector = to_intel_sdvo_connector (connector );
2068
2068
const struct intel_sdvo_connector_state * sdvo_state = to_intel_sdvo_connector_state ((void * )state );
@@ -2121,7 +2121,7 @@ static int
2121
2121
intel_sdvo_connector_atomic_set_property (struct drm_connector * connector ,
2122
2122
struct drm_connector_state * state ,
2123
2123
struct drm_property * property ,
2124
- uint64_t val )
2124
+ u64 val )
2125
2125
{
2126
2126
struct intel_sdvo_connector * intel_sdvo_connector = to_intel_sdvo_connector (connector );
2127
2127
struct intel_sdvo_connector_state * sdvo_state = to_intel_sdvo_connector_state (state );
@@ -2270,7 +2270,7 @@ static const struct drm_encoder_funcs intel_sdvo_enc_funcs = {
2270
2270
static void
2271
2271
intel_sdvo_guess_ddc_bus (struct intel_sdvo * sdvo )
2272
2272
{
2273
- uint16_t mask = 0 ;
2273
+ u16 mask = 0 ;
2274
2274
unsigned int num_bits ;
2275
2275
2276
2276
/*
@@ -2671,7 +2671,7 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device)
2671
2671
}
2672
2672
2673
2673
static bool
2674
- intel_sdvo_output_setup (struct intel_sdvo * intel_sdvo , uint16_t flags )
2674
+ intel_sdvo_output_setup (struct intel_sdvo * intel_sdvo , u16 flags )
2675
2675
{
2676
2676
/* SDVO requires XXX1 function may not exist unless it has XXX0 function.*/
2677
2677
@@ -2747,7 +2747,7 @@ static bool intel_sdvo_tv_create_property(struct intel_sdvo *intel_sdvo,
2747
2747
{
2748
2748
struct drm_device * dev = intel_sdvo -> base .base .dev ;
2749
2749
struct intel_sdvo_tv_format format ;
2750
- uint32_t format_map , i ;
2750
+ u32 format_map , i ;
2751
2751
2752
2752
if (!intel_sdvo_set_target_output (intel_sdvo , type ))
2753
2753
return false;
@@ -2814,7 +2814,7 @@ intel_sdvo_create_enhance_property_tv(struct intel_sdvo *intel_sdvo,
2814
2814
struct drm_connector_state * conn_state = connector -> state ;
2815
2815
struct intel_sdvo_connector_state * sdvo_state =
2816
2816
to_intel_sdvo_connector_state (conn_state );
2817
- uint16_t response , data_value [2 ];
2817
+ u16 response , data_value [2 ];
2818
2818
2819
2819
/* when horizontal overscan is supported, Add the left/right property */
2820
2820
if (enhancements .overscan_h ) {
@@ -2925,7 +2925,7 @@ intel_sdvo_create_enhance_property_lvds(struct intel_sdvo *intel_sdvo,
2925
2925
{
2926
2926
struct drm_device * dev = intel_sdvo -> base .base .dev ;
2927
2927
struct drm_connector * connector = & intel_sdvo_connector -> base .base ;
2928
- uint16_t response , data_value [2 ];
2928
+ u16 response , data_value [2 ];
2929
2929
2930
2930
ENHANCEMENT (& connector -> state -> tv , brightness , BRIGHTNESS );
2931
2931
@@ -2939,7 +2939,7 @@ static bool intel_sdvo_create_enhance_property(struct intel_sdvo *intel_sdvo,
2939
2939
{
2940
2940
union {
2941
2941
struct intel_sdvo_enhancements_reply reply ;
2942
- uint16_t response ;
2942
+ u16 response ;
2943
2943
} enhancements ;
2944
2944
2945
2945
BUILD_BUG_ON (sizeof (enhancements ) != 2 );
0 commit comments