1 #ifndef DDK750_MODE_H__
2 #define DDK750_MODE_H__
4 #include "ddk750_chip.h"
6 typedef enum _spolarity_t {
7 POS = 0, /* positive */
13 typedef struct _mode_parameter_t {
14 /* Horizontal timing. */
15 unsigned long horizontal_total;
16 unsigned long horizontal_display_end;
17 unsigned long horizontal_sync_start;
18 unsigned long horizontal_sync_width;
19 spolarity_t horizontal_sync_polarity;
21 /* Vertical timing. */
22 unsigned long vertical_total;
23 unsigned long vertical_display_end;
24 unsigned long vertical_sync_start;
25 unsigned long vertical_sync_height;
26 spolarity_t vertical_sync_polarity;
29 unsigned long pixel_clock;
30 unsigned long horizontal_frequency;
31 unsigned long vertical_frequency;
33 /* Clock Phase. This clock phase only applies to Panel. */
34 spolarity_t clock_phase_polarity;
38 int ddk750_setModeTiming(mode_parameter_t *, clock_type_t);