summaryrefslogtreecommitdiffstats
path: root/sys/isa/syscons.h
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-08-06 09:15:54 +0000
committerdfr <dfr@FreeBSD.org>1998-08-06 09:15:54 +0000
commita90f51195aac4c0aeb53796dfaf8a568408b9b8c (patch)
tree89e9159f24c3845aafd7edd9604a82559aff5389 /sys/isa/syscons.h
parentc6de79f7a597571af387deda446358c6851e794e (diff)
downloadFreeBSD-src-a90f51195aac4c0aeb53796dfaf8a568408b9b8c.zip
FreeBSD-src-a90f51195aac4c0aeb53796dfaf8a568408b9b8c.tar.gz
Port syscons to the alpha. The driver itself has moved to sys/isa as it will
hopefully become a portable driver usable by all architectures. The api support files have had to be copied to sys/alpha/include since userland programs expect to find them in <machine/*.h>. All the revision history of the i386 syscons has been retained by a repository copy.
Diffstat (limited to 'sys/isa/syscons.h')
-rw-r--r--sys/isa/syscons.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/isa/syscons.h b/sys/isa/syscons.h
index b23a2ae..dc57f07 100644
--- a/sys/isa/syscons.h
+++ b/sys/isa/syscons.h
@@ -25,7 +25,8 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.h,v 1.38 1998/08/03 09:09:35 yokota Exp $
+ * $Id$
+ * from: i386/isa syscons.h,v 1.39
*/
#ifndef _I386_ISA_SYSCONS_H_
@@ -35,7 +36,18 @@
#define ISMAPPED(pa, width) \
(((pa) <= (u_long)0x1000 - (width)) \
|| ((pa) >= 0xa0000 && (pa) <= 0x100000 - (width)))
+
+#if 0
#define pa_to_va(pa) (KERNBASE + (pa)) /* works if ISMAPPED(pa...) */
+#endif
+
+#ifdef __i386__
+#define WRITEB(pa, b) *(u_int8_t*)(KERNBASE + (pa)) = b
+#define READB(pa) *(u_int8_t*)(KERNBASE + (pa))
+#else
+#define WRITEB(pa, b) writeb(pa, b)
+#define READB(pa) readb(pa)
+#endif
/* printable chars */
#define PRINTABLE(ch) ((ch) > 0x1b || ((ch) > 0x0d && (ch) < 0x1b) \
@@ -184,7 +196,9 @@ typedef struct scr_stat {
u_short *history_pos; /* position shown on screen */
u_short *history_save; /* save area index */
int history_size; /* size of history buffer */
+#ifdef __i386__
struct apmhook r_hook; /* reconfiguration support */
+#endif
#ifdef SC_SPLASH_SCREEN
u_char splash_save_mode; /* saved mode for splash screen */
#endif
OpenPOWER on IntegriCloud