1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-06-30 23:59:48 +03:00
ben-blinkenlights/ubb-vga/ubb-vga.h
Werner Almesberger 623f3ccbe3 ubb-vga2: non-contiguous allocation of frame buffer memory
- ubb-vga.h (calloc_phys_vec), physmem.c: non-contiguous memory allocator
  (for now, without really considering any mapping to physical memory)
- Makefile (OBJS): added physmem.o
- ubb-vga.h (grabfb), grabfb.c (grabfb): API change for non-contiguous
  frame buffer
- ubb-vga.h (ppmimg), ppmimg.c (convert, ppmimg): API change for
  non-contiguous frame buffer
- ubb-vga.h (tstimg), tstimg.c (pixel, color_bars, grill, grid, sides,
  dot, line45, arc, printc, text, ctext, tstimg): API change for
  non-contiguous frame buffer
- tstimg.c (tstimg): we no longer need to clear the frame buffer
- ubb-vga.c (frame, session, main): use a vector of line buffers instead
  of a contiguous frame buffer
2011-04-29 13:04:02 -03:00

53 lines
1003 B
C

/*
* ubb-vga.h - Output video on UBB with more or less VGA timing
*
* Written 2011 by Werner Almesberger
* Copyright 2011 Werner Almesberger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef UBB_VGA_H
#define UBB_VGA_H
#include <stdint.h>
#include <sys/types.h>
#define R_VAL (1 << 3)
#define G_VAL (1 << 0)
#define B_VAL (1 << 1)
#define Y_VAL (1 << 2)
void *map(off_t addr, size_t size);
/* ccube.c */
uint8_t ccube_map(uint8_t r, uint8_t g, uint8_t b);
void ccube_init(void);
/* physmem.c */
void **calloc_phys_vec(size_t n, size_t size);
/* grabfb.c */
void grabfb(void **f, int xres, int yres);
/* tstimg.c */
void tstimg(void **f, int xres, int yres);
/* ppmimg.c */
extern char *img_name;
void ppmimg(void **f, int xres, int yres);
#endif /* !UBB_VGA_H */