tkernel_2/include/sys/sysdepend/tef_em1d/segment_depend.h | bare source | permlink (0.02 seconds) |
1: /* 2: *---------------------------------------------------------------------- 3: * T-Kernel 2.0 Software Package 4: * 5: * Copyright 2011 by Ken Sakamura. 6: * This software is distributed under the latest version of T-License 2.x. 7: *---------------------------------------------------------------------- 8: * 9: * Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17. 10: * Modified by TRON Forum(http://www.tron.org/) at 2015/06/01. 11: * 12: *---------------------------------------------------------------------- 13: */ 14: 15: /* 16: * @(#)segment_depend.h (sys/EM1-D512) 17: * 18: * Segment management system dependent definitions 19: */ 20: 21: #ifndef __SYS_SEGMENT_DEPEND_H__ 22: #define __SYS_SEGMENT_DEPEND_H__ 23: 24: #ifdef __cplusplus 25: extern "C" { 26: #endif 27: 28: /* Access level definitions */ 29: typedef enum { 30: MapUser = 0x02, 31: MapSystem = 0x00, 32: MapRead = 0x00, 33: MapWrite = 0x30, 34: MapExecute = 0x04 35: } MapModeLevel; 36: 37: /* 38: * MapMemory() attr 39: */ 40: #define MM_USER 0x020U /* User */ 41: #define MM_SYSTEM 0x000U /* System */ 42: #define MM_READ 0x000U /* Read */ 43: #define MM_WRITE 0x300U /* Write */ 44: #define MM_EXECUTE 0x040U /* Execute */ 45: #define MM_CDIS 0x00cU /* Cache disabled */ 46: 47: #ifdef __cplusplus 48: } 49: #endif 50: #endif /* __SYS_SEGMENT_DEPEND_H__ */