1: #ifndef _MINIX_SYS_CONFIG_H
   2: #define _MINIX_SYS_CONFIG_H 1
   3: 
   4: /*===========================================================================*
   5:  *              This section contains user-settable parameters               *
   6:  *===========================================================================*/
   7: #define _MINIX_MACHINE       _MACHINE_IBM_PC
   8: 
   9: #define _MACHINE_IBM_PC             1   /* any  8088 or 80x86-based system */
  10: #define _MACHINE_SUN_4             40   /* any Sun SPARC-based system */
  11: #define _MACHINE_SUN_4_60          40   /* Sun-4/60 (aka SparcStation 1 or Campus) */
  12: #define _MACHINE_ATARI             60   /* ATARI ST/STe/TT (68000/68030) */
  13: #define _MACHINE_MACINTOSH         62   /* Apple Macintosh (68000) */
  14: 
  15: /* Word size in bytes (a constant equal to sizeof(int)). */
  16: #if __ACK__ || __GNUC__
  17: #define _WORD_SIZE      _EM_WSIZE
  18: #define _PTR_SIZE       _EM_WSIZE
  19: #endif
  20: 
  21: #define _NR_PROCS       100
  22: #define _NR_SYS_PROCS   32
  23: #define _NR_HOLES (2*_NR_PROCS+4)  /* No. of memory holes maintained by PM */
  24: 
  25: /* Set the CHIP type based on the machine selected. The symbol CHIP is actually
  26:  * indicative of more than just the CPU.  For example, machines for which
  27:  * CHIP == INTEL are expected to have 8259A interrrupt controllers and the
  28:  * other properties of IBM PC/XT/AT/386 types machines in general. */
  29: #define _CHIP_INTEL             1       /* CHIP type for PC, XT, AT, 386 and clones */
  30: #define _CHIP_M68000            2       /* CHIP type for Atari, Amiga, Macintosh    */
  31: #define _CHIP_SPARC             3       /* CHIP type for SUN-4 (e.g. SPARCstation)  */
  32: 
  33: /* Set the FP_FORMAT type based on the machine selected, either hw or sw    */
  34: #define _FP_NONE                  0     /* no floating point support                */
  35: #define _FP_IEEE                  1     /* conform IEEE floating point standard     */
  36: 
  37: #if (_MINIX_MACHINE == _MACHINE_IBM_PC)
  38: #define _MINIX_CHIP          _CHIP_INTEL
  39: #endif
  40: 
  41: #if (_MINIX_MACHINE == _MACHINE_ATARI) || (_MINIX_MACHINE == _MACHINE_MACINTOSH)
  42: #define _MINIX_CHIP         _CHIP_M68000
  43: #endif
  44: 
  45: #if (_MINIX_MACHINE == _MACHINE_SUN_4) || (_MINIX_MACHINE == _MACHINE_SUN_4_60)
  46: #define _MINIX_CHIP          _CHIP_SPARC
  47: #define _MINIX_FP_FORMAT   _FP_IEEE
  48: #endif
  49: 
  50: #if (_MINIX_MACHINE == _MACHINE_ATARI) || (_MINIX_MACHINE == _MACHINE_SUN_4)
  51: #define _ASKDEV            1    /* ask for boot device */
  52: #define _FASTLOAD          1    /* use multiple block transfers to init ram */
  53: #endif
  54: 
  55: #ifndef _MINIX_FP_FORMAT
  56: #define _MINIX_FP_FORMAT   _FP_NONE
  57: #endif
  58: 
  59: #ifndef _MINIX_MACHINE
  60: error "In <minix/sys_config.h> please define _MINIX_MACHINE"
  61: #endif
  62: 
  63: #ifndef _MINIX_CHIP
  64: error "In <minix/sys_config.h> please define _MINIX_MACHINE to have a legal value"
  65: #endif
  66: 
  67: #if (_MINIX_MACHINE == 0)
  68: error "_MINIX_MACHINE has incorrect value (0)"
  69: #endif
  70: 
  71: #endif /* _MINIX_SYS_CONFIG_H */