Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/arch/powerpc Fixed a lot of mistakes in #de...
details: https://anonhg.NetBSD.org/src/rev/c4d372284a64
branches: trunk
changeset: 514266:c4d372284a64
user: manu <manu%NetBSD.org@localhost>
date: Sun Aug 26 21:17:52 2001 +0000
description:
Fixed a lot of mistakes in #define's (hes values instead of octal)
diffstat:
sys/compat/linux/arch/powerpc/linux_termios.h | 191 +++++++++++++------------
1 files changed, 96 insertions(+), 95 deletions(-)
diffs (223 lines):
diff -r e47ac6b1c5b5 -r c4d372284a64 sys/compat/linux/arch/powerpc/linux_termios.h
--- a/sys/compat/linux/arch/powerpc/linux_termios.h Sun Aug 26 20:47:27 2001 +0000
+++ b/sys/compat/linux/arch/powerpc/linux_termios.h Sun Aug 26 21:17:52 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_termios.h,v 1.5 2001/08/26 17:26:31 manu Exp $ */
+/* $NetBSD: linux_termios.h,v 1.6 2001/08/26 21:17:52 manu Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -147,61 +147,62 @@
/*
* All the remaining stuff is from Linux's include/asm-ppc/termbits.h
+ * Note that theses values are octal, not hex.
* Linux c_iflag masks
*/
-#define LINUX_IGNBRK 0x0000001
-#define LINUX_BRKINT 0x0000002
-#define LINUX_IGNPAR 0x0000004
-#define LINUX_PARMRK 0x0000010
-#define LINUX_INPCK 0x0000020
-#define LINUX_ISTRIP 0x0000040
-#define LINUX_INLCR 0x0000100
-#define LINUX_IGNCR 0x0000200
-#define LINUX_ICRNL 0x0000400
-#define LINUX_IXON 0x0001000
-#define LINUX_IXOFF 0x0002000
-#define LINUX_IXANY 0x0004000
-#define LINUX_IUCLC 0x0010000
-#define LINUX_IMAXBEL 0x0002000
+#define LINUX_IGNBRK 0000001
+#define LINUX_BRKINT 0000002
+#define LINUX_IGNPAR 0000004
+#define LINUX_PARMRK 0000010
+#define LINUX_INPCK 0000020
+#define LINUX_ISTRIP 0000040
+#define LINUX_INLCR 0000100
+#define LINUX_IGNCR 0000200
+#define LINUX_ICRNL 0000400
+#define LINUX_IXON 0001000
+#define LINUX_IXOFF 0002000
+#define LINUX_IXANY 0004000
+#define LINUX_IUCLC 0010000
+#define LINUX_IMAXBEL 0002000
/*
* Linux c_oflag masks
*/
-#define LINUX_OPOST 0x0000001
-#define LINUX_ONLCR 0x0000002
-#define LINUX_OLCUC 0x0000004
-#define LINUX_OCRNL 0x0000010
-#define LINUX_ONOCR 0x0000020
-#define LINUX_ONLRET 0x0000040
+#define LINUX_OPOST 0000001
+#define LINUX_ONLCR 0000002
+#define LINUX_OLCUC 0000004
+#define LINUX_OCRNL 0000010
+#define LINUX_ONOCR 0000020
+#define LINUX_ONLRET 0000040
-#define LINUX_OFILL 0x00000100
-#define LINUX_OFDEL 0x00000200
-#define LINUX_NLDLY 0x00001400
-#define LINUX_NL0 0x00000000
-#define LINUX_NL1 0x00000400
-#define LINUX_NL2 0x00001000
-#define LINUX_NL3 0x00001400
-#define LINUX_TABDLY 0x00006000
-#define LINUX_TAB0 0x00000000
-#define LINUX_TAB1 0x00002000
-#define LINUX_TAB2 0x00004000
-#define LINUX_TAB3 0x00006000
-#define LINUX_CRDLY 0x00030000
-#define LINUX_CR0 0x00000000
-#define LINUX_CR1 0x00010000
-#define LINUX_CR2 0x00020000
-#define LINUX_CR3 0x00030000
-#define LINUX_FFDLY 0x00040000
-#define LINUX_FF0 0x00000000
-#define LINUX_FF1 0x00040000
-#define LINUX_BSDLY 0x00100000
-#define LINUX_BS0 0x00000000
-#define LINUX_BS1 0x00100000
-#define LINUX_VTDLY 0x00200000
-#define LINUX_VT0 0x00000000
-#define LINUX_VT1 0x00200000
+#define LINUX_OFILL 00000100
+#define LINUX_OFDEL 00000200
+#define LINUX_NLDLY 00001400
+#define LINUX_NL0 00000000
+#define LINUX_NL1 00000400
+#define LINUX_NL2 00001000
+#define LINUX_NL3 00001400
+#define LINUX_TABDLY 00006000
+#define LINUX_TAB0 00000000
+#define LINUX_TAB1 00002000
+#define LINUX_TAB2 00004000
+#define LINUX_TAB3 00006000
+#define LINUX_CRDLY 00030000
+#define LINUX_CR0 00000000
+#define LINUX_CR1 00010000
+#define LINUX_CR2 00020000
+#define LINUX_CR3 00030000
+#define LINUX_FFDLY 00040000
+#define LINUX_FF0 00000000
+#define LINUX_FF1 00040000
+#define LINUX_BSDLY 00100000
+#define LINUX_BS0 00000000
+#define LINUX_BS1 00100000
+#define LINUX_VTDLY 00200000
+#define LINUX_VT0 00000000
+#define LINUX_VT1 00200000
/* Hmm.. Linux/i386 considers this part of TABDLY.. */
-#define LINUX_XTABS 0x01000000
+#define LINUX_XTABS 01000000
/*
* Linux c_cflag bit masks
@@ -209,56 +210,56 @@
*/
#define LINUX_NSPEEDS 16
-#define LINUX_CBAUD 0x0000377
-#define LINUX_B0 0x0000000 /* hang up */
-#define LINUX_B50 0x0000001
-#define LINUX_B75 0x0000002
-#define LINUX_B110 0x0000003
-#define LINUX_B134 0x0000004
-#define LINUX_B150 0x0000005
-#define LINUX_B200 0x0000006
-#define LINUX_B300 0x0000007
-#define LINUX_B600 0x0000010
-#define LINUX_B1200 0x0000011
-#define LINUX_B1800 0x0000012
-#define LINUX_B2400 0x0000013
-#define LINUX_B4800 0x0000014
-#define LINUX_B9600 0x0000015
-#define LINUX_B19200 0x0000016
-#define LINUX_B38400 0x0000017
-#define LINUX_EXTA B19200
-#define LINUX_EXTB B38400
-#define LINUX_CBAUDEX 0x0000000
-#define LINUX_B57600 0x00020
-#define LINUX_B115200 0x00021
-#define LINUX_B230400 0x00022
-#define LINUX_B460800 0x00023
-#define LINUX_B500000 0x00024
-#define LINUX_B576000 0x00025
-#define LINUX_B921600 0x00026
-#define LINUX_B1000000 0x00027
-#define LINUX_B1152000 0x00030
-#define LINUX_B1500000 0x00031
-#define LINUX_B2000000 0x00032
-#define LINUX_B2500000 0x00033
-#define LINUX_B3000000 0x00034
-#define LINUX_B3500000 0x00035
-#define LINUX_B4000000 0x00036
+#define LINUX_CBAUD 0000377
+#define LINUX_B0 0000000 /* hang up */
+#define LINUX_B50 0000001
+#define LINUX_B75 0000002
+#define LINUX_B110 0000003
+#define LINUX_B134 0000004
+#define LINUX_B150 0000005
+#define LINUX_B200 0000006
+#define LINUX_B300 0000007
+#define LINUX_B600 0000010
+#define LINUX_B1200 0000011
+#define LINUX_B1800 0000012
+#define LINUX_B2400 0000013
+#define LINUX_B4800 0000014
+#define LINUX_B9600 0000015
+#define LINUX_B19200 0000016
+#define LINUX_B38400 0000017
+#define LINUX_EXTA LINUX_B19200
+#define LINUX_EXTB LINUX_B38400
+#define LINUX_CBAUDEX 0000000
+#define LINUX_B57600 00020
+#define LINUX_B115200 00021
+#define LINUX_B230400 00022
+#define LINUX_B460800 00023
+#define LINUX_B500000 00024
+#define LINUX_B576000 00025
+#define LINUX_B921600 00026
+#define LINUX_B1000000 00027
+#define LINUX_B1152000 00030
+#define LINUX_B1500000 00031
+#define LINUX_B2000000 00032
+#define LINUX_B2500000 00033
+#define LINUX_B3000000 00034
+#define LINUX_B3500000 00035
+#define LINUX_B4000000 00036
-#define LINUX_CSIZE 0x00001400
-#define LINUX_CS5 0x00000000
-#define LINUX_CS6 0x00000400
-#define LINUX_CS7 0x00001000
-#define LINUX_CS8 0x00001400
+#define LINUX_CSIZE 00001400
+#define LINUX_CS5 00000000
+#define LINUX_CS6 00000400
+#define LINUX_CS7 00001000
+#define LINUX_CS8 00001400
-#define LINUX_CSTOPB 0x00002000
-#define LINUX_CREAD 0x00004000
-#define LINUX_PARENB 0x00010000
-#define LINUX_PARODD 0x00020000
-#define LINUX_HUPCL 0x00040000
+#define LINUX_CSTOPB 00002000
+#define LINUX_CREAD 00004000
+#define LINUX_PARENB 00010000
+#define LINUX_PARODD 00020000
+#define LINUX_HUPCL 00040000
-#define LINUX_CLOCAL 0x00100000
-#define LINUX_CRTSCTS 0x020000000000 /* flow control */
+#define LINUX_CLOCAL 00100000
+#define LINUX_CRTSCTS 020000000000 /* flow control */
/*
* Linux c_lflag masks
Home |
Main Index |
Thread Index |
Old Index