clock_vms.c
1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**************************************************************************
* *
* 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;
}