1.1 --- a/stage2/jzlcd.h Mon Jan 25 18:01:52 2016 +0100
1.2 +++ b/stage2/jzlcd.h Mon Jan 25 18:04:21 2016 +0100
1.3 @@ -71,7 +71,6 @@
1.4
1.5 unsigned long screen; /* address of frame buffer */
1.6 unsigned long palette; /* address of palette memory */
1.7 - unsigned int palette_size;
1.8 };
1.9
1.10 /*
1.11 @@ -85,6 +84,11 @@
1.12 struct jz_fb_info jz_fb;
1.13 } vidinfo_t;
1.14
1.15 +/* Alignment/rounding macros. */
1.16 +
1.17 +#define ALIGN(x,a) __ALIGN_MASK((x),(typeof(x))(a)-1)
1.18 +#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
1.19 +
1.20 /* General values for colour depths and framebuffer characteristics. */
1.21
1.22 #define LCD_MONOCHROME 0