driver.h 579 Bytes
/*
 *
 *
 *
 *
 */

#ifndef DRIVER_INCLUDE
#define DRIVER_INCLUDE

#include "ints.h"

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

  /* input */
  int gclk;

  /* output */
  int reset;
  int cs_st_prim;
  int cs_st_attr;
  int cs_cmd;         /* [5:0] */
  int64 cs_ew_d;      /* [63:0] */
  int st_span;

  /* extras */
  int count;

  /* valids */
  int dv;
  int dv_d1;

} driver_t;


/*
 *  Prototypes
 */
void driver(driver_t **pp0, driver_t **pp1);
void driver_init(driver_t *p0, driver_t *p1);

#endif /* DRIVER_INCLUDE */