Rename the B_XXX flag to B_DEVPRIVATE flag since it was never used for

debugging and its main use is in device drivers. Its used there to signal
that the flagged buffer has a special meaning or should be handled
differently.

OK'd by Bill Sudenmund on tech-kern.
This commit is contained in:
reinoud 2007-02-15 18:33:26 +00:00
parent c2c74a2fbe
commit 43061c75ae
9 changed files with 32 additions and 32 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.26 2006/04/14 13:09:05 blymn Exp $ */
/* $NetBSD: fd.c,v 1.27 2007/02/15 18:33:26 reinoud Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -89,7 +89,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.26 2006/04/14 13:09:05 blymn Exp $");
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.27 2007/02/15 18:33:26 reinoud Exp $");
#include "opt_ddb.h"
@ -135,8 +135,8 @@ __KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.26 2006/04/14 13:09:05 blymn Exp $");
#define FDUNIT(dev) (minor(dev) / 8)
#define FDTYPE(dev) (minor(dev) % 8)
/* XXX misuse a flag to identify format operation */
#define B_FORMAT B_XXX
/* (mis)use device use flag to identify format operation */
#define B_FORMAT B_DEVPRIVATE
enum fdc_state {
DEVIDLE = 0,

View File

@ -1,4 +1,4 @@
/* $NetBSD: hdfd.c,v 1.51 2007/01/24 13:08:13 hubertf Exp $ */
/* $NetBSD: hdfd.c,v 1.52 2007/02/15 18:33:26 reinoud Exp $ */
/*-
* Copyright (c) 1996 Leo Weppelman
@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hdfd.c,v 1.51 2007/01/24 13:08:13 hubertf Exp $");
__KERNEL_RCSID(0, "$NetBSD: hdfd.c,v 1.52 2007/02/15 18:33:26 reinoud Exp $");
#include "opt_ddb.h"
@ -163,8 +163,8 @@ static void *intr_arg = NULL; /* XXX: arg. to intr_establish() */
#define FDUNIT(dev) (minor(dev) / 8)
#define FDTYPE(dev) (minor(dev) % 8)
/* XXX misuse a flag to identify format operation */
#define B_FORMAT B_XXX
/* (mis)use device use flag to identify format operation */
#define B_FORMAT B_DEVPRIVATE
enum fdc_state {
DEVIDLE = 0,

View File

@ -1,4 +1,4 @@
/* $NetBSD: mt.c,v 1.35 2006/07/21 10:01:39 tsutsui Exp $ */
/* $NetBSD: mt.c,v 1.36 2007/02/15 18:33:26 reinoud Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.35 2006/07/21 10:01:39 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.36 2007/02/15 18:33:26 reinoud Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -133,7 +133,7 @@ int mtdebug = 0;
#define UNIT(x) (minor(x) & 3)
#define B_CMD B_XXX /* command buf instead of data */
#define B_CMD B_DEVPRIVATE /* command buf instead of data */
#define b_cmd b_blkno /* blkno holds cmd when B_CMD */
static int mtmatch(struct device *, struct cfdata *, void *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.126 2006/04/14 13:09:05 blymn Exp $ */
/* $NetBSD: fd.c,v 1.127 2007/02/15 18:33:26 reinoud Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -108,7 +108,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.126 2006/04/14 13:09:05 blymn Exp $");
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.127 2007/02/15 18:33:26 reinoud Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@ -147,8 +147,8 @@ __KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.126 2006/04/14 13:09:05 blymn Exp $");
#define FDUNIT(dev) (minor(dev) / 8)
#define FDTYPE(dev) (minor(dev) % 8)
/* XXX misuse a flag to identify format operation */
#define B_FORMAT B_XXX
/* (mis)use device use flag to identify format operation */
#define B_FORMAT B_DEVPRIVATE
#define FD_DEBUG
#ifdef FD_DEBUG

View File

@ -1,4 +1,4 @@
/* $NetBSD: fdc.c,v 1.1 2006/10/06 08:44:59 jnemeth Exp $ */
/* $NetBSD: fdc.c,v 1.2 2007/02/15 18:33:27 reinoud Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -108,7 +108,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fdc.c,v 1.1 2006/10/06 08:44:59 jnemeth Exp $");
__KERNEL_RCSID(0, "$NetBSD: fdc.c,v 1.2 2007/02/15 18:33:27 reinoud Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@ -161,8 +161,8 @@ __KERNEL_RCSID(0, "$NetBSD: fdc.c,v 1.1 2006/10/06 08:44:59 jnemeth Exp $");
#define FTC_FLIP
#endif
/* XXX misuse a flag to identify format operation */
#define B_FORMAT B_XXX
/* (mis)use device use flag to identify format operation */
#define B_FORMAT B_DEVPRIVATE
#define FD_DEBUG
#ifdef FD_DEBUG

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.52 2006/10/14 08:11:16 tsutsui Exp $ */
/* $NetBSD: fd.c,v 1.53 2007/02/15 18:33:27 reinoud Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.52 2006/10/14 08:11:16 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.53 2007/02/15 18:33:27 reinoud Exp $");
#include "opt_ddb.h"
@ -122,8 +122,8 @@ __KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.52 2006/10/14 08:11:16 tsutsui Exp $");
#define FDUNIT(dev) (minor(dev) / 8)
#define FDTYPE(dev) (minor(dev) % 8)
/* XXX misuse a flag to identify format operation */
#define B_FORMAT B_XXX
/* (mis)use device use flag to identify format operation */
#define B_FORMAT B_DEVPRIVATE
#ifdef FD_DEBUG
int fdc_debug = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mt.c,v 1.7 2007/01/13 18:46:37 cube Exp $ */
/* $NetBSD: mt.c,v 1.8 2007/02/15 18:33:26 reinoud Exp $ */
/*-
* Copyright (c) 1996-2003 The NetBSD Foundation, Inc.
@ -121,7 +121,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.7 2007/01/13 18:46:37 cube Exp $");
__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.8 2007/02/15 18:33:26 reinoud Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -178,7 +178,7 @@ struct mt_softc {
#define MTUNIT(x) (minor(x) & 0x03)
#define B_CMD B_XXX /* command buf instead of data */
#define B_CMD B_DEVPRIVATE /* command buf instead of data */
#define b_cmd b_blkno /* blkno holds cmd when B_CMD */
int mtmatch(struct device *, struct cfdata *, void *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.70 2006/11/16 01:33:00 christos Exp $ */
/* $NetBSD: fd.c,v 1.71 2007/02/15 18:33:26 reinoud Exp $ */
/*-
* Copyright (c) 1998, 2003 The NetBSD Foundation, Inc.
@ -88,7 +88,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.70 2006/11/16 01:33:00 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.71 2007/02/15 18:33:26 reinoud Exp $");
#include "rnd.h"
#include "opt_ddb.h"
@ -169,8 +169,8 @@ __KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.70 2006/11/16 01:33:00 christos Exp $");
#define FDUNIT(dev) (minor(dev) / 8)
#define FDTYPE(dev) (minor(dev) % 8)
/* XXX misuse a flag to identify format operation */
#define B_FORMAT B_XXX
/* (mis)use device use flag to identify format operation */
#define B_FORMAT B_DEVPRIVATE
/* controller driver configuration */
int fdprint(void *, const char *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: buf.h,v 1.90 2006/11/14 15:50:00 reinoud Exp $ */
/* $NetBSD: buf.h,v 1.91 2007/02/15 18:33:26 reinoud Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@ -211,7 +211,7 @@ do { \
#define B_TAPE 0x00200000 /* Magnetic tape I/O. */
#define B_WANTED 0x00800000 /* Process wants this buffer. */
#define B_WRITE 0x00000000 /* Write buffer (pseudo flag). */
#define B_XXX 0x02000000 /* Debugging flag. */
#define B_DEVPRIVATE 0x02000000 /* Device driver private flag. */
#define B_VFLUSH 0x04000000 /* Buffer is being synced. */
#define BUF_FLAGBITS \