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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [common/] [common.h] - Blame information for rev 257

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 59 hellwig
/*
2
 * common.h -- common definitions
3
 */
4
 
5
 
6
#ifndef _COMMON_H_
7
#define _COMMON_H_
8
 
9
 
10 257 hellwig
#define PAGE_SHFT       12                      /* log2 of page size */
11
#define PAGE_SIZE       ((Word) 1 << PAGE_SHFT) /* page size in bytes */
12 59 hellwig
#define OFFSET_MASK     (PAGE_SIZE - 1)         /* mask for offset in page */
13
#define PAGE_MASK       (~OFFSET_MASK)          /* mask for page number */
14
 
15
 
16
typedef enum { false, true } Bool;              /* truth values */
17
 
18
 
19
typedef unsigned int Word;                      /* 32 bit quantities */
20
typedef unsigned short Half;                    /* 16 bit quantities */
21
typedef unsigned char Byte;                     /*  8 bit quantities */
22
 
23
 
24
#define NULL    ((void *) 0)
25
 
26
 
27
#endif /* _COMMON_H_ */

powered by: WebSVN 2.1.0

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