diff options
-rw-r--r-- | fbset.c | 9 | ||||
-rw-r--r-- | util-linux/fbset.c | 9 |
2 files changed, 18 insertions, 0 deletions
@@ -180,6 +180,15 @@ struct cmdoptions_t { | |||
180 | 0, 0, 0} | 180 | 0, 0, 0} |
181 | }; | 181 | }; |
182 | 182 | ||
183 | #ifdef BB_FEATURE_FBSET_READMODE | ||
184 | /* taken from linux/fb.h */ | ||
185 | #define FB_VMODE_INTERLACED 1 /* interlaced */ | ||
186 | #define FB_VMODE_DOUBLE 2 /* double scan */ | ||
187 | #define FB_SYNC_HOR_HIGH_ACT 1 /* horizontal sync high active */ | ||
188 | #define FB_SYNC_VERT_HIGH_ACT 2 /* vertical sync high active */ | ||
189 | #define FB_SYNC_EXT 4 /* external sync */ | ||
190 | #define FB_SYNC_COMP_HIGH_ACT 8 /* composite sync high active */ | ||
191 | #endif | ||
183 | static int readmode(struct fb_var_screeninfo *base, const char *fn, | 192 | static int readmode(struct fb_var_screeninfo *base, const char *fn, |
184 | const char *mode) | 193 | const char *mode) |
185 | { | 194 | { |
diff --git a/util-linux/fbset.c b/util-linux/fbset.c index 32325a7cf..8307f262d 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c | |||
@@ -180,6 +180,15 @@ struct cmdoptions_t { | |||
180 | 0, 0, 0} | 180 | 0, 0, 0} |
181 | }; | 181 | }; |
182 | 182 | ||
183 | #ifdef BB_FEATURE_FBSET_READMODE | ||
184 | /* taken from linux/fb.h */ | ||
185 | #define FB_VMODE_INTERLACED 1 /* interlaced */ | ||
186 | #define FB_VMODE_DOUBLE 2 /* double scan */ | ||
187 | #define FB_SYNC_HOR_HIGH_ACT 1 /* horizontal sync high active */ | ||
188 | #define FB_SYNC_VERT_HIGH_ACT 2 /* vertical sync high active */ | ||
189 | #define FB_SYNC_EXT 4 /* external sync */ | ||
190 | #define FB_SYNC_COMP_HIGH_ACT 8 /* composite sync high active */ | ||
191 | #endif | ||
183 | static int readmode(struct fb_var_screeninfo *base, const char *fn, | 192 | static int readmode(struct fb_var_screeninfo *base, const char *fn, |
184 | const char *mode) | 193 | const char *mode) |
185 | { | 194 | { |