summaryrefslogtreecommitdiffstats
path: root/sys/dev/dcons/dcons.h
diff options
context:
space:
mode:
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 6c25ee1..5fdc820 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
OpenPOWER on IntegriCloud