param.h (cbd59a4f658ff44ebe2aab164cc6f830f8dfcd62) | param.h (a254d1f16dd367b6ebb0e9dca50a29bb1ec33c31) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 98 unchanged lines hidden (view full) --- 107#endif 108 109/* Machine type dependent parameters. */ 110#include <machine/param.h> 111#ifndef _KERNEL 112#include <sys/limits.h> 113#endif 114 | 1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 98 unchanged lines hidden (view full) --- 107#endif 108 109/* Machine type dependent parameters. */ 110#include <machine/param.h> 111#ifndef _KERNEL 112#include <sys/limits.h> 113#endif 114 |
115#ifndef _NO_NAMESPACE_POLLUTION 116 | |
117#ifndef DEV_BSHIFT 118#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ 119#endif 120#define DEV_BSIZE (1<<DEV_BSHIFT) 121 122#ifndef BLKDEV_IOSIZE 123#define BLKDEV_IOSIZE PAGE_SIZE /* default block device I/O size */ 124#endif --- 52 unchanged lines hidden (view full) --- 177 : (daddr_t)((unsigned long)(bytes) >> DEV_BSHIFT)) 178#endif 179 180#ifndef dbtob 181#define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ 182 ((off_t)(db) << DEV_BSHIFT) 183#endif 184 | 115#ifndef DEV_BSHIFT 116#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ 117#endif 118#define DEV_BSIZE (1<<DEV_BSHIFT) 119 120#ifndef BLKDEV_IOSIZE 121#define BLKDEV_IOSIZE PAGE_SIZE /* default block device I/O size */ 122#endif --- 52 unchanged lines hidden (view full) --- 175 : (daddr_t)((unsigned long)(bytes) >> DEV_BSHIFT)) 176#endif 177 178#ifndef dbtob 179#define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ 180 ((off_t)(db) << DEV_BSHIFT) 181#endif 182 |
185#endif /* _NO_NAMESPACE_POLLUTION */ 186 | |
187#define PRIMASK 0x0ff 188#define PCATCH 0x100 /* OR'd with pri for tsleep to check signals */ 189#define PDROP 0x200 /* OR'd with pri to stop re-entry of interlock mutex */ 190#define PBDRY 0x400 /* for PCATCH stop is done on the user boundary */ 191 192#define NZERO 0 /* default "nice" */ 193 194#define NBBY 8 /* number of bits in a byte */ --- 121 unchanged lines hidden --- | 183#define PRIMASK 0x0ff 184#define PCATCH 0x100 /* OR'd with pri for tsleep to check signals */ 185#define PDROP 0x200 /* OR'd with pri to stop re-entry of interlock mutex */ 186#define PBDRY 0x400 /* for PCATCH stop is done on the user boundary */ 187 188#define NZERO 0 /* default "nice" */ 189 190#define NBBY 8 /* number of bits in a byte */ --- 121 unchanged lines hidden --- |