summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/serial/mc68681.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-04-04bsps: Move libchip to bspsSebastian Huber1-776/+0
This patch is a part of the BSP source reorganization. Update #3285.
2017-03-22termios: Synchronize with latest FreeBSD headersKevin Kirspel1-1/+1
Adding modified FreeBSD headers to synchronize RTEMS termios with FreeBSD. Modify termios to support dedicated input and output baud for termios structure. Updated BSPs to use dedicated input and output baud in termios structure. Updated tools to use dedicated input and output baud in termios structure. Updated termios testsuites to use dedicated input and output baud in termios structure. Close #2897.
2017-03-14libchip/serial/mc68681.c: Add error checkJoel Sherrill1-0/+2
This was spotted by Coverity Scan.
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2013-07-24score: Merge sysstate API into one fileSebastian Huber1-0/+1
2013-02-11libchip/serial: Add const qualifierSebastian Huber1-2/+2
2013-02-11libchip/serial: Fix warningsSebastian Huber1-6/+0
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-2/+0
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2012-05-09libchip/serial - Only use set_vector() on Simple Vectored ArchitecturesJoel Sherrill1-1/+6
2011-12-062011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libchip/serial/mc68681.c (mc68681_open): Var "status" needs to be signed.
2011-10-282011-10-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-3/+0
PR 1944/misc * libchip/serial/mc68681.c: Remove #if 0.
2011-10-182011-10-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett1-39/+39
PR 1917/bsps * libchip/serial/mc68681.c, libchip/serial/ns16550.c, libchip/serial/serial.h, libchip/serial/z85c30.c: Modifications to add dynamic tables for libchip serial drivers.
2011-10-112011-10-11 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-2/+0
* libchip/serial/mc68681.c: Eliminate unused var "success".
2010-04-262010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-1/+2
* libchip/serial/mc68681.c, libchip/serial/mc68681_reg.c, libchip/serial/ns16550.c, libchip/serial/serial.h, libchip/serial/z85c30.c, libchip/serial/z85c30_reg.c: Use uintptr_t or intptr_t instead of uint32_t or int32_t.
2010-04-09adapt _write_ functions to new prototypeThomas Doerfler1-5/+5
2009-09-302009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libchip/serial/z85c30.c, libchip/serial/ns16550.c, libchip/serial/mc68681.c: Reflect termios_baud_to_number having been renamed to rtems_termios_baud_to_number.
2008-09-07Convert to "bool".Ralf Corsepius1-3/+3
2005-05-062005-05-06 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett1-1/+1
* libchip/network/open_eth.c, libchip/serial/mc68681.c, libchip/serial/ns16550.c, libchip/serial/z85c30.c: Removed warning
2005-05-032005-05-03 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett1-1/+1
* libchip/network/dec21140.c, libchip/network/elnk.c, libchip/network/if_fxp.c, libchip/serial/mc68681.c: Modified parameter list to remove warnings.
2005-05-022005-05-02 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett1-1/+1
* libchip/network/cs8900.c, libchip/network/i82586.c, libchip/network/open_eth.c, libchip/network/sonic.c, libchip/serial/mc68681.c: Modified types to remove warnings. Added initialization to remove warnings.
2004-04-20Remove stray white spaces.Ralf Corsepius1-32/+32
2004-03-232004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-17/+17
* libchip/ide/ata.c, libchip/ide/ata_internal.h, libchip/ide/ide_controller.c, libchip/ide/ide_ctrl_cfg.h, libchip/ide/ide_ctrl_io.h, libchip/network/cs8900.c, libchip/network/dec21140.c, libchip/network/elnk.c, libchip/network/if_fxp.c, libchip/network/open_eth.c, libchip/network/open_eth.h, libchip/network/sonic.c, libchip/network/sonic.h, libchip/rtc/icm7170.c, libchip/rtc/icm7170.h, libchip/rtc/icm7170_reg.c, libchip/rtc/icm7170_reg2.c, libchip/rtc/icm7170_reg4.c, libchip/rtc/icm7170_reg8.c, libchip/rtc/m48t08.c, libchip/rtc/m48t08.h, libchip/rtc/m48t08_reg.c, libchip/rtc/m48t08_reg2.c, libchip/rtc/m48t08_reg4.c, libchip/rtc/m48t08_reg8.c, libchip/rtc/rtc.h, libchip/serial/mc68681.c, libchip/serial/mc68681.h, libchip/serial/mc68681_reg.c, libchip/serial/mc68681_reg2.c, libchip/serial/mc68681_reg4.c, libchip/serial/mc68681_reg8.c, libchip/serial/ns16550.c, libchip/serial/ns16550_p.h, libchip/serial/serial.h, libchip/serial/z85c30.c, libchip/serial/z85c30.h, libchip/serial/z85c30_p.h, libchip/serial/z85c30_reg.c, libchip/shmdr/addlq.c, libchip/shmdr/cnvpkt.c, libchip/shmdr/dump.c, libchip/shmdr/fatal.c, libchip/shmdr/getlq.c, libchip/shmdr/init.c, libchip/shmdr/initlq.c, libchip/shmdr/intr.c, libchip/shmdr/poll.c, libchip/shmdr/send.c, libchip/shmdr/shm_driver.h: Convert to using c99 fixed-size types.
2003-09-262003-09-26 Cedric Aubert <cedric_aubert@yahoo.fr>Joel Sherrill1-19/+44
PR 499/rtems_misc * serial/mc68681.c: Miscellaneous corrections: - Correction of ACR_BIT[7] (Baudrate table) Configuration - Correction of Parity Bit Configuration (Odd was forced) - Correction of Stop Bit configuration (inversed) - Correction of ISR Handler to call rtems_termios_dequeue_character() only if is a Tx Empty IRQ. - Add RTS CTS Hardware flow control Configuration
2003-09-042003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* ide/ata.c, ide/ata.h, ide/ata_internal.h, ide/ide_controller.c, ide/ide_ctrl.h, ide/ide_ctrl_cfg.h, ide/ide_ctrl_io.h, network/cs8900.c, network/cs8900.c.bsp, network/cs8900.h, network/dec21140.c, network/elnk.c, network/open_eth.c, network/sonic.c, network/sonic.h, rtc/icm7170.c, rtc/icm7170.h, rtc/icm7170_reg.c, rtc/icm7170_reg2.c, rtc/icm7170_reg4.c, rtc/icm7170_reg8.c, rtc/m48t08.c, rtc/m48t08.h, rtc/m48t08_reg.c, rtc/m48t08_reg2.c, rtc/m48t08_reg4.c, rtc/m48t08_reg8.c, rtc/rtc.h, rtc/rtcprobe.c, serial/mc68681.c, serial/mc68681.h, serial/mc68681_p.h, serial/mc68681_reg.c, serial/mc68681_reg2.c, serial/mc68681_reg4.c, serial/mc68681_reg8.c, serial/serial.h, serial/z85c30.c, serial/z85c30.h, serial/z85c30_p.h, serial/z85c30_reg.c: URL for license changed.
2001-03-142001-03-14 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* serial/Makefile.am, serial/mc68681.c, serial/ns16550.c, serial/serprobe.c, serial/z85c30.c: Now install sersupp.h to <libchip/sersupp.h> so libchip style serial drivers can be written in libcpu or libbsp.
1999-11-17Updated copyright notice.Joel Sherrill1-2/+1
1998-10-28Merged Vista SCORE603e, Radstone PPCn_60x, and DY-4 DMV177 BSPs alongJoel Sherrill1-2/+2
with libchip.
1998-09-11Updates to tree to make it build with all desired changes and the conversionJoel Sherrill1-2/+2
of the SONIC driver to the new FreeBSD stack instead of KA9Q.
1998-08-13Don't disable the RX/TX on close in polled mode.Joel Sherrill1-2/+3
Fixed a comment.
1998-08-05Commented out the code which yields the CPU when the serial controller isJoel Sherrill1-0/+2
busy. This type of behavior perturbs the tests and many of them will not pass.
1998-07-28Corrected spacing.Joel Sherrill1-1/+0
1998-07-25Added comments and corrected spacing.Joel Sherrill1-0/+4
1998-07-25Changed variable to hold received data to unsigned.Joel Sherrill1-1/+1
1998-07-25Removed mc68681_flush and corrected spacing.Joel Sherrill1-31/+5
1998-07-25Changed to utilize return status from rtems_termios_dequeue_characters()Joel Sherrill1-4/+9
and to correctly set the TX active indicator.
1998-07-16Minor corrections for typos to get it to compile.Joel Sherrill1-2/+2
1998-07-16Split default baud rate table into its own file. This shrinks theJoel Sherrill1-103/+6
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-15Switched from driver's own buffering to using termios. This eliminatedJoel Sherrill1-121/+93
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-15Switched deviceOutputUsesInterrupts to TRUE so output would be interruptJoel Sherrill1-148/+147
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-09Switched to default probe routine.Joel Sherrill1-17/+2
1998-07-09Added proper handling of extended baud rate table selection at boot time.Joel Sherrill1-1/+6
Still need to address default terminal settings.
1998-07-09Properly handle extended baud rate set commands.Joel Sherrill1-15/+22
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-09Changed static to MC68681_STATIC to make all data and routinesJoel Sherrill1-105/+192
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-06-23Removed RTS and DTR handling code since the MC68681 seems to only haveJoel Sherrill1-225/+87
automatic handling of RTS/CTS. This only protects the on-chip buffers and FIFOs -- not the termios queues as the RTS/CTS code in here did. It may be necessary in the future to enable this automatic support. Interrupt processing code added. In some places, channel and duart base addresses were swapped.
1998-06-23Added numerous comments.Joel Sherrill1-15/+72
1998-06-23Added concept of "mate" -- the other port on the same DUART. This isJoel Sherrill1-41/+77
needed to properly handle the interrupt mask register since it is shared.
1998-06-23Added close.Joel Sherrill1-4/+28
1998-06-23Added set attributes and written initialize and first open.Joel Sherrill1-78/+236
1998-06-22Added initial part of iniitialization.Joel Sherrill1-6/+28
1998-06-22Added mc68681 stuff to the makefile.Joel Sherrill1-68/+110
Added numerous constants to mc68681_p.h. Changed spacing. At this point the polled support is in but nothing else is right except the structure.