OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [hwtests/] [kbdtest/] [start.h] - Blame information for rev 14

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 hellwig
/*
2
 * start.h -- startup and support routines
3
 */
4
 
5
 
6
#ifndef _START_H_
7
#define _START_H_
8
 
9
 
10
typedef struct {
11
  Word ic_reg[32];              /* general purpose registers */
12
  Word ic_tlbhi;                /* TLB EntryHi */
13
  Word ic_psw;                  /* PSW */
14
} InterruptContext;
15
 
16
typedef void (*ISR)(int irq, InterruptContext *icp);
17
 
18
 
19
int cin(void);
20
void cout(char c);
21
 
22
Word getTLB_HI(int index);
23
Word getTLB_LO(int index);
24
void setTLB(int index, Word entryHi, Word entryLo);
25
void wrtRndTLB(Word entryHi, Word entryLo);
26
Word probeTLB(Word entryHi);
27
void wait(int n);
28
void enable(void);
29
void disable(void);
30
Word getMask(void);
31
Word setMask(Word mask);
32
ISR getISR(int irq);
33
ISR setISR(int irq, ISR isr);
34
 
35
 
36
#endif /* _START_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.