Displaying 2 results from an estimated 2 matches for "default_width".
2009 Nov 05
0
[PATCH] Add VirtIO Frame Buffer Support
...+} __attribute__ ((packed));
Packed structures generate terrible code on some architectures. Can you
just pad structures to multiples of 64 bit, or to full union size, instead?
> +
> +enum copy_type {
> + COPY_KERNEL,
> + COPY_USER,
> + COPY_NOCOPY,
> +};
> +
> +#define DEFAULT_WIDTH 800
> +#define DEFAULT_HEIGHT 600
> +#define DEFAULT_DEPTH 32
> +#define DEFAULT_MEM 8
> +
> +#define DEFAULT_FB_LEN (DEFAULT_WIDTH * DEFAULT_HEIGHT * DEFAULT_DEPTH / 8)
> +
> +enum { KPARAM_MEM, KPARAM_WIDTH, KPARAM_HEIGHT, KPARAM_CNT };
> +static int video[KPARAM_CNT]...
2009 Nov 05
0
[PATCH] Add VirtIO Frame Buffer Support
...+} __attribute__ ((packed));
Packed structures generate terrible code on some architectures. Can you
just pad structures to multiples of 64 bit, or to full union size, instead?
> +
> +enum copy_type {
> + COPY_KERNEL,
> + COPY_USER,
> + COPY_NOCOPY,
> +};
> +
> +#define DEFAULT_WIDTH 800
> +#define DEFAULT_HEIGHT 600
> +#define DEFAULT_DEPTH 32
> +#define DEFAULT_MEM 8
> +
> +#define DEFAULT_FB_LEN (DEFAULT_WIDTH * DEFAULT_HEIGHT * DEFAULT_DEPTH / 8)
> +
> +enum { KPARAM_MEM, KPARAM_WIDTH, KPARAM_HEIGHT, KPARAM_CNT };
> +static int video[KPARAM_CNT]...