Changeset 9deb5b8b in rtems


Ignore:
Timestamp:
08/01/97 18:12:11 (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
29a9e5d
Parents:
0074691a
Message:

Katsutoshi Shibuya (shibuya@…)of BU-Denken Co., Ltd.
(Sapporo, Japan) submitted the extended console driver for the
MVME162LX BSP and the POSIX tcsetattr() and tcgetattr() routines.
This device driver supports four serial ports, cooked IO, and
provides a portable base for Zilog 8530 based console drivers.

Files:
9 added
10 edited

Legend:

Unmodified
Added
Removed
  • c/ACKNOWLEDGEMENTS

    r0074691a r9deb5b8b  
    107107  that library.
    108108
     109+ Katsutoshi Shibuya (shibuya@mxb.meshnet.or.jp)of BU-Denken Co., Ltd.
     110  (Sapporo, Japan) submitted the extended console driver for the
     111  MVME162LX BSP and the POSIX tcsetattr() and tcgetattr() routines.
     112  This device driver supports four serial ports, cooked IO, and
     113  provides a portable base for Zilog 8530 based console drivers.
     114
    109115Finally, the RTEMS project would like to thank those who have contributed
    110116to the other free software efforts which RTEMS utilizes.  The primary RTEMS
  • c/src/exec/libcsupport/include/rtems/libio.h

    r0074691a r9deb5b8b  
    122122#define rtems_file_descriptor_type_index(fd)    ((((fd) & 0xF000) >> 12) - 1)
    123123
     124/*
     125 *  IOCTL values
     126 */
     127
     128#define       RTEMS_IO_GET_ATTRIBUTES 1
     129#define       RTEMS_IO_SET_ATTRIBUTES 2
     130
    124131#endif /* _RTEMS_LIBIO_H */
  • c/src/lib/include/Makefile.in

    r0074691a r9deb5b8b  
    1212H_FILES=$(H_PIECES:%=$(srcdir)/%.h)
    1313
     14SYS_H_PIECES=termios
     15SYS_H_FILES=$(SYS_H_PIECES:%=$(srcdir)/sys/%.h)
     16
    1417KA9Q_H_PIECES= arp asy ax25 ax25mail bootp cmdparse commands config \
    1518  daemon dialer domain enet ftp ftpcli global hardware icmp iface \
     
    2326RTEMSCPLUSPLUS_H_FILES=$(RTEMSCPLUSPLUS_H_PIECES:%=$(srcdir)/rtems++/%.h)
    2427
    25 SYS_H_FILES=
    26 
    27 SRCS=$(H_FILES) $(SYS_H_FILES)
     28SRCS=$(H_FILES) $(SYS_H_FILES) $(KA9Q_H_FILES) $(RTEMSCPLUSPLUS_H_FILES)
    2829
    2930include $(RTEMS_CUSTOM)
  • c/src/lib/include/rtems/libio.h

    r0074691a r9deb5b8b  
    122122#define rtems_file_descriptor_type_index(fd)    ((((fd) & 0xF000) >> 12) - 1)
    123123
     124/*
     125 *  IOCTL values
     126 */
     127
     128#define       RTEMS_IO_GET_ATTRIBUTES 1
     129#define       RTEMS_IO_SET_ATTRIBUTES 2
     130
    124131#endif /* _RTEMS_LIBIO_H */
  • c/src/lib/libbsp/m68k/mvme162/Makefile.in

    r0074691a r9deb5b8b  
    1313SRCS=README
    1414
     15# If the MVME162 is an LX model, then there are 2 z8530's to yield
     16# four serial ports.  The application can choose this driver by
     17# using "CONSOLEX_DRIVER_TABLE_ENTRY" in the driver table definition,
     18# in place of "CONSOLE_DRIVER_TABLE_ENTRY".  See consolex/cTest.c for
     19# an example.
     20
     21ifeq $(RTEMS_MVME162_MODEL,mvme162lx)
     22CONSOLEX=consolex
     23endif
     24
    1525# wrapup is the one that actually builds and installs the library
    1626#  from the individual .rel files built in other directories
    1727#
    1828# XXXX add tools
    19 SUB_DIRS=include startup clock console timer wrapup
     29SUB_DIRS=include startup clock console $(CONSOLEX) timer wrapup
  • c/src/lib/libbsp/m68k/mvme162/README

    r0074691a r9deb5b8b  
    39394 serial ports.
    4040
     41Extended Console Driver
     42-----------------------
     43This BSP includes an extended console driver which supports all 4 serial
     44ports on the MVME162LX model.  It was submitted by Katsutoshi Shibuya
     45<shibuya@mxb.meshnet.or.jp>.
     46
     47The application can choose this driver by using "CONSOLEX_DRIVER_TABLE_ENTRY"
     48in the driver table definition, in place of "CONSOLE_DRIVER_TABLE_ENTRY". 
     49See consolex/cTest.c for an example and consolex/README for more information.
     50
     51This driver is only built for the mvme162lx bsp model.
    4152
    4253MVME162FX and DMA on the IP bus
     
    6677Port Description
    6778----------------
     79This section describes the initial port effort.  There have been
     80additions and modifications to the bsp since this was done.
     81Interestingly, this was the first bsp submitted to the RTEMS project
     82and the submission offer came out of the blue with no prior
     83communication with the author. :)
     84
    6885The port was done using already existing ports to the M68020 boards,
    6986DMV152 and MVME136.
    7087
    71 The host system was SUN/Solaris 2.3, and the cross-development
    72 environment consisted of Free Software Foundation (FSF)'s GNU C
    73 compiler (version 2.6), GNU Assembler (version 2.3) and GNU binary
    74 utilities binutils version 2.5.2, built with m68k as a target. The
    75 recent/latest versions of other GNU programs (flex, make, etc) were
    76 also used at the build stage.
     88The initial host development system was SUN/Solaris 2.3, and
     89the cross-development environment consisted of Free Software
     90Foundation (FSF)'s GNU C compiler (version 2.6), GNU Assembler
     91(version 2.3) and GNU binary utilities binutils version 2.5.2,
     92built with m68k as a target. The recent/latest versions of other
     93GNU programs (flex, make, etc) were also used at the build stage.
    7794
    7895In all subdirectories of the RTEMS distribution tree, the directories
  • c/src/lib/libc/Makefile.in

    r0074691a r9deb5b8b  
    1313# C and C++ source names, if any, go here -- minus the .c or .cc
    1414C_PIECES=__gettod __brk __times malloc syscalls \
    15          no_libc newlibc newlibif support unixlibc libio hosterr
     15         no_libc newlibc newlibif support unixlibc libio hosterr tcattr
    1616C_FILES=$(C_PIECES:%=%.c)
    1717C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libc/libio.h

    r0074691a r9deb5b8b  
    122122#define rtems_file_descriptor_type_index(fd)    ((((fd) & 0xF000) >> 12) - 1)
    123123
     124/*
     125 *  IOCTL values
     126 */
     127
     128#define       RTEMS_IO_GET_ATTRIBUTES 1
     129#define       RTEMS_IO_SET_ATTRIBUTES 2
     130
    124131#endif /* _RTEMS_LIBIO_H */
  • c/src/lib/libc/newlibif.c

    r0074691a r9deb5b8b  
    8888 */
    8989
     90/*
     91 * ioctl -- IO control
     92 */
     93
     94int
     95ioctl(int fd, int request, void *argp)
     96{
     97    return __rtems_ioctl(fd,request,argp);
     98}
     99
     100/*
     101 * tcgetattr/tcsetattr -- get/set attributes of a device.
     102 *
     103 * by K.Shibuya
     104 */
     105
     106int
     107tcgetattr(int fd, struct termios *tp)
     108{
     109    return __rtems_ioctl(fd,RTEMS_IO_GET_ATTRIBUTES,tp);
     110}
     111
     112int
     113tcsetattr(int fd, int opt, struct termios *tp)
     114{
     115    if(opt != TCSANOW)
     116      return -1;
     117    return __rtems_ioctl(fd,RTEMS_IO_SET_ATTRIBUTES,tp);
     118}
     119
    90120#endif
  • cpukit/libcsupport/include/rtems/libio.h

    r0074691a r9deb5b8b  
    122122#define rtems_file_descriptor_type_index(fd)    ((((fd) & 0xF000) >> 12) - 1)
    123123
     124/*
     125 *  IOCTL values
     126 */
     127
     128#define       RTEMS_IO_GET_ATTRIBUTES 1
     129#define       RTEMS_IO_SET_ATTRIBUTES 2
     130
    124131#endif /* _RTEMS_LIBIO_H */
Note: See TracChangeset for help on using the changeset viewer.