2011-04-27 20:59:29 -03:00
|
|
|
/*
|
|
|
|
* 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);
|
|
|
|
|
|
|
|
|
2011-04-28 01:18:03 -03:00
|
|
|
/* ccube.c */
|
|
|
|
|
|
|
|
uint8_t ccube_map(uint8_t r, uint8_t g, uint8_t b);
|
|
|
|
void ccube_init(void);
|
2011-04-28 00:38:13 -03:00
|
|
|
|
2011-04-28 01:18:03 -03:00
|
|
|
/* grabfb.c */
|
2011-04-27 20:59:29 -03:00
|
|
|
|
|
|
|
void grabfb(void *f, int xres, int yres);
|
|
|
|
|
2011-04-28 00:38:13 -03:00
|
|
|
/* tstimg.c */
|
|
|
|
|
2011-04-27 23:31:39 -03:00
|
|
|
void tstimg(void *f, int xres, int yres);
|
|
|
|
|
2011-04-28 00:38:13 -03:00
|
|
|
/* ppmimg.c */
|
|
|
|
|
|
|
|
extern char *img_name;
|
|
|
|
|
|
|
|
void ppmimg(void *f, int xres, int yres);
|
|
|
|
|
2011-04-27 20:59:29 -03:00
|
|
|
#endif /* !UBB_VGA_H */
|