-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddrspace.h
More file actions
44 lines (38 loc) · 1.33 KB
/
addrspace.h
File metadata and controls
44 lines (38 loc) · 1.33 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
#ifndef _ADDRSPACE_H
#define _ADDRSPACE_H
/* addrspace.h */
/*****************************************************************************/
/* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only */
/* */
/* AS */
/* */
/* Address Space enumeration */
/* */
/*****************************************************************************/
/* NOTE: these constants are used in the .P files, so DO NOT CHANGE existing
enums; only attach new enums at the end! */
typedef enum
{
SegNone = 0,
SegCode = 1,
SegData = 2,
SegIData = 3,
SegXData = 4,
SegYData = 5,
SegBData = 6,
SegIO = 7,
SegReg = 8,
SegRData = 9,
SegEEData = 10,
SegCount = 11,
StructSeg = SegCount,
SegCountPlusStruct = 12
} as_addrspace_t;
#ifdef __cplusplus
#include "cppops.h"
DefCPPOps_Enum(as_addrspace_t)
#endif
extern const char *SegNames[SegCountPlusStruct];
extern char SegShorts[SegCountPlusStruct];
extern as_addrspace_t addrspace_lookup(const char *p_name);
#endif /* _ADDRSPACE_H */