Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/param.h
| Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Lines | |||||
| #include <sys/signal.h> | #include <sys/signal.h> | ||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| /* Machine type dependent parameters. */ | /* Machine type dependent parameters. */ | ||||
| #include <machine/param.h> | #include <machine/param.h> | ||||
| #ifndef _KERNEL | #ifndef _KERNEL | ||||
| #include <sys/limits.h> | #include <sys/limits.h> | ||||
| #include <sys/_maxphys.h> | |||||
| #endif | #endif | ||||
| #ifndef DEV_BSHIFT | #ifndef DEV_BSHIFT | ||||
| #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ | #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ | ||||
| #endif | #endif | ||||
| #define DEV_BSIZE (1<<DEV_BSHIFT) | #define DEV_BSIZE (1<<DEV_BSHIFT) | ||||
| #ifndef BLKDEV_IOSIZE | #ifndef BLKDEV_IOSIZE | ||||
| #define BLKDEV_IOSIZE PAGE_SIZE /* default block device I/O size */ | #define BLKDEV_IOSIZE PAGE_SIZE /* default block device I/O size */ | ||||
| #endif | #endif | ||||
| #ifndef DFLTPHYS | #ifndef DFLTPHYS | ||||
| #define DFLTPHYS (64 * 1024) /* default max raw I/O transfer size */ | #define DFLTPHYS (64 * 1024) /* default max raw I/O transfer size */ | ||||
| #endif | |||||
| #ifndef MAXPHYS /* max raw I/O transfer size */ | |||||
| #ifdef __ILP32__ | |||||
| #define MAXPHYS (128 * 1024) | |||||
| #else | |||||
| #define MAXPHYS (1024 * 1024) | |||||
| #endif | |||||
| #endif | #endif | ||||
| #ifndef MAXDUMPPGS | #ifndef MAXDUMPPGS | ||||
| #define MAXDUMPPGS (DFLTPHYS/PAGE_SIZE) | #define MAXDUMPPGS (DFLTPHYS/PAGE_SIZE) | ||||
| #endif | #endif | ||||
| /* | /* | ||||
| * Constants related to network buffer management. | * Constants related to network buffer management. | ||||
| * MCLBYTES must be no larger than PAGE_SIZE. | * MCLBYTES must be no larger than PAGE_SIZE. | ||||
| ▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines | |||||