| @@ -45,27 +45,28 @@ typedef enum { | | | @@ -45,27 +45,28 @@ typedef enum { |
45 | MODE_ONE_WIDTH, /* only one width is supported */ | | 45 | MODE_ONE_WIDTH, /* only one width is supported */ |
46 | MODE_ONE_HEIGHT, /* only one height is supported */ | | 46 | MODE_ONE_HEIGHT, /* only one height is supported */ |
47 | MODE_ONE_SIZE, /* only one resolution is supported */ | | 47 | MODE_ONE_SIZE, /* only one resolution is supported */ |
48 | MODE_NO_REDUCED, /* monitor doesn't accept reduced blanking */ | | 48 | MODE_NO_REDUCED, /* monitor doesn't accept reduced blanking */ |
49 | MODE_BANDWIDTH, /* mode requires too much memory bandwidth */ | | 49 | MODE_BANDWIDTH, /* mode requires too much memory bandwidth */ |
50 | MODE_BAD = -2, /* unspecified reason */ | | 50 | MODE_BAD = -2, /* unspecified reason */ |
51 | MODE_ERROR = -1 /* error condition */ | | 51 | MODE_ERROR = -1 /* error condition */ |
52 | } ModeStatus; | | 52 | } ModeStatus; |
53 | | | 53 | |
54 | /* Video mode */ | | 54 | /* Video mode */ |
55 | typedef struct _DisplayModeRec { | | 55 | typedef struct _DisplayModeRec { |
56 | struct _DisplayModeRec *prev; | | 56 | struct _DisplayModeRec *prev; |
57 | struct _DisplayModeRec *next; | | 57 | struct _DisplayModeRec *next; |
58 | const char *name; /* identifier for the mode */ | | 58 | /* dozens of drivers write to this value */ |
| | | 59 | /*const*/ char *name; /* identifier for the mode */ |
59 | ModeStatus status; | | 60 | ModeStatus status; |
60 | int type; | | 61 | int type; |
61 | | | 62 | |
62 | /* These are the values that the user sees/provides */ | | 63 | /* These are the values that the user sees/provides */ |
63 | int Clock; /* pixel clock freq (kHz) */ | | 64 | int Clock; /* pixel clock freq (kHz) */ |
64 | int HDisplay; /* horizontal timing */ | | 65 | int HDisplay; /* horizontal timing */ |
65 | int HSyncStart; | | 66 | int HSyncStart; |
66 | int HSyncEnd; | | 67 | int HSyncEnd; |
67 | int HTotal; | | 68 | int HTotal; |
68 | int HSkew; | | 69 | int HSkew; |
69 | int VDisplay; /* vertical timing */ | | 70 | int VDisplay; /* vertical timing */ |
70 | int VSyncStart; | | 71 | int VSyncStart; |
71 | int VSyncEnd; | | 72 | int VSyncEnd; |