Commit Graph

1394 Commits

Author SHA1 Message Date
Joel Sherrill
fa21a8439f New files from Ralf Corsepius <corsepiu@faw.uni-ulm.de>. His comments:
* c/src/exec/score/tools/sh - NEW DIRECTORY - contains shgen
    Most of it should be self-explanatory. I am a little bit concerned about
    host-dependent features (getopt, floating point libraries). This
    shouldn't disturb much now, as this tool should be compileable on all
    gnu-based hosts and is only applicable for the sh. But in case somebody
    complains, we may need to add autoconf checks or even restructurize
    parts of rtems (IMO, rtems needs to be restructurized - remember the
    "turning rtems upside down" issue).
1998-07-17 15:17:29 +00:00
Joel Sherrill
6e65840670 Patch from Dario Alcocer <alcocer@connectnet.com>. His comments:
Haven't had a chance to do an extensive shake-out of 980710, but it
  builds just fine on FreeBSD 2.2.5 (after termios is fixed using the
  attached patch), and the tests run fine.  FYI: FreeBSD doesn't support
  System V IPC out of the box, but one only needs to add three options
  to the kernel build configuration file, recompile the kernel, and
  you're ready.
1998-07-17 13:05:03 +00:00
Joel Sherrill
16d0e63538 Corrected header files. 1998-07-16 00:16:22 +00:00
Joel Sherrill
a6f441b825 Minor corrections for typos to get it to compile. 1998-07-16 00:16:11 +00:00
Joel Sherrill
dd5d2f041f Split default baud rate table into its own file. This shrinks the
size of the minimum mc68681 driver.  The clock speed field can not
now be configured as NULL but must instead specify the address of
the default table.
1998-07-16 00:03:01 +00:00
Joel Sherrill
4a11d8c1b2 Fixed typo in which last port did not get switched to default
register access routines.
1998-07-15 23:58:08 +00:00
Joel Sherrill
849dc10756 Fixed typos. 1998-07-15 23:57:41 +00:00
Joel Sherrill
670d0378e7 Switched to usign the default z8530 and mc68681 register access routines. 1998-07-15 23:55:04 +00:00
Joel Sherrill
8414c033e2 Added default z85c30 register access routines. 1998-07-15 23:54:24 +00:00
Joel Sherrill
cce93220ec Added default mc68681 register access routines. 1998-07-15 23:54:08 +00:00
Joel Sherrill
991a1ab400 Added check for proper deviceType to interrupt processing code. 1998-07-15 23:21:55 +00:00
Joel Sherrill
efaf85faf1 Added interrupt mask and interrupt status register bit constants.
Added prototype for mc68681_build_imr(), mc68681_process(), and
mc68681_enable_interrupts().
1998-07-15 23:21:30 +00:00
Joel Sherrill
49370cd68c Added default mc68681 register access routines. 1998-07-15 23:20:50 +00:00
Joel Sherrill
198d851c77 Switched from driver's own buffering to using termios. This eliminated
the need for the ringbuffer manipulation in this driver.  It should
also allow the removal of mc68681_flush.  This greatly simplified the
interrupt processing.

Reworked Interrupt Mask Register handling.  Added imr field to the device
context.  This handling makes sure that the IMR accurately reflects the
state of the port in use and its mate.  This required the reworking of
the mc68681_enable_interrupts() routine to allow for the specification
of which interrupt sources were being enabled/disabled.

Reworked initialization to reset using port address rather than chip
base address.  Basically we were always resetting port 0.

Added deviceType field which allows for multiple chips of the same
class to have the same vector number.
1998-07-15 23:20:33 +00:00
Joel Sherrill
27a66bd999 Added information on the deviceType field. 1998-07-15 23:15:49 +00:00
Joel Sherrill
66f95fc621 Added default mc68681 register access routines. 1998-07-15 23:15:32 +00:00
Joel Sherrill
8a2e9c417f Added SCV64_Get_Interrupt_Enable().
Added proper headers to routines.
1998-07-15 21:43:28 +00:00
Joel Sherrill
d0cff6dc67 Added SCV64_Get_Interrupt_Enable(). 1998-07-15 21:43:00 +00:00
Joel Sherrill
38e717fe8b Added chip type identifier field. This was necessary because a single
interrupt vector can be shared by multiple chips of varying types.
1998-07-15 21:42:26 +00:00
Joel Sherrill
c0573d7e5d Added comment to remove use of TxBuffer ring buffer in all libchip drivers.
The scheme used in the mc68681 is the one to follow.
1998-07-15 21:40:42 +00:00
Joel Sherrill
0f613361b7 Added comments. 1998-07-15 19:28:29 +00:00
Joel Sherrill
a69f0ad9ca Added comments. 1998-07-15 19:20:20 +00:00
Joel Sherrill
100a4e53fc Masked out interrupts not being used prior to processing the status register. 1998-07-15 19:19:14 +00:00
Joel Sherrill
6c45da17cf Added routine to return interrupt mask. Added comments. 1998-07-15 19:12:11 +00:00
Joel Sherrill
01e54b8f9c Added scv64 subdirectory. 1998-07-15 14:06:37 +00:00
Joel Sherrill
e49ef37cdf Switched to SCV64. 1998-07-15 14:06:08 +00:00
Joel Sherrill
8f563b9b3c Added CSCV64 functions and addresses. 1998-07-15 14:05:51 +00:00
Joel Sherrill
30a3f76b29 Switched from polling to interrupts and in the process added a conditional
compilation section which used CONSOLE_USE_INTERRUPTS to switch all
ports between interrupt and polled mode.
1998-07-15 14:04:31 +00:00
Joel Sherrill
437b5a7dcc Added scv64 subdirectory. 1998-07-15 14:00:23 +00:00
Joel Sherrill
090a351181 New files. 1998-07-15 14:00:09 +00:00
Joel Sherrill
be8cbbf54a Switched deviceOutputUsesInterrupts to TRUE so output would be interrupt
driven.

