summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/syscons.h
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1997-09-04 23:01:06 +0000
committeryokota <yokota@FreeBSD.org>1997-09-04 23:01:06 +0000
commitec0b9f839dbbd355210672792d5b803856b38c75 (patch)
treeca8d2d6f2fac3265b5b0372df1b03bd0644b2173 /sys/dev/syscons/syscons.h
parent930fa4a4383c1260c42a0b5ae7981c9b1471552d (diff)
downloadFreeBSD-src-ec0b9f839dbbd355210672792d5b803856b38c75.zip
FreeBSD-src-ec0b9f839dbbd355210672792d5b803856b38c75.tar.gz
Add a new compile option SC_HISTORY_SIZE to specify the history buffer
size in terms of lines (instead of bytes). When changing video mode in ioctl SW_XXX commands, syscons checks scp->history_size and allocate a history buffer at least as large as the new screen size. (This was unnecessary before, because HISTORY_SIZE was as large as 100 lines and this is bigger than the maximum screen size: 60 lines). Similar adjustment is done in ioctl CONS_HISTORY command too. PR: kern/4169 Reviewed by: sos
Diffstat (limited to 'sys/dev/syscons/syscons.h')
-rw-r--r--sys/dev/syscons/syscons.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h
index 38c5ae4..578a71e 100644
--- a/sys/dev/syscons/syscons.h
+++ b/sys/dev/syscons/syscons.h
@@ -25,7 +25,7 @@
* (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.31 1997/07/15 14:43:27 yokota Exp $
+ * $Id: syscons.h,v 1.32 1997/08/25 23:21:55 bde Exp $
*/
#ifndef _I386_ISA_SYSCONS_H_
@@ -101,7 +101,10 @@
#define FONT_8 2
#define FONT_14 4
#define FONT_16 8
-#define HISTORY_SIZE (COL * ROW * 4)
+#if !defined(SC_HISTORY_SIZE)
+#define SC_HISTORY_SIZE (ROW * 4)
+#endif /* SC_HISTORY_SIZE */
+#define HISTORY_SIZE (COL * (SC_HISTORY_SIZE))
/* defines related to hardware addresses */
#define MONO_BASE 0x3B4 /* crt controller base mono */
OpenPOWER on IntegriCloud