home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / bsd / m68k / cpu.h < prev    next >
Text File  |  1992-07-29  |  1KB  |  69 lines

  1. /*    @(#)cpu.h    1.0    11/09/86    (c) 1986 NeXT    */
  2.  
  3. /* 
  4.  * HISTORY
  5.  * 21-May-91  Gregg Kellogg (gk) at NeXT
  6.  *    Public version.
  7.  *
  8.  * 26-Mar-91  Gregg Kellogg (gk) at NeXT
  9.  *    Externallized all variable declarations.
  10.  *
  11.  * 09-Nov-86  John Seamons (jks) at NeXT
  12.  *    Ported to NeXT.
  13.  */ 
  14.  
  15. /*
  16.  * Copyright (c) 1982, 1986 Regents of the University of California.
  17.  * All rights reserved.  The Berkeley software License Agreement
  18.  * specifies the terms and conditions for redistribution.
  19.  *
  20.  *    @(#)cpu.h    7.1 (Berkeley) 6/5/86
  21.  */
  22. #ifndef    _M68K_CPU_
  23. #define    _M68K_CPU_
  24.  
  25. #ifndef    ASSEMBLER
  26. /* 
  27.  *  We use these types in the definitions below and hence ought to include them
  28.  *  directly to aid new callers (even if our caller is likely to have already
  29.  *  done so).
  30.  */
  31. #import <bsd/sys/types.h>
  32. #endif    ASSEMBLER
  33.  
  34. #ifndef    ASSEMBLER
  35. #ifdef    KERNEL_BUILD
  36. #import <cpus.h>
  37. #else    KERNEL_BUILD
  38. #import <mach/features.h>
  39. #endif    KERNEL_BUILD
  40. #endif    ASSEMBLER
  41.  
  42. /*
  43.  * Hardware revisions
  44.  */
  45. #if    KERNEL || STANDALONE
  46.  
  47. #ifndef    ASSEMBLER
  48. extern u_short    dma_chip;
  49. extern u_char    cpu_rev;
  50. extern u_char    cpu_clk;
  51. extern u_char    machine_type;            /* see scr.h for values */
  52. extern u_char    board_rev;
  53. extern u_char    cpu_type;
  54. extern u_char    mon_rev;
  55. #endif    ASSEMBLER
  56.  
  57. /* cpu_type values */
  58. #define    MC68030        0
  59. #define    MC68040        1
  60.  
  61. #endif    KERNEL || STANDALONE
  62.  
  63. #ifdef    CPU_NUMBER_d0
  64. #undef    CPU_NUMBER_d0
  65. #endif    CPU_NUMBER_d0
  66. #define CPU_NUMBER_d0        clrl    d0;
  67. #define    cpu_number()        (0)
  68.             endif    _M68K_CPU_
  69.