summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/serial/mc68681.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Move libchip to bspsSebastian Huber2018-04-041-776/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* termios: Synchronize with latest FreeBSD headersKevin Kirspel2017-03-221-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.
* libchip/serial/mc68681.c: Add error checkJoel Sherrill2017-03-141-0/+2
| | | | This was spotted by Coverity Scan.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* score: Merge sysstate API into one fileSebastian Huber2013-07-241-0/+1
|
* libchip/serial: Add const qualifierSebastian Huber2013-02-111-2/+2
|
* libchip/serial: Fix warningsSebastian Huber2013-02-111-6/+0
|
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-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.
* libchip/serial - Only use set_vector() on Simple Vectored ArchitecturesJoel Sherrill2012-05-091-1/+6
|
* 2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-061-1/+1
| | | | | * libchip/serial/mc68681.c (mc68681_open): Var "status" needs to be signed.
* 2011-10-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-10-281-3/+0
| | | | | PR 1944/misc * libchip/serial/mc68681.c: Remove #if 0.
* 2011-10-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett2011-10-181-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-11 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-111-2/+0
| | | | * libchip/serial/mc68681.c: Eliminate unused var "success".
* 2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-04-261-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.
* adapt _write_ functions to new prototypeThomas Doerfler2010-04-091-5/+5
|
* 2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2009-09-301-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.
* Convert to "bool".Ralf Corsepius2008-09-071-3/+3
|
* 2005-05-06 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett2005-05-061-1/+1
| | | | | * libchip/network/open_eth.c, libchip/serial/mc68681.c, libchip/serial/ns16550.c, libchip/serial/z85c30.c: Removed warning
* 2005-05-03 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett2005-05-031-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-02 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett2005-05-021-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.
* Remove stray white spaces.Ralf Corsepius2004-04-201-32/+32
|
* 2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-03-231-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-26 Cedric Aubert <cedric_aubert@yahoo.fr>Joel Sherrill2003-09-261-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-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-09-041-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-14 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2001-03-141-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.
* Updated copyright notice.Joel Sherrill1999-11-171-2/+1
|
* Merged Vista SCORE603e, Radstone PPCn_60x, and DY-4 DMV177 BSPs alongJoel Sherrill1998-10-281-2/+2
| | | | with libchip.
* Updates to tree to make it build with all desired changes and the conversionJoel Sherrill1998-09-111-2/+2
| | | | of the SONIC driver to the new FreeBSD stack instead of KA9Q.
* Don't disable the RX/TX on close in polled mode.Joel Sherrill1998-08-131-2/+3
| | | | Fixed a comment.
* Commented out the code which yields the CPU when the serial controller isJoel Sherrill1998-08-051-0/+2
| | | | | busy. This type of behavior perturbs the tests and many of them will not pass.
* Corrected spacing.Joel Sherrill1998-07-281-1/+0
|
* Added comments and corrected spacing.Joel Sherrill1998-07-251-0/+4
|
* Changed variable to hold received data to unsigned.Joel Sherrill1998-07-251-1/+1
|
* Removed mc68681_flush and corrected spacing.Joel Sherrill1998-07-251-31/+5
|
* Changed to utilize return status from rtems_termios_dequeue_characters()Joel Sherrill1998-07-251-4/+9
| | | | and to correctly set the TX active indicator.
* Minor corrections for typos to get it to compile.Joel Sherrill1998-07-161-2/+2
|
* Split default baud rate table into its own file. This shrinks theJoel Sherrill1998-07-161-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.
* Switched from driver's own buffering to using termios. This eliminatedJoel Sherrill1998-07-151-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.
* Switched deviceOutputUsesInterrupts to TRUE so output would be interruptJoel Sherrill1998-07-151-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.
* Switched to default probe routine.Joel Sherrill1998-07-091-17/+2
|
* Added proper handling of extended baud rate table selection at boot time.Joel Sherrill1998-07-091-1/+6
| | | | Still need to address default terminal settings.
* Properly handle extended baud rate set commands.Joel Sherrill1998-07-091-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.
* Changed static to MC68681_STATIC to make all data and routinesJoel Sherrill1998-07-091-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.
* Removed RTS and DTR handling code since the MC68681 seems to only haveJoel Sherrill1998-06-231-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.
* Added numerous comments.Joel Sherrill1998-06-231-15/+72
|
* Added concept of "mate" -- the other port on the same DUART. This isJoel Sherrill1998-06-231-41/+77
| | | | | needed to properly handle the interrupt mask register since it is shared.
* Added close.Joel Sherrill1998-06-231-4/+28
|
* Added set attributes and written initialize and first open.Joel Sherrill1998-06-231-78/+236
|
* Added initial part of iniitialization.Joel Sherrill1998-06-221-6/+28
|
* Added mc68681 stuff to the makefile.Joel Sherrill1998-06-221-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.