Moved architecure dependent part of struct linux_termio to architecture

dependent header files.
This commit is contained in:
manu 2001-01-20 18:56:41 +00:00
parent 6bb7c9da0c
commit fe95c9c3de
5 changed files with 40 additions and 19 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_termios.h,v 1.1 1998/09/30 21:36:29 erh Exp $ */
/* $NetBSD: linux_termios.h,v 1.2 2001/01/20 18:56:42 manu Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -39,6 +39,8 @@
#ifndef _ALPHA_LINUX_TERMIOS_H
#define _ALPHA_LINUX_TERMIOS_H
#define LINUX_NCC 8
#define LINUX_TCGETS _LINUX_IOR('t', 19, struct linux_termios)
#define LINUX_TCSETS _LINUX_IOW('t', 20, struct linux_termios)
#define LINUX_TCSETSW _LINUX_IOW('t', 21, struct linux_termios)

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_termios.h,v 1.3 1998/10/01 01:52:59 erh Exp $ */
/* $NetBSD: linux_termios.h,v 1.4 2001/01/20 18:56:42 manu Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -39,6 +39,8 @@
#ifndef _I386_LINUX_TERMIOS_H
#define _I386_LINUX_TERMIOS_H
#define LINUX_NCC 8
#define LINUX_TCGETS _LINUX_IO('T', 1)
#define LINUX_TCSETS _LINUX_IO('T', 2)
#define LINUX_TCSETSW _LINUX_IO('T', 3)

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_termios.h,v 1.1 1998/12/15 19:25:41 itohy Exp $ */
/* $NetBSD: linux_termios.h,v 1.2 2001/01/20 18:56:41 manu Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -39,6 +39,8 @@
#ifndef _M68K_LINUX_TERMIOS_H
#define _M68K_LINUX_TERMIOS_H
#define LINUX_NCC 8
#define LINUX_TCGETS _LINUX_IO('T', 1)
#define LINUX_TCSETS _LINUX_IO('T', 2)
#define LINUX_TCSETSW _LINUX_IO('T', 3)

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_termios.h,v 1.1 2001/01/19 01:31:26 manu Exp $ */
/* $NetBSD: linux_termios.h,v 1.2 2001/01/20 18:56:42 manu Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@ -39,6 +39,13 @@
#ifndef _POWERPC_LINUX_TERMIOS_H
#define _POWERPC_LINUX_TERMIOS_H
#define LINUX_NCC 10
/*
* Enable optional part of struct termios in sys/compat/linux/common/termios.h
*/
#define LINUX_LARGE_STRUCT_TERMIOS
/*
* From Linux's include/asm-ppc/termios.h
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_termios.h,v 1.7 2001/01/19 01:40:39 manu Exp $ */
/* $NetBSD: linux_termios.h,v 1.8 2001/01/20 18:56:43 manu Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -39,6 +39,18 @@
#ifndef _LINUX_TERMIOS_H
#define _LINUX_TERMIOS_H
#if defined(__i386__)
#include <compat/linux/arch/i386/linux_termios.h>
#elif defined(__m68k__)
#include <compat/linux/arch/m68k/linux_termios.h>
#elif defined(__alpha__)
#include <compat/linux/arch/alpha/linux_termios.h>
#elif defined(__powerpc__)
#include <compat/linux/arch/powerpc/linux_termios.h>
#else
#error Undefined linux_termios.h machine type.
#endif
struct linux_winsize {
unsigned short ws_row;
unsigned short ws_col;
@ -46,7 +58,10 @@ struct linux_winsize {
unsigned short ws_ypixel;
};
#define LINUX_NCC 8
/*
* LINUX_NCC is architecture dependent. It is now
* defined in sys/compat/linux/<arch>/linux_termios.h
*/
struct linux_termio {
unsigned short c_iflag;
unsigned short c_oflag;
@ -64,8 +79,12 @@ struct linux_termios {
linux_tcflag_t c_lflag;
linux_cc_t c_line;
linux_cc_t c_cc[LINUX_NCCS];
#if 0
/* Present on some linux ports but unused: */
#ifdef LINUX_LARGE_STRUCT_TERMIOS
/*
* Present on some linux ports but unused:
* However we must enable it, else it breaks ioctl
* definitions (the size does not match anymore)
*/
linux_speed_t c_ispeed;
linux_speed_t c_ospeed;
#endif
@ -120,15 +139,4 @@ struct linux_termios {
#define LINUX_TIOCLINUX_KERNMSG 11
#define LINUX_TIOCLINUX_CURCONS 12
#if defined(__i386__)
#include <compat/linux/arch/i386/linux_termios.h>
#elif defined(__m68k__)
#include <compat/linux/arch/m68k/linux_termios.h>
#elif defined(__alpha__)
#include <compat/linux/arch/alpha/linux_termios.h>
#elif defined(__powerpc__)
#include <compat/linux/arch/powerpc/linux_termios.h>
#else
#error Undefined linux_termios.h machine type.
#endif
#endif /* !_LINUX_TERMIOS_H */