File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -244,51 +244,32 @@ static inline int uv_hub_info_check(int version)
244
244
#define UV4_HUB_REVISION_BASE 7
245
245
#define UV4A_HUB_REVISION_BASE 8 /* UV4 (fixed) rev 2 */
246
246
247
- /* WARNING: UVx_HUB_IS_SUPPORTED defines are deprecated and will be removed */
248
247
static inline int is_uv1_hub (void )
249
248
{
250
- #ifdef UV1_HUB_IS_SUPPORTED
251
249
return is_uv_hubbed (uv (1 ));
252
- #else
253
- return 0 ;
254
- #endif
255
250
}
256
251
257
252
static inline int is_uv2_hub (void )
258
253
{
259
- #ifdef UV2_HUB_IS_SUPPORTED
260
254
return is_uv_hubbed (uv (2 ));
261
- #else
262
- return 0 ;
263
- #endif
264
255
}
265
256
266
257
static inline int is_uv3_hub (void )
267
258
{
268
- #ifdef UV3_HUB_IS_SUPPORTED
269
259
return is_uv_hubbed (uv (3 ));
270
- #else
271
- return 0 ;
272
- #endif
273
260
}
274
261
275
262
/* First test "is UV4A", then "is UV4" */
276
263
static inline int is_uv4a_hub (void )
277
264
{
278
- #ifdef UV4A_HUB_IS_SUPPORTED
279
265
if (is_uv_hubbed (uv (4 )))
280
266
return (uv_hub_info -> hub_revision == UV4A_HUB_REVISION_BASE );
281
- #endif
282
267
return 0 ;
283
268
}
284
269
285
270
static inline int is_uv4_hub (void )
286
271
{
287
- #ifdef UV4_HUB_IS_SUPPORTED
288
272
return is_uv_hubbed (uv (4 ));
289
- #else
290
- return 0 ;
291
- #endif
292
273
}
293
274
294
275
static inline int is_uvx_hub (void )
Original file line number Diff line number Diff line change 99
99
#define UV3_HUB_PART_NUMBER_X 0x4321
100
100
#define UV4_HUB_PART_NUMBER 0x99a1
101
101
102
- /* Compat: Indicate which UV Hubs are supported. */
103
- #define UV1_HUB_IS_SUPPORTED 1
104
- #define UV2_HUB_IS_SUPPORTED 1
105
- #define UV3_HUB_IS_SUPPORTED 1
106
- #define UV4_HUB_IS_SUPPORTED 1
107
- #define UV4A_HUB_IS_SUPPORTED 1
108
-
109
102
/* Error function to catch undefined references */
110
103
extern unsigned long uv_undefined (char * str );
111
104
You can’t perform that action at this time.
0 commit comments