summaryrefslogtreecommitdiff
path: root/sys/dev/ic/stivar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/stivar.h')
-rw-r--r--sys/dev/ic/stivar.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/ic/stivar.h b/sys/dev/ic/stivar.h
index 238a7465cc4..4b5451e89f1 100644
--- a/sys/dev/ic/stivar.h
+++ b/sys/dev/ic/stivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stivar.h,v 1.21 2007/01/11 21:58:05 miod Exp $ */
+/* $OpenBSD: stivar.h,v 1.22 2007/01/11 22:02:04 miod Exp $ */
/*
* Copyright (c) 2000-2003 Michael Shalayeff
@@ -29,7 +29,10 @@
#ifndef _IC_STIVAR_H_
#define _IC_STIVAR_H_
+struct sti_softc;
+
struct sti_screen {
+ struct sti_softc *scr_main; /* may be NULL if early console */
int scr_devtype;
bus_space_tag_t iot, memt;
@@ -81,6 +84,7 @@ struct sti_softc {
#define STI_CLEARSCR 0x0002
#define STI_CONSOLE 0x0004
#define STI_ATTACHED 0x0008
+#define STI_ROM_ENABLED 0x0010
int sc_nscreens;
bus_space_tag_t iot, memt;
@@ -89,6 +93,10 @@ struct sti_softc {
struct sti_screen *sc_scr;
u_int sc_wsmode;
+
+ /* optional, required for PCI */
+ void (*sc_enable_rom)(struct sti_softc *);
+ void (*sc_disable_rom)(struct sti_softc *);
};
int sti_attach_common(struct sti_softc *sc, u_int codebase);