add kvtopte, kvtophys
[unix-history] / usr / src / sys / tahoe / include / param.h
index c19dbbd..3568869 100644 (file)
@@ -1,32 +1,37 @@
-/*     param.h 1.8     87/05/12        */
-
 /*
 /*
- * Machine dependent constants for TAHOE.
+ * Copyright (c) 1982, 1986 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ *     @(#)param.h     1.12 (Berkeley) %G%
  */
 
  */
 
-#ifndef ENDIAN
 /*
 /*
- * Definitions for byte order,
- * according to byte significance from low address to high.
+ * Machine dependent constants for TAHOE.
  */
  */
-#define        LITTLE  1234            /* least-significant byte first (vax) */
-#define        BIG     4321            /* most-significant byte first */
-#define        PDP     3412            /* LSB first in word, MSW first in long (pdp) */
-#define        ENDIAN  BIG             /* byte order on tahoe */
+#define        MACHINE "tahoe"
 
 
-/*
- * Macros for network/external number representation conversion.
- */
-#if ENDIAN == BIG && !defined(lint)
-#define        ntohl(x)        (x)
-#define        ntohs(x)        (x)
-#define        htonl(x)        (x)
-#define        htons(x)        (x)
-#else
-unsigned short ntohs(), htons();
-unsigned long  ntohl(), htonl();
+#ifndef BYTE_ORDER
+#include <machine/endian.h>
 #endif
 
 #endif
 
+#define        CHAR_BIT        NBBY
+#define        CHAR_MAX        0x7f
+#define        CHAR_MIN        0x80
+#define        CLK_TCK         60                      /* for times() */
+#define        INT_MAX         0x7fffffff
+#define        INT_MIN         0x80000000
+#define        LONG_MAX        0x7fffffff
+#define        LONG_MIN        0x80000000
+#define        SCHAR_MAX       0x7f
+#define        SCHAR_MIN       0x80
+#define        SHRT_MAX        0x7fff
+#define        SHRT_MIN        0x8000
+#define        UCHAR_MAX       0xff
+#define        UINT_MAX        0xffffffff
+#define        ULONG_MAX       0xffffffff
+#define        USHRT_MAX       0xffff
+
 #define        NBPG            1024            /* bytes/page */
 #define        PGOFSET         (NBPG-1)        /* byte offset into page */
 #define        PGSHIFT         10              /* LOG2(NBPG) */
 #define        NBPG            1024            /* bytes/page */
 #define        PGOFSET         (NBPG-1)        /* byte offset into page */
 #define        PGSHIFT         10              /* LOG2(NBPG) */
@@ -118,4 +123,3 @@ unsigned long       ntohl(), htonl();
 #define        BASEPRI(ps)     (((ps) & PSL_IPL) == 0)
 
 #define        DELAY(n)        { register int N = 3*(n); while (--N > 0); }
 #define        BASEPRI(ps)     (((ps) & PSL_IPL) == 0)
 
 #define        DELAY(n)        { register int N = 3*(n); while (--N > 0); }
-#endif