display.h 847 Bytes
/*
 *  display.h - display texture output.
 *
 */

#ifndef DISPLAY_INCLUDE
#define DISPLAY_INCLUDE

#define DISP_ADDR_DELAY 25

#include "ints.h"

typedef struct {
  /* required */
  char *label;
  int gclk_old;
  int argc;
  char **argv;

  /* input signals */
  int gclk;

  int bl_r;     /* from blender */
  int bl_g;     /* from blender */
  int bl_b;     /* from blender */
  int bl_a;     /* from blender */
  int clr_we;   /* from blender */
  int st_span;  /* from edge walker */
  int ms_addr;  /* from edge walker */
  int wr_fb;    /* write frame buffer, from driver */
  int left;

  /* output signals */
  int exit;

  /* internal registers */
  int adrs_d1;
  int addr[DISP_ADDR_DELAY];


} display_t;


void  display(display_t **pp0, display_t **pp1);
void display_init(display_t *p0, display_t *p1);

#endif /* DISPLAY_INCLUDE */