aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dcons/dcons.h
diff options
context:
space:
mode:
authorHidetoshi Shimokawa <simokawa@FreeBSD.org>2004-10-13 05:38:42 +0000
committerHidetoshi Shimokawa <simokawa@FreeBSD.org>2004-10-13 05:38:42 +0000
commit31a58777865b45a056dd435ea8ecf426bed54985 (patch)
tree3b77c59d53dfdf2c510722e3405df0e1ec988f45 /sys/dev/dcons/dcons.h
parente69a354ab7f08b7e14f73b27bbc444c30ce8de2a (diff)
downloadsrc-31a58777865b45a056dd435ea8ecf426bed54985.tar.gz
src-31a58777865b45a056dd435ea8ecf426bed54985.zip
- Split dcons core code and OS dependent code.
- Implement dcons_ischar() and dcons_load_buffer(). - If loader passed a dcons buffer address, keep using it. (We still need a patch to cheat memory management system.)
Notes
Notes: svn path=/head/; revision=136467
Diffstat (limited to 'sys/dev/dcons/dcons.h')
-rw-r--r--sys/dev/dcons/dcons.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/sys/dev/dcons/dcons.h b/sys/dev/dcons/dcons.h
index 6c25ee13a625..5fdc82022343 100644
--- a/sys/dev/dcons/dcons.h
+++ b/sys/dev/dcons/dcons.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2002
+ * Copyright (C) 2002-2004
* Hidetoshi Shimokawa. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -90,12 +90,17 @@ struct dcons_ch {
#define STATE2 2
#ifdef _KERNEL
-struct dcons_global {
- struct consdev *cdev;
- struct dcons_buf *buf;
- size_t size;
- bus_dma_tag_t dma_tag;
- bus_dmamap_t dma_map;
+struct dcons_softc {
+ struct dcons_ch o, i;
+ int brk_state;
+#define DC_GDB 1
+ int flags;
+ void *dev;
};
-extern struct dcons_global *dcons_conf;
+
+int dcons_checkc(struct dcons_softc *);
+int dcons_ischar(struct dcons_softc *);
+void dcons_putc(struct dcons_softc *, int);
+int dcons_load_buffer(struct dcons_buf *, int, struct dcons_softc *);
+void dcons_init(struct dcons_buf *, int, struct dcons_softc *);
#endif