summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/alpha/include/param.h10
-rw-r--r--sys/arch/amd64/include/param.h10
-rw-r--r--sys/arch/arm/include/param.h10
-rw-r--r--sys/arch/hppa/include/param.h10
-rw-r--r--sys/arch/hppa64/include/param.h10
-rw-r--r--sys/arch/i386/include/param.h10
-rw-r--r--sys/arch/m68k/include/param.h10
-rw-r--r--sys/arch/m88k/include/param.h10
-rw-r--r--sys/arch/mips64/include/param.h10
-rw-r--r--sys/arch/solbourne/include/param.h10
-rw-r--r--sys/arch/sparc/include/param.h10
-rw-r--r--sys/arch/sparc64/include/param.h10
-rw-r--r--sys/arch/vax/include/param.h11
13 files changed, 13 insertions, 118 deletions
diff --git a/sys/arch/alpha/include/param.h b/sys/arch/alpha/include/param.h
index 5980544e36f..b5c73b7e327 100644
--- a/sys/arch/alpha/include/param.h
+++ b/sys/arch/alpha/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.29 2005/12/13 01:56:43 martin Exp $ */
+/* $OpenBSD: param.h,v 1.30 2006/03/19 01:47:23 martin Exp $ */
/* $NetBSD: param.h,v 1.30 2000/06/09 16:03:04 thorpej Exp $ */
/*
@@ -127,14 +127,6 @@
#define btodb(x) ((x) >> DEV_BSHIFT)
#define dbtob(x) ((x) << DEV_BSHIFT)
-/*
- * Map a ``block device block'' to a file system block.
- * This should be device dependent, and should use the bsize
- * field from the disk label.
- * For now though just use DEV_BSIZE.
- */
-#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
-
#ifdef _KERNEL
#ifndef _LOCORE
diff --git a/sys/arch/amd64/include/param.h b/sys/arch/amd64/include/param.h
index 12cc3183faf..fa931fa4d70 100644
--- a/sys/arch/amd64/include/param.h
+++ b/sys/arch/amd64/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.12 2006/02/05 15:55:50 martin Exp $ */
+/* $OpenBSD: param.h,v 1.13 2006/03/19 01:47:23 martin Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -130,14 +130,6 @@
#define btodb(x) ((x) >> DEV_BSHIFT)
/*
- * Map a ``block device block'' to a file system block.
- * This should be device dependent, and should use the bsize
- * field from the disk label.
- * For now though just use DEV_BSIZE.
- */
-#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE / DEV_BSIZE))
-
-/*
* Mach derived conversion macros
*/
#define x86_round_pdr(x) \
diff --git a/sys/arch/arm/include/param.h b/sys/arch/arm/include/param.h
index 7f1276566d9..4cf1f546468 100644
--- a/sys/arch/arm/include/param.h
+++ b/sys/arch/arm/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.9 2005/11/09 18:08:37 martin Exp $ */
+/* $OpenBSD: param.h,v 1.10 2006/03/19 01:47:23 martin Exp $ */
/* $NetBSD: param.h,v 1.9 2002/03/24 03:37:23 thorpej Exp $ */
/*
@@ -168,14 +168,6 @@ void delay (unsigned);
((db) << DEV_BSHIFT)
/*
- * Map a ``block device block'' to a file system block.
- * This should be device dependent, and should use the bsize
- * field from the disk label.
- * For now though just use DEV_BSIZE.
- */
-#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE / DEV_BSIZE))
-
-/*
* Constants related to network buffer management.
* MCLBYTES must be no larger than NBPG (the software page size), and,
* on machines that exchange pages of input or output buffers with mbuf
diff --git a/sys/arch/hppa/include/param.h b/sys/arch/hppa/include/param.h
index be70ee6c34b..344a91a3962 100644
--- a/sys/arch/hppa/include/param.h
+++ b/sys/arch/hppa/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.31 2005/12/22 00:37:25 marco Exp $ */
+/* $OpenBSD: param.h,v 1.32 2006/03/19 01:47:23 martin Exp $ */
/*
* Copyright (c) 1988-1994, The University of Utah and
@@ -100,14 +100,6 @@
#define btodb(x) ((x) >> DEV_BSHIFT)
#define dbtob(x) ((x) << DEV_BSHIFT)
-/*
- * Map a ``block device block'' to a file system block.
- * This should be device dependent, and should use the bsize
- * field from the disk label.
- * For now though just use DEV_BSIZE.
- */
-#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
-
#ifdef _KERNEL
#ifdef COMPAT_HPUX
/*
diff --git a/sys/arch/hppa64/include/param.h b/sys/arch/hppa64/include/param.h
index db6ca6c145e..24c8263b17c 100644
--- a/sys/arch/hppa64/include/param.h
+++ b/sys/arch/hppa64/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.6 2005/12/13 01:56:43 martin Exp $ */
+/* $OpenBSD: param.h,v 1.7 2006/03/19 01:47:23 martin Exp $ */
/*
* Copyright (c) 1988-1994, The University of Utah and
@@ -99,14 +99,6 @@
#define btodb(x) ((x) >> DEV_BSHIFT)
#define dbtob(x) ((x) << DEV_BSHIFT)
-/*
- * Map a ``block device block'' to a file system block.
- * This should be device dependent, and should use the bsize
- * field from the disk label.
- * For now though just use DEV_BSIZE.
- */
-#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
-
#ifndef _LOCORE
#define CONADDR conaddr
#define CONUNIT conunit
diff --git a/sys/arch/i386/include/param.h b/sys/arch/i386/include/param.h
index bd3234ad7eb..439a9859587 100644
--- a/sys/arch/i386/include/param.h
+++ b/sys/arch/i386/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.34 2006/03/14 09:02:29 mickey Exp $ */
+/* $OpenBSD: param.h,v 1.35 2006/03/19 01:47:23 martin Exp $ */
/* $NetBSD: param.h,v 1.29 1996/03/04 05:04:26 cgd Exp $ */
/*-
@@ -133,14 +133,6 @@
#define btodb(x) ((x) >> DEV_BSHIFT)
/*
- * Map a ``block device block'' to a file system block.
- * This should be device dependent, and should use the bsize
- * field from the disk label.
- * For now though just use DEV_BSIZE.
- */
-#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE / DEV_BSIZE))
-
-/*
* Mach derived conversion macros
*/
#define i386_round_pdr(x) ((((unsigned)(x)) + PDOFSET) & ~PDOFSET)
diff --git a/sys/arch/m68k/include/param.h b/sys/arch/m68k/include/param.h
index 20b3b7fd3ea..a6a53080625 100644
--- a/sys/arch/m68k/include/param.h
+++ b/sys/arch/m68k/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.17 2005/12/13 01:56:43 martin Exp $ */
+/* $OpenBSD: param.h,v 1.18 2006/03/19 01:47:24 martin Exp $ */
/* $NetBSD: param.h,v 1.2 1997/06/10 18:21:23 veego Exp $ */
/*
@@ -126,14 +126,6 @@
#define dbtob(x) ((x) << DEV_BSHIFT)
/*
- * Map a ``block device block'' to a file system block.
- * This should be device dependent, and should use the bsize
- * field from the disk label.
- * For now though just use DEV_BSIZE.
- */
-#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
-
-/*
* Mach derived conversion macros
*/
#define m68k_round_seg(x) ((((unsigned)(x)) + SEGOFSET) & ~SEGOFSET)
diff --git a/sys/arch/m88k/include/param.h b/sys/arch/m88k/include/param.h
index 55a935af70c..09739098a3c 100644
--- a/sys/arch/m88k/include/param.h
+++ b/sys/arch/m88k/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.8 2005/10/13 19:47:12 miod Exp $ */
+/* $OpenBSD: param.h,v 1.9 2006/03/19 01:47:24 martin Exp $ */
/*
* Copyright (c) 1999 Steve Murphree, Jr.
* Copyright (c) 1988 University of Utah.
@@ -117,14 +117,6 @@
#define dbtob(x) ((x) << DEV_BSHIFT)
/*
- * Map a ``block device block'' to a file system block.
- * This should be device dependent, and should use the bsize
- * field from the disk label.
- * For now though just use DEV_BSIZE.
- */
-#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
-
-/*
* Get interrupt glue.
*/
#include <machine/intr.h>
diff --git a/sys/arch/mips64/include/param.h b/sys/arch/mips64/include/param.h
index 1f42602cb9f..77096393731 100644
--- a/sys/arch/mips64/include/param.h
+++ b/sys/arch/mips64/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.13 2006/01/14 11:45:43 miod Exp $ */
+/* $OpenBSD: param.h,v 1.14 2006/03/19 01:47:24 martin Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -124,14 +124,6 @@
#define btodb(x) ((x) >> DEV_BSHIFT)
#define dbtob(x) ((x) << DEV_BSHIFT)
-/*
- * Map a ``block device block'' to a file system block.
- * This should be device dependent, and should use the bsize
- * field from the disk label.
- * For now though just use DEV_BSIZE.
- */
-#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
-
#ifdef _KERNEL
#ifndef _LOCORE
diff --git a/sys/arch/solbourne/include/param.h b/sys/arch/solbourne/include/param.h
index fce54c30d5a..87d3a541497 100644
--- a/sys/arch/solbourne/include/param.h
+++ b/sys/arch/solbourne/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.3 2005/09/12 23:05:05 miod Exp $ */
+/* $OpenBSD: param.h,v 1.4 2006/03/19 01:47:24 martin Exp $ */
/* OpenBSD: param.h,v 1.29 2004/08/06 22:31:31 mickey Exp */
/*
@@ -121,14 +121,6 @@
#define dbtob(x) ((x) << DEV_BSHIFT)
/*
- * Map a ``block device block'' to a file system block.
- * This should be device dependent, and should use the bsize
- * field from the disk label.
- * For now though just use DEV_BSIZE.
- */
-#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE / DEV_BSIZE))
-
-/*
* dvmamap manages a range of DVMA addresses intended to create double
* mappings of physical memory. In a way, `dvmamap' is a submap of the
* VM map `phys_map'. The difference is the use of the `resource map'
diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h
index d355b11d880..c9f9f563b35 100644
--- a/sys/arch/sparc/include/param.h
+++ b/sys/arch/sparc/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.35 2006/02/28 18:24:18 miod Exp $ */
+/* $OpenBSD: param.h,v 1.36 2006/03/19 01:47:24 martin Exp $ */
/* $NetBSD: param.h,v 1.29 1997/03/10 22:50:37 pk Exp $ */
/*
@@ -125,14 +125,6 @@
#define dbtob(x) ((x) << DEV_BSHIFT)
/*
- * Map a ``block device block'' to a file system block.
- * This should be device dependent, and should use the bsize
- * field from the disk label.
- * For now though just use DEV_BSIZE.
- */
-#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE / DEV_BSIZE))
-
-/*
* dvmamap manages a range of DVMA addresses intended to create double
* mappings of physical memory. In a way, `dvmamap' is a submap of the
* VM map `phys_map'. The difference is the use of the `resource map'
diff --git a/sys/arch/sparc64/include/param.h b/sys/arch/sparc64/include/param.h
index 5b7e086c192..8e7ecc5f3c9 100644
--- a/sys/arch/sparc64/include/param.h
+++ b/sys/arch/sparc64/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.19 2005/10/24 19:07:40 martin Exp $ */
+/* $OpenBSD: param.h,v 1.20 2006/03/19 01:47:24 martin Exp $ */
/* $NetBSD: param.h,v 1.25 2001/05/30 12:28:51 mrg Exp $ */
/*
@@ -207,14 +207,6 @@ extern int nbpg, pgofset, pgshift;
#define dbtob(x) ((x) << DEV_BSHIFT)
/*
- * Map a ``block device block'' to a file system block.
- * This should be device dependent, and should use the bsize
- * field from the disk label.
- * For now though just use DEV_BSIZE.
- */
-#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE / DEV_BSIZE))
-
-/*
* dvmamap manages a range of DVMA addresses intended to create double
* mappings of physical memory. In a way, `dvmamap' is a submap of the
* VM map `phys_map'. The difference is the use of the `resource map'
diff --git a/sys/arch/vax/include/param.h b/sys/arch/vax/include/param.h
index 42b0554deb0..55bbfe026cf 100644
--- a/sys/arch/vax/include/param.h
+++ b/sys/arch/vax/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.30 2006/03/12 03:14:37 brad Exp $ */
+/* $OpenBSD: param.h,v 1.31 2006/03/19 01:47:24 martin Exp $ */
/* $NetBSD: param.h,v 1.39 1999/10/22 21:14:34 ragge Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -140,15 +140,6 @@
#define vax_btoc(x) (((unsigned)(x) + VAX_PGOFSET) >> VAX_PGSHIFT)
#define vax_btop(x) (((unsigned)(x)) >> VAX_PGSHIFT)
-/*
- * Map a ``block device block'' to a file system block.
- * This should be device dependent, and will be if we
- * add an entry to cdevsw/bdevsw for that purpose.
- * For now though just use DEV_BSIZE.
- */
-
-#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
-
#define ovbcopy(x,y,z) bcopy(x, y, z)
#ifdef _KERNEL