?? envdep.h
字號:
/********************************************************************20**
Name: environment dependent
Type: C include file
Desc: Environment dependent defines required by the
by TRILLIUM software. The defines in this file need to
be changed by the customer to reflect the
processor family under which the TRILLIUM software
will run.
File: envdep.h
Sid: envdep.h@@/main/61 - Fri Feb 9 14:34:00 2001
Prg: na
*********************************************************************21*/
#ifndef __ENVDEPH__
#define __ENVDEPH__
/*
* this software may be combined with the following TRILLIUM
* software:
*
* part no. description
* -------- ----------------------------------------------
* 1000001 Physical Layer - SCC
* 1000002 Data Link Layer - LAPB
* 1000003 Data Link Layer - LAPD
* 1000005 Data Link Layer - LAPB & LAPD
* 1000006 Network Layer - X.25 Intermediate System
* 1000007 Network Layer - X.25 End System
* 1000008 Network Layer - X.75
* 1000009 Network Layer - Q.930/Q.931
* 1000010 Application Layer - Asynchronous PAD
* 1000011 Multiprocessor Operating System (MOS)
* 1000014 Network Layer - X.25 End & Intermediate System
* 1000017 Data Link Layer - Basic Frame Relay
* 1000018 Data Link Layer - Extended Frame Relay
* 1000019 Data Link Layer - Logical Link Control 1
* 1000020 Data Link Layer - Logical Link Control 2
* 1000021 Data Link Layer - Logical Link Control 3
* 1000023 Network Layer - X.31
* 1000024 Signalling System 7 (SS7)
* 1000025 SDLC
* 1000026 TCP/IP
* 1000027 Signalling System 7 - MTP Level 2
* 1000028 Signalling System 7 - MTP Level 3
* 1000029 Signalling System 7 - ISUP
* 1000030 Signalling System 7 - SCCP
* 1000031 Signalling System 7 - TCAP
* 1000033 Data Link Layer - ADCCP-NRM
* 1000034 Physical Layer - ISAC-S
* 1000035 68302 MOS/SCC
* 1000040 UDP/IP
* 1000041 ESCC
* 1000042 Signalling System 7 - TUP
* 1000043 Network Layer - Q.93B
* 1000044 Data Link Layer - Q.SAAL
*
*/
#ifdef __cplusplus
extern "C" {
#endif
/* conversion of MSCDOS and MSCUNIX for backwards compatibility */
#ifdef MSCDOS /* microsoft, dos */
#define ANSI /* ansi */
#define DOS /* dos */
#define MSC51 /* microsoft */
#else /* not microsoft, dos */
#ifdef MSCUNIX /* microsoft, unix */
#define ANSI /* ansi */
#define UNIX /* unix */
#define MSC51 /* microsoft */
#else /* not microsoft, dos or unix */
#endif
#endif
/* ensure microsoft 7.0 backwards compatible with microsoft 5.1 */
#ifdef MSC70
#define MSC51
#endif
/* ensure microsoft 6.0 backwards compatible with microsoft 5.1 */
#ifdef MSC60
#define MSC51
#endif
/* default to sunos 5.1 for sunos */
#ifdef SUNOS
#define SUNOS51
#endif
/* ensure sunos 4.1 backwards compatible with sunos */
#ifdef SUNOS41
#ifndef SUNOS
#define SUNOS
#endif
#endif
/* ensure sunos 5.1 backwards compatible with sunos */
#ifdef SUNOS51
#ifndef SUNOS
#define SUNOS
#endif
#endif
/* ensure elvis backwards compatible with sunos */
#ifdef ELVIS_STACK
#ifndef SUNOS
#define SUNOS
#endif
#endif
#ifdef ELVIS_APP
#ifndef SUNOS
#define SUNOS
#endif
#endif
#ifdef POWER_STACK
#define UNIX
#define AIX
#define PROC_PPC
#endif /* POWER_STACK */
/* Fujitsu ALC evalutation board */
#ifdef ALC_EVAL
#define PROC_68349
#define PROC_68XXX
#define SOLMRI43
#endif /* ALC_EVAL */
/* argument manipulation for ansi or non ansi function prototypes */
#ifdef ANSI /* ansi */
#define ARGS(m) m
#else /* non ansi */
#define ARGS(m) ()
#endif
/* type definition for ansi or non ansi pointers */
#ifdef ANSI
typedef void *Ptr; /* ANSI vanilla pointer type definition */
#else
typedef char *Ptr; /* K&R vanilla pointer type definition */
#endif
/**********************************************************************
memory models
**********************************************************************/
/*
these defines are arranged first by environment (DOS, UNIX, SUNOS or
embedded) followed by compiler (microsoft c, borland, unix or
microtec c) as appropriate.
*/
#ifdef WIN32 /* dos, nt win32 */
#define INTERRPT /* interrupt */
#define ASM /* in-line assembly code */
#define ISR_PUSH_ENV /* isr push environment */
#define ISR_POP_ENV /* isr pop environment */
#define M_I86CM /* Intel 80x86 compact model */
#define BIOSKEY _bios_keybrd
#define BIOSTOD _bios_timeofday
#define DOSKEEP _dos_keep
#define DOSGETDATE _dos_getdate
#define DOSGETTIME _dos_gettime
#define DOSDATE dosdate_t
#define DOSTIME dostime_t
/*** modify by shang , 2002-1-3 ***/
#if 0
#define DOSSIZE size_t
#else
#endif
/*** modify by shang is over ***/
#define DOSENABLE _enable
#define DOSDISABLE _disable
#define DOSGETVECT _dos_getvect
#define DOSSETVECT _dos_setvect
#define DOSINT86 int86
#define DOSINT86X int86x
#define DOSMALLOC malloc
#define DOSEXIT _exit
#define NEAR _NEAR
#define KEYBRD_READY _KEYBRD_READY
#define KEYBRD_READ _KEYBRD_READ
#define TIME_GETCLOCK _TIME_GETCLOCK
#endif /* WIN32 */
#ifdef DOS /* dos */
#ifdef MSC51 /* dos, microsoft c */
#ifdef M_I86HM /* Intel 80x86 huge model */
#define INTERRPT _interrupt /* interrupt */
#else
#define INTERRPT _interrupt far /* interrupt */
#endif /* M_I86HM */
#define ASM /* in-line assembly code */
#define ISR_PUSH_ENV /* isr push environment */
#define ISR_POP_ENV /* isr pop environment */
#define BIOSKEY _bios_keybrd
#define BIOSTOD _bios_timeofday
#define DOSGETDATE _dos_getdate
#define DOSGETTIME _dos_gettime
#define DOSDATE dosdate_t
#define DOSTIME dostime_t
#define DOSENABLE _enable
#define DOSDISABLE _disable
#define DOSGETVECT _dos_getvect
#define DOSSETVECT _dos_setvect
#define DOSEXIT _exit
#define NEAR _NEAR
#define KEYBRD_READY _KEYBRD_READY
#define KEYBRD_READ _KEYBRD_READ
#define TIME_GETCLOCK _TIME_GETCLOCK
#ifdef M_I86SM /* Intel 80x86 small model */
#define I86SM
#endif /* M_I86SM */
#ifdef M_I86MM /* Intel 80x86 medium model */
#define I86MM
#endif /* M_I86MM */
#ifdef M_I86CM /* Intel 80x86 compact model */
#define I86CM
#endif /* M_I86CM */
#ifdef M_I86LM /* Intel 80x86 large model */
#define I86LM
#endif /* M_I86LM */
#ifdef M_I86HM /* Intel 80x86 huge model */
#define I86HM
#endif /* M_I86HM */
#else /* not MSC51*/
#ifdef BOR31 /* dos, borland c */
#define INTERRPT _interrupt far /* interrupt */
#define ASM /* in-line assembly code */
#define ISR_PUSH_ENV /* isr push environment */
#define ISR_POP_ENV /* isr pop environment */
#define I86LM /* Intel 80x86 large model */
#define BIOSKEY _bios_keybrd
#define BIOSTOD _bios_timeofday
#define DOSKEEP _dos_keep
#define DOSGETDATE _dos_getdate
#define DOSGETTIME _dos_gettime
#define DOSDATE dosdate_t
#define DOSTIME dostime_t
/*** modify by shang , 2002-1-3 ***/
#if 0
#define DOSSIZE size_t
#else
#endif
/*** modify by shang is over ***/
#define DOSENABLE _enable
#define DOSDISABLE _disable
#define DOSGETVECT _dos_getvect
#define DOSSETVECT _dos_setvect
#define DOSINT86 int86
#define DOSINT86X int86x
#define DOSMALLOC malloc
#define DOSEXIT _exit
#define NEAR _NEAR
#define KEYBRD_READY _KEYBRD_READY
#define KEYBRD_READ _KEYBRD_READ
#define TIME_GETCLOCK _TIME_GETCLOCK
#else /* not BOR31 */
#endif /* BOR31 */
#endif /* MSC51 */
#else /* not DOS */
#ifdef UNIX /* unix */
#define INTERRPT /* interrupt */
#define ASM /* in-line assembly code */
#define ISR_PUSH_ENV /* isr push environment */
#define ISR_POP_ENV /* isr pop environment */
/*** add by shang, 2002-1-10 ***/
#ifdef AMOS
#define INTERRPT /* interrupt */
#define ISR_PUSH_ENV /* isr push environment */
#define ISR_POP_ENV /* isr pop environment */
#define BIOSKEY _bios_keybrd
#define BIOSTOD _bios_timeofday
#define DOSGETDATE _dos_getdate
#define DOSGETTIME _dos_gettime
#define DOSDATE dosdate_t
#define DOSTIME dostime_t
#define DOSENABLE _enable
#define DOSDISABLE _disable
#define DOSGETVECT _dos_getvect
#define DOSSETVECT _dos_setvect
#define DOSEXIT _exit
#define NEAR
#define KEYBRD_READY _KEYBRD_READY
#define KEYBRD_READ _KEYBRD_READ
#else
/*** add by shang is over ***/
#ifdef __alpha /* alpha */
#define ALPHA
#undef OTHMOD
#endif /* __alpha */
#endif /* amos */
#else /* not UNIX */
#ifdef SUNOS /* sun os */
#define PROC_SPARC /* sparc model */
#define UNIX /* unix */
#define INTERRPT /* interrupt */
#define ASM /* in-line assembly code */
#define ISR_PUSH_ENV /* isr push environment */
#define ISR_POP_ENV /* isr pop environment */
#else /* not SUNOS */
#ifdef MOTADS /* embedded, motorola ads */
#define PROC_68302 /* enable 68302 specific defines */
#define M68 /* motorola 68000 */
#ifdef DOSMRI42D /* DOS microtec c cross-compiler */
#define MRI68K /* microtec 68K c compiler */
#define INTERRPT interrupt /* interrupt */
#define ASM asm /* in-line assembly code */
#define ISR_PUSH_ENV ASM(" movem.l d2-d7/a2-a6,-(a7)") /* isr push environment */
#define ISR_POP_ENV ASM(" movem.l (a7)+,d2-d7/a2-a6") /* isr pop environment */
#endif /* DOSMRI42D */
#ifdef SOLMRI43 /* solaris microtec c cross-compiler */
#define MRI68K /* microtec 68K c compiler */
#define INTERRPT interrupt /* interrupt */
#define ASM asm /* in-line assembly code */
#define ISR_PUSH_ENV ASM(" movem.l d2-d7/a2-a6,-(a7)") /* isr push environment */
#define ISR_POP_ENV ASM(" movem.l (a7)+,d2-d7/a2-a6") /* isr pop environment */
#endif /* SOLMRI43 */
#ifdef SOLOAS186 /* solaris oasys c cross-compiler */
#define INTERRPT /* interrupt */
#ifdef ANSI
#define ASM __asm /* in-line assembly code */
#else /* not ANSI */
#define ASM asm /* in-line assembly code */
#endif /* ANSI */
#define ISR_PUSH_ENV /* isr push environment */
#define ISR_POP_ENV /* isr pop environment */
#endif /* SOLOAS186 */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -