summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-12-03 16:38:14 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-12-03 16:38:14 +0000
commite80be550edadedd59814b011a900b1b84a8688b0 (patch)
tree9ad0302eade7154e1b1c465ce93dd0617924845f /sys/arch/sparc/include
parentd9b4d3e5f6d68ef92222ca3f4b1771d00ac04799 (diff)
Clean frame buffer attachment code:
- There is no need to check for buses config(8) will not let us attach to - Better P4 bus logic, which does not need to abuse device flags - Do not bother trying to print a meaningful device description when it is not connected to sbus.
Diffstat (limited to 'sys/arch/sparc/include')
-rw-r--r--sys/arch/sparc/include/fbvar.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/arch/sparc/include/fbvar.h b/sys/arch/sparc/include/fbvar.h
index da9c82235c1..f3ae5a7fb07 100644
--- a/sys/arch/sparc/include/fbvar.h
+++ b/sys/arch/sparc/include/fbvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fbvar.h,v 1.16 2006/03/12 22:53:01 miod Exp $ */
+/* $OpenBSD: fbvar.h,v 1.17 2006/12/03 16:38:13 miod Exp $ */
/* $NetBSD: fbvar.h,v 1.9 1997/07/07 23:31:30 pk Exp $ */
/*
@@ -42,13 +42,6 @@
*/
/*
- * Frame buffer device flags.
- */
-
-#define FB_PFOUR 0x00010000 /* indicates fb is a pfour fb */
-#define FB_USERMASK (0) /* flags that the user can set */
-
-/*
* Common frame buffer variables.
* All framebuffer softc structures must start with such a structure.
*/
@@ -65,6 +58,7 @@ struct sunfb {
int *sf_crowp, *sf_ccolp; /* PROM cursor position */
int sf_flags;
+#define FB_PFOUR 0x00000001 /* indicates a P4 fb */
volatile u_int32_t* sf_pfour; /* P4 register when applicable */
struct rasops_info sf_ro;