diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-01-11 22:02:05 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-01-11 22:02:05 +0000 |
commit | ddb5eb680585be8decb0595eddc9c124f279521d (patch) | |
tree | 9faff08a5c23f002128016f7f78abcd1c761dcd4 /sys/dev/ic/stivar.h | |
parent | 8690b38de9e7834cf7b150c7f53c53affa1ab3f0 (diff) |
Add the ability for a sti backend to specify callbacks to disable and enable
access to the sti rom, as this seems to be necessary for sti@pci; hide this
with macros so that platforms which do not have pci support (i.e. hp300)
do not get bloated from this.
ok mickey@
Diffstat (limited to 'sys/dev/ic/stivar.h')
-rw-r--r-- | sys/dev/ic/stivar.h | 10 |
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); |