1.1 --- a/examples/vga-pmp/vga.h Tue Oct 23 19:17:34 2018 +0200
1.2 +++ b/examples/vga-pmp/vga.h Tue Oct 23 19:29:55 2018 +0200
1.3 @@ -22,6 +22,7 @@
1.4
1.5 #define LINE_LENGTH 160 /* pixels */
1.6 #define LINE_COUNT 256 /* distinct display lines */
1.7 +#define LINE_MULTIPLIER 2
1.8
1.9 #define ZERO_LENGTH 1 /* pixels */
1.10
1.11 @@ -35,7 +36,7 @@
1.12 /* Horizontal lines, back porch end. */
1.13
1.14 #define VISIBLE_START 70
1.15 -#define VFP_START (VISIBLE_START + 2 * LINE_COUNT)
1.16 +#define VFP_START (VISIBLE_START + LINE_MULTIPLIER * LINE_COUNT)
1.17
1.18 /* Horizontal lines, front porch end. */
1.19
1.20 @@ -45,11 +46,13 @@
1.21
1.22 #define VSYNC_END 622
1.23
1.24 -#define SCREEN_BASE 256
1.25 -#define SCREEN_SIZE (40 * 1024)
1.26 -#define SCREEN_LIMIT (SCREEN_BASE + SCREEN_SIZE)
1.27 +/* Framebuffer properties. */
1.28 +
1.29 +#define SCREEN_SIZE (LINE_LENGTH * LINE_COUNT)
1.30
1.31 -#define SCREEN_BASE_KSEG0 (KSEG0_BASE + SCREEN_BASE)
1.32 -#define SCREEN_LIMIT_KSEG0 (KSEG0_BASE + SCREEN_LIMIT)
1.33 +/* Transfer and pixel allocation properties. */
1.34 +
1.35 +#define TRANSFER_CELL_SIZE LINE_LENGTH
1.36 +#define CELL_SIZE LINE_LENGTH
1.37
1.38 #endif /* __VGA_H__ */