From 7f1108670a2ba0bd92c2a3691e98bc89725e6589 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Wed, 23 Jan 2008 16:37:59 +0000 Subject: Cleanup cn_pri. Change constants to more meaningful names, rather than the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@ --- sys/dev/cons.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sys/dev/cons.h') diff --git a/sys/dev/cons.h b/sys/dev/cons.h index cc729e6c2da..1467897403e 100644 --- a/sys/dev/cons.h +++ b/sys/dev/cons.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cons.h,v 1.15 2006/01/01 11:59:40 miod Exp $ */ +/* $OpenBSD: cons.h,v 1.16 2008/01/23 16:37:55 jsing Exp $ */ /* $NetBSD: cons.h,v 1.14 1996/03/14 19:08:35 christos Exp $ */ /* @@ -53,15 +53,15 @@ struct consdev { /* ring bell */ void (*cn_bell)(dev_t, u_int, u_int, u_int); dev_t cn_dev; /* major/minor of device */ - int cn_pri; /* picking order; the higher the better */ + u_int cn_pri; /* picking order; the higher the better */ }; -/* values for cn_pri - reflect our policy for console selection */ -#define CN_DEAD 0 /* device doesn't exist */ -#define CN_NORMAL 1 /* device exists but is nothing special */ -#define CN_INTERNAL 2 /* "internal" bit-mapped display */ -#define CN_REMOTE 3 /* serial interface with remote bit set */ -#define CN_FORCED 4 +/* Values for cn_pri - policy for console selection. */ +#define CN_DEAD 0 /* Device does not exist. */ +#define CN_LOWPRI 1 /* Device exists and is low priority. */ +#define CN_MIDPRI 2 /* Device exists and is medium priority. */ +#define CN_HIGHPRI 3 /* Device exists and is high priority. */ +#define CN_FORCED 4 /* Use this device. */ /* XXX */ #define CONSMAJOR 0 -- cgit v1.2.3