diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-05-14 20:35:29 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-05-14 20:35:29 +0000 |
| commit | 6380601f6406c9ea9fe23d7224864e1badff04c5 (patch) | |
| tree | e7c87b9d96e15ee7286ee1c31a5195c135cc45f3 /sys/alpha/include/param.h | |
| parent | 4c51ae2155d1e04041babc3842df82a44ee811e4 (diff) | |
Notes
Diffstat (limited to 'sys/alpha/include/param.h')
| -rw-r--r-- | sys/alpha/include/param.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/sys/alpha/include/param.h b/sys/alpha/include/param.h index f32b749e5abb..444b8b79817c 100644 --- a/sys/alpha/include/param.h +++ b/sys/alpha/include/param.h @@ -116,16 +116,6 @@ #define KERNBASE 0xfffffc0000300000LL /* start of kernel virtual */ #define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT) -#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ -#define DEV_BSIZE (1<<DEV_BSHIFT) - -#ifndef BLKDEV_IOSIZE -#define BLKDEV_IOSIZE PAGE_SIZE /* default block device I/O size */ -#endif -#define DFLTPHYS (64 * 1024) /* default max raw I/O transfer size */ -#define MAXPHYS (128 * 1024) /* max raw I/O transfer size */ -#define MAXDUMPPGS (DFLTPHYS/PAGE_SIZE) - #define CLSIZE 1 #define CLSIZELOG2 0 @@ -139,34 +129,6 @@ #define KSTACK_GUARD /* compile in kstack guard page */ /* - * Constants related to network buffer management. - * MCLBYTES must be no larger than PAGE_SIZE. - */ -#ifndef MSIZE -#define MSIZE 256 /* size of an mbuf */ -#endif /* MSIZE */ - -#ifndef MCLSHIFT -#define MCLSHIFT 11 /* convert bytes to mbuf clusters */ -#endif /* MCLSHIFT */ -#define MCLBYTES (1 << MCLSHIFT) /* size of a mbuf cluster */ - -/* pages to bytes */ -#define ctob(x) ((x) << PAGE_SHIFT) -#define btoc(x) (((x) + PAGE_MASK) >> PAGE_SHIFT) - -/* - * btodb() is messy and perhaps slow because `bytes' may be an off_t. We - * want to shift an unsigned type to avoid sign extension and we don't - * want to widen `bytes' unnecessarily. Assume that the result fits in - * a daddr_t. - */ -#define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ - (daddr_t)((unsigned long)(bytes) >> DEV_BSHIFT) -#define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ - ((off_t)(db) << DEV_BSHIFT) - -/* * Mach derived conversion macros */ #define round_page(x) ((((unsigned long)(x)) + PAGE_MASK) & ~(PAGE_MASK)) |
