revert between 56095 -> 55830 in arch
[AROS.git] / arch / arm-native / soc / broadcom / 2708 / hidd / vc4gfx / vc4gfx_sdtv.c
blob4e625847c54588bf2a63403fb1aab1c35d929528
1 /*
2 Copyright © 2013-2017, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define DEBUG 1
7 #include <aros/debug.h>
9 #include "vc4gfx_hidd.h"
11 int FNAME_SUPPORT(SDTV_SyncGen)(struct List *modelist, OOP_Class *cl)
13 struct DisplayMode *sdtv_mode;
14 int sdtv_modecount = 0;
15 BOOL sdtv_active = FALSE;
17 D(bug("[VideoCoreGfx] %s()\n", __PRETTY_FUNCTION__));
19 //#warning "TODO: check if an SDTV is attached"
20 if (sdtv_active)
22 if ((sdtv_mode = AllocMem(sizeof(struct DisplayMode), MEMF_PUBLIC)) != NULL)
24 sdtv_mode->dm_clock = 25174;
25 sdtv_mode->dm_hdisp = 640;
26 sdtv_mode->dm_hstart = 656;
27 sdtv_mode->dm_hend = 752;
28 sdtv_mode->dm_htotal = 800;
29 sdtv_mode->dm_vdisp = 480;
30 sdtv_mode->dm_vstart = 490;
31 sdtv_mode->dm_vend = 492;
32 sdtv_mode->dm_vtotal = 525;
33 sdtv_mode->dm_descr = "VideoCore: PAL 640x480";
34 AddTail(modelist, &sdtv_mode->dm_Node);
35 sdtv_modecount++;
38 if ((sdtv_mode = AllocMem(sizeof(struct DisplayMode), MEMF_PUBLIC)) != NULL)
40 sdtv_mode->dm_clock = 25174;
41 sdtv_mode->dm_hdisp = 640;
42 sdtv_mode->dm_hstart = 656;
43 sdtv_mode->dm_hend = 752;
44 sdtv_mode->dm_htotal = 800;
45 sdtv_mode->dm_vdisp = 400;
46 sdtv_mode->dm_vstart = 410;
47 sdtv_mode->dm_vend = 412;
48 sdtv_mode->dm_vtotal = 445;
49 sdtv_mode->dm_descr = "VideoCore: NTSC 640x400";
50 AddTail(modelist, &sdtv_mode->dm_Node);
51 sdtv_modecount++;
54 return sdtv_modecount;