Redid "mate determination" code to check that the chip base address was
the same but the port address was different.

Moved mc68681_process and mc68681_build_imr to the bottom of the file
so they would not be inlined.

Removed the code which forced mc68681_build_imr to always return 0 which
resulted in interrupts never being enabled from the chip.

Corrected spacing in prototype of mc68681_write_support_int.
1998-07-15 13:58:23 +00:00
Joel Sherrill
e283140cac Switched to "deviceOutput = TRUE" which made device output use interrupts. 1998-07-15 13:53:58 +00:00
Joel Sherrill
5b8c1b7041 Yet another EXEEXT patch. This one is from Ralf Corsepius
<corsepiu@faw.uni-ulm.de> and his comments are below:

  Joel, obviously you did apply my previous patch to
  gcc-target-default.cfg -- This should have been gcc.cfg
  (gcc-target-default.cfg should NOT contain any EXEEXT).
1998-07-11 14:23:53 +00:00
Joel Sherrill
3a447c3b36 changed version to 980710 1998-07-10 19:05:20 +00:00
Joel Sherrill
dbfa314823 Patch from Quality Quorum <qqi@world.std.com>. Comments:
c/src/lib/libbsp/i386/pc386/console/console.c
        __assert() modified so it prints on selected console instead of
        PC console

    c/src/lib/libbsp/i386/pc386/console/inch.c
        inch_sleep() modified, so it does not depend upon tmacros.h

    c/src/lib/libbsp/i386/pc386/pc386dev/GDB.HOWTO
        description updated

    c/src/lib/libbsp/i386/pc386/startup/exit.c
        last output before call to exit() will be printed properly on
        serial console

    c/src/lib/libbsp/i386/pc386/startup/irq.c
        re-submitted bug fix for problem in irqs over 7.
1998-07-10 15:43:18 +00:00
Joel Sherrill
cc8a388aac Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>. Comments:
> It seems that rules for %{EXEEXT} don't exist in gcc-target-default.cfg

    No, gcc-target-default.cfg is used to compile executables for the target
    only, not for the host.

    EXEEXT may only be used for programs to be run on the host.

    > What should I add please?

    This was a bug in my initial configuration patch to rtems-980616. A
    correction to this patch I had sent to Joel at 26.06.98 doesn't seem to
    have made it into the snapshot.

    Please find attached the patch I had sent to Joel, hopefully this patch
    fixes this problem.
1998-07-10 14:13:59 +00:00
Joel Sherrill
fb32356ba6 Added set attributes routine but did not hook it in to the table.
Switched to shared default probe.
1998-07-09 23:32:07 +00:00
Joel Sherrill
abd8c82b9e Added new files. 1998-07-09 23:31:48 +00:00
Joel Sherrill
31cad72c86 Renamed so we could have one file per routine. 1998-07-09 23:31:26 +00:00
Joel Sherrill
064b9be457 Switched to shared default probe routine. 1998-07-09 23:30:32 +00:00
Joel Sherrill
693b5b8850 Switched to default probe routine. 1998-07-09 23:30:02 +00:00
Joel Sherrill
61ff7ac825 Added new baud rate to number function and default serial probe routine.
Renamed sersupp.c so we could have one routine per file to decrease
the baggage pulled into an application by default.
1998-07-09 23:29:33 +00:00
Joel Sherrill
11c6a92d77 Commented out the system call invocation since we don't know what works
with this ROM monitor.
1998-07-09 22:59:32 +00:00
Joel Sherrill
a6e36dfffe Removed call back to exit() since that has already been called. 1998-07-09 22:59:13 +00:00
Joel Sherrill
e78c474b0d Added proper handling of extended baud rate table selection at boot time.
Still need to address default terminal settings.
1998-07-09 22:21:54 +00:00
Joel Sherrill
2c5ea019fa Properly handle extended baud rate set commands.
Temporarily "if 0" of code which enables interrupts.

Moved setting of command registers at open but the current implementation
is questionable.

Added reset of RX errors while polling TX.

Read polled character as unsigned.

Baud rate mask must be in upper and lower nibble.
1998-07-09 22:16:27 +00:00
Joel Sherrill
e3c59ddb35 Corrected definition of MC68681_RX_BUFFER. 1998-07-09 22:11:49 +00:00
Joel Sherrill
2ba0a0c2a8 Corrected z85c30 address and clock constants. 1998-07-09 18:50:13 +00:00
Joel Sherrill
459c1d2350 Added board specific baud rate table and set driver function table
to polled.
1998-07-09 18:49:49 +00:00
Joel Sherrill
2d8e51aade Changed static to MC68681_STATIC to make all data and routines
globally visiable to ease debugging.

Added support for mc68681 "2 column" style baud rate table as
well as the Exar 88681 "4 column" style baud rate table.

Added support for user override of the default baud rate table.
1998-07-09 18:45:28 +00:00