clock_vms.c 1.19 KB
/**************************************************************************
 *									  *
 *		 Copyright (C) 1993, Silicon Graphics, Inc.		  *
 *									  *
 *  These coded instructions, statements, and computer programs  contain  *
 *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
 *  are protected by Federal copyright law.  They  may  not be disclosed  *
 *  to  third  parties  or copied or duplicated in any form, in whole or  *
 *  in part, without the prior written consent of Silicon Graphics, Inc.  *
 *									  *
 **************************************************************************/

/*
 *  clock_vms.c $Revision: 1.1.1.1 $
 */
#include "clock_vms.h"

/* couldn't get reset to come out as zero on 1st clock */
static int junk;

void
clock_vms(clock_vms_t **pp0, clock_vms_t **pp1)
{
    clock_vms_t *p0, *p1;
  
    p0 = *pp0;
    p1 = *pp1;

    if (junk ) {
	p0->clock = p0->c_clock;
	p0->gclk = p0->c_gclk;
	p0->reset = p0->c_reset;
    } else {
	junk++;
	p0->clock = 0;
	p0->gclk = 0;
	p0->reset = 0;
    }


}

void
clock_vms_init(clock_vms_t *p0, clock_vms_t *p1)
{
    p0->clock = p1->c_clock = 0;
    p0->gclk = p1->c_gclk = 0;
    p0->reset = p1->c_reset = 0;
}