]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/io/serial/v2_0/ChangeLog
ae8c783d9d3dd9aa5ec010ab6f9ab6f2143410d6
[karo-tx-redboot.git] / packages / io / serial / v2_0 / ChangeLog
1 2005-09-02  Sebastien Couret <sebastien.couret@elios-informatique.fr>
2
3         * src/common/termiostty.c and 
4         * tests/serial_echo.c : Fix compiler warning on a signedness 
5         argument
6         
7 2005-07-22  Andrew Lunn  <andrew.lunn@ascom.ch>
8
9         * src/common/tty.c (tty_write): 
10         * src/common/haldiag.c (haldiag_getc): Fixed pointer signness to
11         avoid compiler warnings.
12         * tests/*.c msglen should by an unsigned int to avoid compiler
13         warnings.
14         
15 2005-07-21  Andrew Lunn  <andrew.lunn@ascom.ch>
16
17         * src/common/termiostty.c: Removed errbuf from priv. It was never
18         being used after being allocated and never freed.
19
20 2005-06-27  Andrew Lunn <andrew.lunn@ascom.ch>
21
22         * src/common/serial.c (serial_select): Swap the DSR locks and
23         mutex locks around to avoid deadlocks with the rest of the code
24         which uses this order.
25         
26 2005-06-17  Andreas Gaer <andreas.gaer@baslerweb.com>
27
28         * src/common/serial.c (serial_select): Lock DSRs inside
29         serial_select() as the serial DSR calls functions manipulating the
30         cbuf structs, leading to a race condition. Also use the mutex to
31         avoid races between different threads.
32
33 2005-05-13  Peter Korsgaard  <jacmet@sunsite.dk>
34
35         * src/common/serial.c (serial_init): Fix compiler warnings about
36         formats strings for diag_printf.        
37
38 2004-11-30  Jani Monoses <jani@iv.ro>
39
40          * cdl/io_serial.cdl : CYGPKG_IO_SERIAL_SELECT_SUPPORT requires 
41          CYGFUN_IO_FILEIO_SELECT specifically not just CYGPKG_FILEIO. The 
42          latter provides select support only in kernel configurations.
43          
44 2004-04-22  Jani Monoses <jani@iv.ro>
45
46          * cdl/io_serial.cdl :
47          Invoke tail with stricter syntax that works in latest coreutils. 
48
49 2004-01-12  Dan Jakubiec <djakubiec@yahoo.com>
50
51         * src/common/serial.c: serial_write() was returning an incorrect
52         result code in non-blocking mode when output was blocked.  The
53         previous code would return ENOERR with 0 bytes written.  This
54         was fixed to return EAGAIN.
55
56 2003-08-18  Jay Foster <jay@systech.com>
57
58         * src/common/serial.c: Fixed bug for XON/XOFF flow control that
59         would cause multiple XON (or XOFF) characters to be sent for a
60         single flow control state transition.
61         Fixed bug in serial_write() that would cause output data to be
62         discarded if using polled mode with flow control, and output
63         was blocked due to flow control.
64         Fixed bug in serial_data_xmt_req() that would not stop sending
65         data when output was flow controlled off (hardware flow control).
66
67 2003-09-02  Eric Doenges <Eric.Doenges@DynaPel.com>
68
69         * src/common/tty.c: Make tty_select prototype match implementation.
70         * src/common/termiostty.c: Make termios_select prototype match 
71         implementation.
72
73 2003-09-02  Jonathan Larmour  <jifl@eCosCentric.com>
74
75         * src/common/serial.c: Make serial_select prototype match
76         implementation.
77
78 2003-06-09  Nick Garnett  <nickg@balti.calivar.com>
79
80         * src/common/serial.c: Changed all calls to cyg_drv_cond_signal()
81         to cyg_drv_cond_broadcast(). Removed comment asking whether this
82         matters: it does.
83
84         * include/serialio.h: Added includes of pkgconf files so that the
85         ifdefs in this file work properly.
86         
87         * include/serial.h: Added include of devtab.h to fix compile
88         error.
89
90 2003-05-21  Gary Thomas  <gary@mlbassoc.com>    
91
92         * src/common/serial.c (serial_get_config): Restart receiver 
93         after input queue flush if it had been throttled.  Inspired
94         by David Marqvar <DAM@tt.dk>
95
96 2003-03-25  Jonathan Larmour  <jifl@eCosCentric.com>
97
98         * src/common/serial.c (serial_get_config): For both INPUT_FLUSH
99         and OUTPUT_FLUSH keys, pass down to the hardware driver as well
100         to allow it to flush FIFOs.
101         Based on patch from Roland Cassebohm.
102
103 2003-03-20  Gary Thomas  <gary@mlbassoc.com>
104
105         * src/common/serial.c: Only return -EAGAIN if no data moved.
106
107 2003-03-11  Gary Thomas  <gary@mlbassoc.com>
108
109         * src/common/termiostty.c (termios_read): VMIN handling still wasn't
110         quite correct.  When VMIN > 0, at least VMIN characters should be
111         read.
112
113 2003-02-24  Jonathan Larmour  <jifl@eCosCentric.com>
114
115         * cdl/io_serial.cdl: Fix doc link.
116
117 2003-02-14  Jonathan Larmour  <jifl@eCosCentric.com>
118
119         * src/common/termiostty.c: Support VMIN > 0 properly.
120
121 2002-12-10  Gary Thomas  <gthomas@ecoscentric.com>
122
123         * src/common/tty.c (tty_write): Only return number of characters
124         in original string which were written - don't include any CR/LF
125         expansion characters.
126
127 2002-04-23  Jesper Skov  <jskov@redhat.com>
128
129         * tests/serial3.c (serial_test): Use 19200 baud rate when board
130         cannot handle 38400.
131         * tests/serial5.c (serial_test): Same.
132
133 2002-02-19  Jesper Skov  <jskov@redhat.com>
134
135         * cdl/io_serial.cdl: Removed termiostty.c build rule.
136
137         * cdl/termios.cdl: Make termiostty.c building depending on actual
138         requirements for its content.
139
140 2002-02-15  Jesper Skov  <jskov@redhat.com>
141
142         * tests/flow1.c: Also try DSR/DTR flow control (presently
143         unsupported by Linux though).
144         * tests/flow2.c: Same.
145
146 2002-01-11  Jonathan Larmour  <jlarmour@redhat.com>
147
148         * src/common/termiostty.c (termios_read): Don't return after VMIN,
149         this was a stupid thing to do and decreases performance a lot.
150
151 2001-08-15  Gary Thomas  <gthomas@redhat.com>
152
153         * tests/ser_test_protocol.inl: Change NONE in 'cyg_verbosity_level_t'
154         to be _NONE [unused] to avoid name clash with <kernel/kapi.h>.
155
156 2000-12-08  Jonathan Larmour  <jlarmour@redhat.com>
157
158         * src/common/serial.c: Fix CYGOPT_IO_SERIAL_FLOW_CONTROL_HW ->
159         CYGOPT_IO_SERIAL_SUPPORT_LINE_STATUS typo when declaring callbacks
160         Thanks to Brian Danilko for reporting.
161
162 2000-11-22  Jesper Skov  <jskov@redhat.com>
163
164         * src/common/serial.c: Changed #ifdef to #if used on an interface
165         option.
166
167 2000-11-06  Jonathan Larmour  <jlarmour@redhat.com>
168
169         * src/common/tty.c (tty_write): Check buffer size appropriately
170         since when doing \r\n expansion "size" may have been double
171         incremented as a result.
172         Thanks to Alex Mathews of Crosstor for the fix.
173
174 2000-10-20  Jonathan Larmour  <jlarmour@redhat.com>
175
176         * src/common/serial.c: Include cyg/infra/cyg_ass.h for assertion
177         support since we have assertions here!
178
179 2000-10-12  Jesper Skov  <jskov@redhat.com>
180
181         * tests/ser_test_protocol.inl: Moved most testing parameters into
182         device driver CDL.
183
184         * cdl/io_serial.cdl: Added comment.
185
186 2000-10-06  Jesper Skov  <jskov@redhat.com>
187
188         * src/common/serial.c (serial_rcv_char): Register overruns.
189         
190         * src/common/serial.c: Made block request functions return cause
191         of failure. Necessary for the device driver to be able to
192         fall-back to other transfer method efficiently.
193         * include/serial.h: Added enum with failure types.
194
195 2000-10-03  Jesper Skov  <jskov@redhat.co.uk>
196
197         * tests/ser_test_protocol.inl: Moved testing parameters to device
198         driver CDL for SH targets.
199
200 2000-09-29  Jesper Skov  <jskov@redhat.com>
201
202         * include/serialio.h: Fix compiler warning and errors due to
203         non-default flow control config.
204
205 2000-09-27  Jesper Skov  <jskov@redhat.com>
206
207         * src/common/serial.c (serial_data_rcv_done,
208         serial_data_xmt_done): Buffer pointers updated in _done instead of
209         in _req to avoid race in xmt. Same change in rcv for consistency.
210         * include/serial.h: Changed prototype accordingly.
211
212 2000-09-18  Jesper Skov  <jskov@redhat.com>
213
214         * cdl/io_serial.cdl: Added interfaces to allow test tweaking.
215         * tests/ser_test_protocol.inl: Use interfaces. Moved PID details
216         to PID serial package.
217
218 2000-09-15  Jesper Skov  <jskov@redhat.com>
219
220         * tests/ser_test_protocol.inl: Allow drivers to define testing
221         parameters via CDL.
222
223 2000-09-13  Jesper Skov  <jskov@redhat.com>
224
225         * include/serial.h (SERIAL_CALLBACKS): Fix typo.
226
227 2000-09-06  Jesper Skov  <jskov@redhat.com>
228
229         * tests/ser_test_protocol.inl: Renamed some option names due to SH
230         serial driver reorg.
231
232 2000-08-09  Jonathan Larmour  <jlarmour@redhat.co.uk>
233
234         * src/common/serial.c (serial_indicate_status): Treat flow control
235         case conditionally
236
237 2000-08-08  Jonathan Larmour  <jlarmour@redhat.co.uk>
238
239         * src/common/serial.c (serial_data_rcv_req): Adjust nb in correct
240         direction
241
242 2000-08-04  Jonathan Larmour  <jlarmour@redhat.co.uk>
243
244         * cdl/io_serial.cdl: Default software flow control to on (but keep
245         flow control overall default off)
246
247         * tests/flow1.c (cyg_start): Fix N_A_MSG -> NA_MSG typo
248         * tests/flow2.c (cyg_start): Ditto
249
250 2000-08-03  Jonathan Larmour  <jlarmour@redhat.co.uk>
251
252         * cdl/io_serial.cdl: Should default flow control to off
253
254         * src/common/serial.c (serial_data_xmt_req): Update cbuf->nb
255         (serial_data_rcv_req): Update cbuf->nb
256
257 2000-08-01  Jonathan Larmour  <jlarmour@redhat.co.uk>
258
259         * cdl/io_serial.cdl: Add support for line status queries,
260         software flow control, hardware flow control and POSIX termios
261         * include/serial.h: Likewise. Also change prototype for set_config
262         hardware operations to use keys to be more flexible.
263         * include/serialio.h: Add lots of types and constants to support
264         new line status and flow control config key queries
265         
266         * src/common/haldiag.c (haldiag_set_config): Use keys to be more
267         flexible.
268
269         * src/common/serial.c: Many changes to support software/hardware
270         flow control (with low and high water points), line status and
271         fix some omissions with select. Also fix bugs in block transfer
272         functions resulting from EL/IX merge.
273
274         * tests/flow1.c, tests/flow2.c: New tests for flow control
275
276         * cdl/termios.cdl: Add to configure termios
277         * src/termios.c: Add new POSIX Termios API
278         * src/termiostty.c: Add POSIX Termios tty driver
279
280         * tests/ser_test_protocol.inl (change_config): Add support for
281         hardware and software flow control testing, indicated to the 
282         host by an extra CONFIG argument.
283
284         * tests/serial3.c: Add flow control config
285         * tests/serial5.c: Add flow control config
286
287 2000-07-31  Nick Garnett  <nickg@cygnus.co.uk>
288
289         * src/common/serial.c: Changed BLOCKING control definitions to
290         generic versions.
291
292 2000-07-03  Jesper Skov  <jskov@redhat.com>
293
294         * src/common/serial.c (serial_data_rcv_req): Fix off-by-1 bug.
295
296 2000-06-23  Jesper Skov  <jskov@redhat.com>
297
298         * tests/ser_test_protocol.inl: Added cq7708 definitions.
299
300 2000-06-19  Nick Garnett  <nickg@cygnus.co.uk>
301
302         * include/serial.h:
303         * src/common/serial.c:
304         Added nb field to cbuf_t structure. This keeps track of the number of
305         bytes currently in the buffer. Without this counter, there is no
306         way to distinguish a totally full buffer from one that is totally
307         empty, since in both cases put==get.
308
309 2000-06-15  Nick Garnett  <nickg@cygnus.co.uk>
310
311         * include/serial.h: Added selinfo field to cbuf structure when
312         select support is enabled.
313
314         * src/common/serial.c:
315         * src/common/tty.c:
316         Added select support.
317
318         * cdl/io_serial.cdl: Added CYGPKG_IO_SERIAL_SELECT_SUPPORT to
319         enable select() support. Defaults to on.
320         Also added component for loopback driver.
321
322         * tests/ser_test_protocol.inl: Added test setup for loopback
323         driver.
324
325 2000-05-28  Gary Thomas  <gthomas@redhat.com>
326
327         * tests/ser_test_protocol.inl: Rename NEC V85x drivers.
328
329 2000-05-25  Jesper Skov  <jskov@redhat.com>
330
331         * tests/ser_test_protocol.inl: Added rules for REF4955.
332
333 2000-05-08  Jesper Skov  <jskov@redhat.com>
334
335         * cdl/io_serial.cdl: active_if CYGPKG_IO
336
337 2000-05-05  Jonathan Larmour  <jlarmour@redhat.co.uk>
338
339         * src/common/serial.c (serial_get_config): Tidy below change a little
340
341 2000-05-05  Grant Edwards  <grante@visi.com>
342
343         * src/common/serial.c (serial_get_config): Support
344         CYG_IO_GET_CONFIG_SERIAL_BUFFER_INFO key to get buffer information
345
346         * include/serialio.h: Add cyg_serial_buf_info_t
347
348 2000-05-04  Jesper Skov  <jskov@redhat.com>
349
350         * cdl/io_serial.cdl: Only build tests when drivers enabled.
351
352 2000-05-02  Jesper Skov  <jskov@redhat.com>
353
354         * src/common/serial.c (serial_set_config): Set proper parity for
355         blocking options.
356         (serial_get_config): Fix copy'n'paste buglet.
357         
358 2000-05-01  Jesper Skov  <jskov@redhat.com>
359
360         * src/common/serial.c: Added non-blocking config and operation for
361         read/write calls.
362         Added block transfer rcv/xmt callbacks.
363         Added (disabled for now) check for rcv overflow. [need to add
364         handling]
365         
366         * include/serial.h: Added non-blocking callbacks.
367
368         * cdl/io_serial.cdl: Added non-blocking option. Added block
369         transfer interface.
370
371 2000-04-17  Hugo Tyson  <hmt@cygnus.co.uk>
372
373         * src/PKGconf.mak: remove; it's obsolete.
374
375 2000-04-13  Gary Thomas  <gthomas@redhat.com>
376
377         * src/common/serial.c (serial_write): Make safer - only call
378         'start_xmit' with DSRs disabled.
379
380 2000-04-11  Hugo Tyson  <hmt@cygnus.co.uk>
381
382         * cdl/io_serial.cdl (CYGPKG_IO_SERIAL_DEVICES): New package which
383         is a container and control for the real device drivers.
384
385 2000-04-11  Jesper Skov  <jskov@redhat.com>
386
387         * cdl/io_serial.cdl: Bad hack to build separate test.
388         * tests/serial_echo.c: Added.
389
390 2000-04-11  Hugo Tyson  <hmt@cygnus.co.uk>
391
392         * cdl/ser_.... (driver-specific cdl files):
393         Remove all these; they are no longer needed following the change
394         below.  They do exist in devs/serial/ARCH/PLATFORM/VERSION/cdl/
395         directories various instead.
396
397 2000-04-07  Hugo Tyson  <hmt@cygnus.co.uk>
398
399         * ecos.db: Re-organize device packages.  This is a massive change
400         involving deleting all the sources for serial and ethernet drivers
401         from where they used to live in
402             packages/io/serial/current/src/ARCH/PLATFORM.[ch]
403             packages/net/drivers/eth/PLATFORM/current/src/...
404         and reinstating them in
405             packages/devs/serial/ARCH/PLATFORM/current/src/...
406             packages/devs/eth/ARCH/PLATFORM/current/src/...
407
408         All these new packages are properly defined in ecos.db, and are
409         all of type "hardware" so that a "target" can grab them.
410         
411         This directory layout is descriptive of the devices we have right
412         now, arch and platform are separate levels just to make it easier
413         to navigate in the filesystem and similar to the HAL structure in
414         the filesystem.
415
416         It is *not* prescriptive of future work; for example, the mythical
417         common highly-portable 16550 serial driver which works on many
418         targets would be called "devs/serial/s16550/current", or a serial
419         device for a particular board (cogent springs to mind) that can
420         work with different CPUs fitted is "devs/serial/cogent/current".
421
422         Changelogs have been preserved and replicated over all the new
423         packages, so that no history is lost.
424
425         The contents of individual source files are unchanged; they build
426         in just the same emvironment except for a very few cases where the
427         config file name changed in this movement.
428
429         Targets in ecos.db have been redefined to bring in all relevant
430         hardware packages including net and serial drivers (but the newly
431         included packages are only active if their desired parent is
432         available.)
433         
434         The names of CDL options (and their #defines of course) stay the
435         same for the serial drivers, for backward compatibility.
436
437         * templates/*/current.ect: these have had CYGPKG_IO_SERIAL added
438         rather than it being in (almost) all target definitions.
439         
440 2000-04-07  Jonathan Larmour  <jlarmour@redhat.co.uk>
441
442         * src/common/tty.c (tty_read): Correct handling of modes with newlines
443
444 2000-04-05  Jonathan Larmour  <jlarmour@redhat.co.uk>
445
446         * src/common/tty.c (tty_read): CRLF conversion should use \r\n not \n\r
447         (tty_write): Similarly
448
449         * include/ttyio.h: Update CYG_TTY_IN_FLAGS_CRLF and
450         CYG_TTY_IN_FLAGS_CRLF to match
451
452 2000-03-31  Jesper Skov  <jskov@redhat.com>
453
454         * cdl/ser_sh_edk7708.cdl: Limit legal baud rate range.
455         * src/sh/sh_sci_serial.c: Use baud rate macro instead of hardwired
456         constants.
457
458 2000-03-28  John Dallaway  <jld@cygnus.co.uk>
459
460         * cdl/io_serial.cdl,
461           cdl/ser_arm_aeb.cdl,
462           cdl/ser_arm_cma230.cdl,
463           cdl/ser_arm_edb7xxx.cdl,
464           cdl/ser_arm_pid.cdl,
465           cdl/ser_i386_pc.cdl,
466           cdl/ser_mips_jmr3904.cdl,
467           cdl/ser_mips_vrc4373.cdl,
468           cdl/ser_mn10300.cdl,
469           cdl/ser_powerpc_cogent.cdl,
470           cdl/ser_quicc_smc.cdl,
471           cdl/ser_sh_edk7708.cdl,
472           cdl/ser_sparclite_sleb.cdl,
473           cdl/tty.cdl:
474
475         Adjust documentation URLs.
476
477 2000-03-07  Jesper Skov  <jskov@redhat.com>
478
479         * cdl/ser_mips_jmr3904.cdl: Rename devices to match CDL naming.
480
481 2000-02-29  Jonathan Larmour  <jlarmour@redhat.co.uk>
482
483         * include/serialio.h: Correct baud rate typo: 230400 rather than
484         234000. Thanks to Grant Edwards for the report.
485
486 2000-02-28  Gary Thomas  <gthomas@cygnus.co.uk>
487
488         * src/powerpc/quicc_smc_serial.c: Use standard 'diag_dump_buf()'.
489
490 2000-02-28  Jesper Skov  <jskov@redhat.com>
491
492         * tests/ser_test_protocol.inl: Allow 115200 baud on Cogent
493         again. Fixed interrupt problem.
494
495 2000-02-22  Jesper Skov  <jskov@redhat.com>
496
497         * tests/ser_test_protocol.inl: Don't use 115200 baud on
498         Cogent. Our slower boards can't keep up.
499
500 2000-02-17  Gary Thomas  <gthomas@cygnus.co.uk>
501
502         * cdl/ser_powerpc_cogent.cdl: Fix incorrect dependency.
503
504 2000-02-16  Nick Garnett  <nickg@cygnus.co.uk>
505
506         * include/pkgconf/io_serial.h:
507         Added configury for PC serial device drivers.
508
509         * cdl/ser_i386_pc.cdl:
510         * src/i386/pc_serial.c:
511         * src/i386/pc_serial.h:
512         Added these files to implement PC serial line drivers.
513
514         * cdl/io_serial.cdl:
515         Added CYGPKG_IO_SERIAL_I386_PC.
516
517         * tests/ser_test_protocol.inl:
518         Added support for PC serial line testing.
519         
520 2000-02-11  Jesper Skov  <jskov@redhat.com>
521
522         * src/sh/sh_sci_7708.inl (DEVTAB_ENTRY): 
523         * src/sparclite/sleb_sdtr.c: 
524         serial_devio => cyg_io_serial_devio
525
526 2000-02-10  Jonathan Larmour  <jlarmour@redhat.co.uk>
527
528         * src/mn10300/mn10300_serial.c: Ensure all CYG_HAL_MN10300_*
529         preprocessor conditionals use the correct CYGPKG_HAL_MN10300_AM3* form
530         now.    
531
532 2000-02-03  Jesper Skov  <jskov@redhat.com>
533
534         * src/powerpc/quicc_smc_serial.c: CYG_HAL_POWERPC_x->CYGPKG_...
535
536 2000-02-02  Jonathan Larmour  <jlarmour@redhat.co.uk>
537
538         * src/arm/aeb_serial.h: Rename lower case register macros to REG_ upper
539         case macros
540
541         * src/arm/aeb_serial.c: Update to reflect above
542
543 2000-01-31 Simon FitzMaurice  <sdf@cygnus.co.uk>
544   * cdl/*.cdl:
545
546   Adjust help URLs in line with new doc layout.
547   
548 2000-01-28 Simon FitzMaurice  <sdf@cygnus.co.uk>
549   * cdl/*.cdl:
550
551   Adjust help URLs in line with new doc layout.
552   
553 2000-01-28  Gary Thomas  <gthomas@cygnus.co.uk>
554
555         * src/common/tty.c (tty_read): Fix problem with backspace at start
556         of line (size must be 'signed' for compare to work).
557
558 2000-01-19  Hugo Tyson  <hmt@cygnus.co.uk>
559
560         * cdl/*.cdl: Add descriptions to a number of options &c which were
561         lacking same, also tidied up other typos as noticed en passant.
562
563 2000-01-17  Gary Thomas  <gthomas@cygnus.co.uk>
564
565         * src/common/tty.c (tty_read): Avoid echoing "backspace/erase" at
566         start of line.
567
568 2000-01-05  Gary Thomas  <gthomas@cygnus.co.uk>
569
570         * src/common/serial.c (serial_write): Avoid potential deadlock if
571         transmit start actually sends enough characters to signal cond wait.
572
573 2000-01-03  Gary Thomas  <gthomas@cygnus.co.uk>
574
575         * include/serial.h: Fix namespace pollution - 
576         serial_devio => cyg_io_serial_devio
577         serial_callbacks => cyg_io_serial_callbacks
578
579         * src/mips/tx3904_serial.c: 
580         * src/mips/vrc4373_serial.c: 
581         * src/mn10300/mn10300_serial.c: 
582         * src/powerpc/quicc_smc_serial.c: 
583         * src/powerpc/cogent_serial_with_ints.c: 
584         * src/sparclite/sleb_sdtr.c: 
585         * src/arm/aeb_serial.c: 
586         * src/arm/pid_serial_with_ints.c: 
587         * src/arm/edb7xxx_serial.c: 
588         * src/arm/cma230_serial.c: 
589         * src/arm/ebsa285_serial.c: 
590         * src/common/haldiag.c: 
591         * src/common/serial.c: Fix namespace pollution - 
592         serial_devio => cyg_io_serial_devio
593
594 1999-12-06  Gary Thomas  <gthomas@cygnus.co.uk>
595
596         * src/arm/pid_serial_with_ints.c (pid_serial_DSR): Add loop to handle
597         case where an interrupt represents multiple events.
598
599 1999-11-19  Gary Thomas  <gthomas@cygnus.co.uk>
600
601         * src/powerpc/quicc_smc_serial.c: Channel select for SMC2 was wrong.
602
603 1999-11-18  Gary Thomas  <gthomas@cygnus.co.uk>
604
605         * include/pkgconf/io_serial.h: Remove mention of 7209/7212.
606
607 1999-11-03  John Dallaway  <jld@cygnus.co.uk>
608
609         * cdl/io_serial.cdl: Define build options.
610
611 1999-10-26  Jesper Skov  <jskov@cygnus.co.uk>
612         * tests/serial5.c (serial_test): Reduce speed in thumb mode.
613
614         * src/arm/pid_serial.h: Added BE support.
615
616         * src/PKGconf.mak: Use CYGPKG_<> instead of CYG_<> to control what
617         needs to be compiled.
618
619 1999-10-25  Gary Thomas  <gthomas@cygnus.co.uk>
620
621         * src/arm/pid_serial.h (ISR_RxTO): Define - character received but
622         not handled "promptly".
623
624         * src/arm/pid_serial_with_ints.c (pid_serial_DSR): Handle rcv interrupts
625         properly (can't ignore them even with TO bit set).
626
627         * src/arm/cl7211_serial.c (cl7211_serial_rx_DSR): Need to handle all
628         input (empty input FIFO) otherwise characters get dropped.
629
630 1999-10-15  Jesper Skov  <jskov@cygnus.co.uk>
631
632         * tests/ser_test_protocol.inl: Removed AEB rev C change. Was bogus.
633
634 1999-10-11  Nick Garnett  <nickg@cygnus.co.uk>
635
636         * tests/ser_test_protocol.inl: Added configury for VR4300 testing.
637
638         * src/mips/vrc4373_serial.c: Added Bi-endian support.
639
640         * include/pkgconf/io_serial.h: Adjusted default baud rates to
641         38400.
642
643 1999-10-06  Jesper Skov  <jskov@cygnus.co.uk>
644
645         * tests/ser_test_protocol.inl: Run tests on AEB rev C as well.
646
647 1999-09-28  Hugo Tyson  <hmt@cygnus.co.uk>
648
649         * src/powerpc/quicc_smc_serial.c (quicc_smc_serial_init): Correct
650         value supplied for interrupt priority - it may be unused, but it
651         is asserted for range.  Initialize the diagnostic channel if on an
652         MBX and if NOT using SMC1 ourselves, to ensure that diag output
653         and built-in stubs work correctly; otherwise reset the quicc and
654         ignore SMC1 as before.  Fix various warnings, mostly about
655         casting/arg-passing/assigning away volatile.
656
657 1999-08-31  Jesper Skov  <jskov@cygnus.co.uk>
658
659         * tests/ser_test_protocol.inl: Define dummy crash ID.
660
661 1999-08-30  Jesper Skov  <jskov@cygnus.co.uk>
662
663         * tests/ser_test_protocol.inl: Added crash information which
664         should help track down repeating errors.
665
666 1999-08-20  Jesper Skov  <jskov@cygnus.co.uk>
667
668         * tests/README: Added.
669
670 1999-08-18  Jesper Skov  <jskov@cygnus.co.uk>
671
672         * tests/tty1.c: 
673         * tests/tty2.c: 
674         * tests/serial1.c: 
675         * tests/serial2.c: 
676         * tests/serial3.c: 
677         * tests/serial4.c: 
678         * tests/serial5.c: 
679         * tests/PKGconf.mak:
680         Require kernel and kernel C API.
681         
682 1999-08-17  Nick Garnett  <nickg@cygnus.co.uk>
683
684         * src/mn10300/mn10300_serial.c: Added a simple implementation of a
685         receive FIFO to try and reduce the overhead of receiving bytes.
686
687 1999-08-16  Jonathan Larmour  <jlarmour@cygnus.co.uk>
688
689         * src/PKGconf.mak:
690         * src/mn10300/mn10300_serial.c:
691         * tests/ser_test_protocol.inl:
692         Rename all am32 -> am31
693
694 1999-08-12  Nick Garnett  <nickg@cygnus.co.uk>
695
696         Imported following changes from development branch:
697         
698     1999-08-11  Nick Garnett  <nickg@cygnus.co.uk>
699
700         * tests/serial5.c: Modified config test for boards that need a lower
701         speed for this test.
702
703         * tests/ser_test_protocol.inl: Removed 14400 baud tests for all
704         MN10300 variants. The MN10300 cannot currently do this speed.
705
706         * src/mn10300/mn10300_serial.c: Tidied up the transmit interrupt
707         enable/disable code to be variant specific.
708
709         * include/pkgconf/io_serial.h: Undid Jonathan's change, since the
710         same options are used for all MN10300 variants.
711         
712     1999-08-10  Jonathan Larmour  <jlarmour@cygnus.co.uk>
713
714         * include/pkgconf/io_serial.h:
715         Reparent CYGPKG_IO_SERIAL_MN10300 from under CYGPKG_HAL_MN10300 to
716         CYGPKG_HAL_MN10300_AM32_STDEVAL1 since it's stdeval1 specific
717
718     1999-08-04  Nick Garnett  <nickg@cygnus.co.uk>
719
720         * tests/ser_test_protocol.inl:
721         Changed names of MN10300 defines tested. Added AM33 definitions.
722
723         * src/mn10300/mn10300_serial.c:
724         Modified driver to work on am33 too. This simply requires some
725         alternate definitions of things like register addresses and some
726         bits in them plus some extra parameterization of some register
727         values.
728
729         * src/PKGconf.mak:
730         Added am33 to list of architectures supporting serial lines.
731         
732 1999-07-28  Gary Thomas  <gthomas@cygnus.co.uk>
733
734         * include/pkgconf/io_serial.h: Update descriptions to be more
735         generic (CL7x11 instead of CL7211).
736
737 1999-07-28  Jonathan Larmour  <jlarmour@cygnus.co.uk>
738
739         * include/pkgconf/io_serial.h: Correct typos in CDL description
740         for serial port 2 driver
741
742 1999-07-26  Hugo Tyson  <hmt@cygnus.co.uk>
743
744         * src/arm/ebsa285_serial.c: New file: device driver for the serial
745         device of the Intel StrongARM EBSA-285 evaluation board.
746
747         * include/pkgconf/io_serial.h (CYGPKG_IO_SERIAL_ARM_EBSA285):
748         Config for it.
749
750         * src/PKGconf.mak (EXTRAS_COMPILE): Compile it.
751
752         * tests/ser_test_protocol.inl (TEST_SER_DEV): Enable testing of it.
753
754 1999-07-08  Jesper Skov  <jskov@cygnus.co.uk>
755
756         * tests/ser_test_protocol.inl (change_config): Changed implementation.
757
758 1999-06-27  Gary Thomas  <gthomas@cygnus.co.uk>
759
760         * src/powerpc/quicc_smc_serial.c (quicc_smc_serial_init): More robust
761         initialization, with data cache disabled.  This seems to fix the
762         random failures described below.
763
764         * tests/ser_test_protocol.inl: Add configuration for QUICC/MBX860.
765         Added some delays in the configuration change code to make QUICC
766         happy [didn't help much although the manual says they are required].
767
768         * src/powerpc/quicc_smc_serial.h (UART_BITRATE): Rewrote macro to 
769         match what the Linux driver uses - still doesn't work well, though.
770
771         * src/powerpc/quicc_smc_serial.c: Lots of changes trying to get the
772         serial driver working and robust.  At this point it works quite well,
773         using the default buffer sizes.  Changing from the defaults seem to
774         easily break it though, certainly on input.  Also, changing the baud
775         rate seems to not work reliably.
776
777         * src/common/serial.c: Add some tracing/debug info to try and debug
778         problems with QUICC serial driver.  These are hard disabled with
779         "XX_" prepended to "CYGDBG_DIAG_BUF".  Enabling them gives information
780         about how/when data are delivered from the serial driver.
781
782         * include/pkgconf/io_serial.h: Adjust limits and defaults on number and
783         size of buffers with values that seem to work.
784
785 1999-06-21  Jesper Skov  <jskov@cygnus.co.uk>
786
787         * src/sh/sh_sci_serial.c: Rearranged inclusion of .inl file a bit
788         to avoid compiler warnings.
789
790 1999-06-21  Gary Thomas  <gthomas@cygnus.co.uk>
791
792         * include/pkgconf/io_serial.h: Fix CDL for number of buffers.
793
794         * src/powerpc/quicc_smc_serial.c: Force number of buffers = 1.
795
796 1999-06-20  Gary Thomas  <gthomas@cygnus.co.uk>
797
798         * include/pkgconf/io_serial.h: Some clean up (removed commented
799         obsolete CDL parenting structure).
800         Add support for Motorola PowerPC QUICC/SMC.
801
802         * src/arm/cma230_serial.c: 
803         * src/arm/cl7211_serial.c: 
804         * src/arm/aeb_serial.c: 
805         * src/arm/pid_serial_with_ints.c: Use #include to get 'diag_printf()'
806         prototypes.
807
808 1999-06-17  Gary Thomas  <gthomas@cygnus.co.uk>
809
810         * src/arm/cl7211_serial.c (cl7211_serial_start_xmit): Fix race which
811         cause xmitter to get stuck.
812
813 1999-06-16  Jesper Skov  <jskov@cygnus.co.uk>
814
815         * src/sh/sh_serial.c:          [removed]
816         * src/sh/sh_sci_serial.c:      [added]
817         * src/sh/sh_sci_7708.inl:      [added]
818         * include/pkgconf/io_serial.h: 
819         * src/PKGconf.mak (EXTRAS_COMPILE): 
820         * tests/ser_test_protocol.inl: 
821         Renamed CDL options and restructered driver.
822         Fixed CDL typo.
823         
824 1999-06-04  Jesper Skov  <jskov@cygnus.co.uk>
825
826         * include/pkgconf/io_serial.h: Fixed CDL string for BAUD rate option.
827
828 1999-06-04  Gary Thomas  <gthomas@cygnus.co.uk>
829
830         * tests/ser_test_protocol.inl: Disable testing at 115200
831         for Cogent CMA230 (ARM).
832
833         * src/arm/cma230_serial.c: Fix interrupt for port B.
834
835 1999-05-31  Jesper Skov  <jskov@cygnus.co.uk>
836
837         * src/sh/sh_serial.c: Fixed receive interrupts and added handler for
838         error interrupts.
839
840 1999-05-28  Jesper Skov  <jskov@cygnus.co.uk>
841
842         * io/serial/current/src/PKGconf.mak:
843         * io/serial/current/tests/ser_test_protocol.inl:
844         * include/pkgconf/io_serial.h: 
845         Renamed SH platform package to edk7708.
846
847 1999-05-27  Jesper Skov  <jskov@cygnus.co.uk>
848
849         * tests/ser_test_protocol.inl: Added ability to change options in
850         host software.
851
852 1999-05-27  Jonathan Larmour  <jlarmour@cygnus.co.uk>
853
854         * src/mn10300/mn10300_serial.c (mn10300_serial_config_port): 
855         Wait for the serial device to become acquiescent before disabling
856         it. This prevents cygmon's outgoing characters getting corrupted
857         due to transmission being disabled.
858         Fix for PR 20047
859         
860 1999-05-26  Gary Thomas  <gthomas@cygnus.co.uk>
861
862         * include/pkgconf/io_serial.h: 
863         * tests/ser_test_protocol.inl: Add Cogent CMA230 setup.
864         
865         * src/arm/cma230_serial.c: Make names compatible with Cogent
866         PowerPC board.
867
868 1999-05-26  Gary Thomas  <gthomas@cygnus.co.uk>
869
870         * tests/ser_test_protocol.inl: Add Cirrus Logic CL7211 setup.
871 1999-05-26  Jesper Skov  <jskov@cygnus.co.uk>
872
873         * src/sh/sh_serial.c: Added more baud rate values. Disabled
874         interrupt driven receive. Fixed config_port to enable proper
875         interrupt flags.
876
877 1999-05-25  Jonathan Larmour  <jlarmour@cygnus.co.uk>
878
879         * tests/ser_test_protocol.inl: 
880         Change all mentions of CYGPKG_HAL_TX39_JMR3904 to
881         CYGPKG_HAL_MIPS_TX39_JMR3904
882
883 1999-05-25  Jonathan Larmour  <jlarmour@cygnus.co.uk>
884
885         * src/PKGconf.mak (EXTRAS_COMPILE): Change CYG_HAL_TX39 to
886         CYG_HAL_MIPS_TX39
887 1999-05-25  Jesper Skov  <jskov@cygnus.co.uk>
888
889         * tests/ser_test_protocol.inl: Added sh entry.
890
891 1999-05-24  Jesper Skov  <jskov@cygnus.co.uk>
892
893         * src/PKGconf.mak:
894         * include/pkgconf/io_serial.h: 
895         * src/sh/sh_serial.c: 
896         Added sh driver.
897
898 1999-05-18  Jesper Skov  <jskov@cygnus.co.uk>
899         PR 19926
900         * src/sparclite/sleb_sdtr.c (sleb_sdtr_rx_DSR): Only read chan if
901         there is one.
902
903 1999-05-18  Jesper Skov  <jskov@cygnus.co.uk>
904         PR 19926
905         * src/arm/cl7211_serial.c (cl7211_serial_rx_DSR): Only read char
906         if there is one.
907
908 1999-05-16  Gary Thomas  <gthomas@cygnus.co.uk>
909
910         * src/arm/cl7211_serial.c: Clean up, first working version.
911
912 1999-05-14  Jesper Skov  <jskov@cygnus.co.uk>
913
914         * tests/ser_test_protocol.inl: Removed workaround for spurious
915         Cogent reads.
916
917         * src/arm/aeb_serial.c:
918         * src/arm/aeb_serial.h: 
919         * src/arm/pid_serial_with_ints.c: 
920         * src/arm/pid_serial.h: 
921         * src/powerpc/cogent_serial.h: 
922         * src/powerpc/cogent_serial_with_ints.c:
923         Check for receive interrupt before reading.
924
925 1999-05-13  Nick Garnett  <nickg@cygnus.co.uk>
926
927         The follow changes were made in a branch an have now been merged:
928
929     1999-04-21  Gary Thomas  <gthomas@cygnus.co.uk>
930
931         * src/mips/vrc4373_serial.c: Small changes to get working with
932         interrupts.
933         
934     1999-04-20  John Dallaway  <jld@cygnus.co.uk>
935
936         * include/pkgconf/io_serial.h: Fix CYGPKG_IO_SERIAL_TX39_JMR3904
937         parent attribute.
938
939 1999-05-11  Gary Thomas  <gthomas@cygnus.co.uk>
940
941         * src/arm/cl7211_serial.c: Fix compile problems from merged code.
942
943 1999-05-05  Jesper Skov  <jskov@cygnus.co.uk>
944
945         * tests/ser_test_protocol.inl: Tidied up a bit and added
946         description of protocol.
947
948 1999-05-05  Jesper Skov  <jskov@cygnus.co.uk>
949
950         * src/common/serial.c (serial_write, serial_read): Clear abort
951         flag at entry.
952
953 1999-05-05  Jesper Skov  <jskov@cygnus.co.uk>
954
955         * tests/serial4.c (serial_test): Handle config fails correctly.
956
957         * tests/ser_test_protocol.inl: Better change_config
958         handling. Simple recovery and negotiation isn't timing
959         dependant. 
960
961 1999-05-05  Jesper Skov  <jskov@cygnus.co.uk>
962
963         * tests/timeout.inl: Updated with the below changes.
964
965 1999-05-05  Gary Thomas  <gthomas@cygnus.co.uk>
966
967         * misc/timeout.inl (timeout): Timeouts are relative, but alarms 
968         need absolute time values.
969
970 1999-05-04  Jesper Skov  <jskov@cygnus.co.uk>
971         PR 20018
972         * tests/serial1.c (serial_test): Always PASS, regardless of
973         configuration.
974
975 1999-05-04  Jesper Skov  <jskov@cygnus.co.uk>
976
977         * tests/ser_test_protocol.inl: Reverse order of configurations -
978         run tests with slow baud rate first.
979         Only check CYG_KERNEL_DIAG_GDB_SERIAL_DIRECT for SLEB on RAM startup.
980
981 1999-05-04  Jesper Skov  <jskov@cygnus.co.uk>
982         * src/mn10300/mn10300_serial.c:
983         Use interrupt enable/disable feature of serial port2 to allow
984         coexistence with CygMon/hal_diag.
985  
986         * tests/ser_test_protocol.inl: Use port2 for MN10300.
987
988 1999-04-28  Bart Veer  <bartv@cygnus.co.uk>
989
990         * src/PKGconf.mak (EXTRAS_COMPILE):
991         Use the new rules for generating libextras.a
992
993 1999-04-26  Gary Thomas  <gthomas@cygnus.co.uk>
994
995         * include/pkgconf/io_serial.h: Add support for Cirrus Logic CL7211.
996
997
998 1999-04-20  Gary Thomas  <gthomas@cygnus.co.uk>
999
1000         * src/arm/aeb_serial.c: 
1001         * src/arm/pid_serial_with_ints.c: Fix default baud rate if unbuffered.
1002 1999-04-20  Jesper Skov  <jskov@cygnus.co.uk>
1003
1004         * tests/ser_test_protocol.inl: Added some comments. Disabled 38400
1005         for SLEB. Only run test on SLEB if CygMon isn't used for diag
1006         output.
1007         
1008 1999-04-15  Jesper Skov  <jskov@cygnus.co.uk>
1009         PR 19752
1010         * tests/serial3.c:
1011         * tests/serial5.c:
1012         Run these tests at a lower baud rate on ARM AEB.
1013         
1014 1999-04-14  Jesper Skov  <jskov@cygnus.co.uk>
1015         PR 19839
1016         * src/mn10300/mn10300_serial.c: 
1017         Fix compiler warnings.
1018
1019 1999-04-14  Bart Veer  <bartv@cygnus.co.uk>
1020
1021         * include/pkgconf/io_serial.h:
1022         Reparent the board-specific serial devices below the actual boards.
1023         
1024 1999-04-13  Jesper Skov  <jskov@cygnus.co.uk>
1025
1026         * tests/ser_test_protocol.inl:
1027         NA when run from simulator.
1028
1029 1999-04-12  Jesper Skov  <jskov@cygnus.co.uk>
1030
1031         * tests/ser_test_protocol.inl:
1032         Disabled 115200 for MN10300.
1033         Reclaim interrupt vectors from CygMon when testing on SLEB.
1034
1035 1999-04-09  Gary Thomas  <gthomas@cygnus.co.uk>
1036
1037         * include/serial.h: Change SERIAL_CHANNEL setup so all channels
1038         have serial callbacks, regardless of buffering.
1039
1040 1999-04-09  Jesper Skov  <jskov@cygnus.co.uk>
1041
1042         * src/common/tty.c: 
1043         * include/pkgconf/io_serial.h:
1044         Added new ttydiag device layered on top of haldiag, so that tty0
1045         can be layered on top of ser0.
1046
1047 1999-04-08  Jesper Skov  <jskov@cygnus.co.uk>
1048
1049         * tests/tty1.c:                [added]
1050         * tests/tty2.c:                [added]
1051         * tests/PKGconf.mak: 
1052         * tests/ser_test_protocol.inl:
1053         Added two simple TTY tests.
1054
1055 1999-04-07  Hugo Tyson  <hmt@cygnus.co.uk>
1056
1057         * src/sparclite/sleb_sdtr.h: Include cyg/hal/hal_io.h for I/O
1058         macros instead of hal_diag.h where they had evolved before.
1059
1060 1999-04-06  Jesper Skov  <jskov@cygnus.co.uk>
1061
1062         * tests/serial4.c (serial_test): 
1063         * tests/serial3.c (serial_test): 
1064         Reduce packet sizes.
1065
1066 1999-03-31  Jesper Skov  <jskov@cygnus.co.uk>
1067
1068         * tests/ser_test_protocol.inl: Added remaining targets to the
1069         test.
1070
1071 1999-03-31  Gary Thomas  <gthomas@cygnus.co.uk>
1072
1073         * src/sparclite/sleb_sdtr.c (sleb_sdtr_start_xmit): Fix timing race
1074         when enabling xmit interrupts.
1075
1076 1999-03-26  Gary Thomas  <gthomas@cygnus.co.uk>
1077
1078         * src/sparclite/sleb_sdtr.c: Change how the port is set up.  The transmitter
1079         is now always enabled, just the interrupts are masked/unmasked to control it.
1080         This lets the serial driver cooperate with Cygmon on the port used for GDB.
1081         Note that currently serial input does not work for CON1 since Cygmon is
1082         taking all of the receive interrupts for itself.
1083         (sleb_sdtr_tx_DSR): Need to keep track whether xmit interrupt should be
1084         enabled - otherwise it can get enabled incorrectly and we get interrupted
1085         to death!
1086
1087 1999-03-26  Jesper Skov  <jskov@cygnus.co.uk>
1088
1089         * tests/ser_test_protocol.inl: Send a DONE message after a no-echo
1090         binary packet.
1091
1092 1999-03-26  Hugo Tyson  <hmt@cygnus.co.uk>
1093
1094         * tests/serial5.c: 
1095         * tests/serial4.c:
1096         * tests/serial3.c:
1097         * tests/serial2.c:
1098         * tests/serial1.c:
1099         Make these build when no kernel present; include of testcase
1100         was the wrong side of the ifdef.
1101
1102 1999-03-26  Jesper Skov  <jskov@cygnus.co.uk>
1103
1104         * tests/serial5.c:
1105         * tests/serial4.c:
1106         * tests/serial3.c:
1107         * tests/serial2.c:
1108         * tests/serial1.c:
1109         Moved NOP check to ser_test_protocol open call.
1110         
1111         * tests/ser_test_protocol.inl: Make sure the proper device is
1112         selected for testing. Do NOP check in open call.
1113
1114 1999-03-25  Gary Thomas  <gthomas@cygnus.co.uk>
1115
1116         * include/pkgconf/io_serial.h: 
1117         * misc/console.c: 
1118         * src/arm/aeb_serial.c: 
1119         * src/arm/pid_serial_with_ints.c: 
1120         * src/common/tty.c: 
1121         * src/mips/tx3904_serial.c: 
1122         * src/mn10300/mn10300_serial.c: 
1123         * src/powerpc/cogent_serial_with_ints.c: 
1124         * src/sparclite/sleb_sdtr.c: Update CDL to follow naming conventions.
1125
1126         * src/mips/tx3904_serial.c (tx3904_serial_config_port): 
1127         Make sure port is enabled (CDL) before using it.
1128
1129         * src/mn10300/mn10300_serial.c (mn10300_serial_config_port): 
1130         * src/powerpc/cogent_serial_with_ints.c (cogent_serial_config_port): 
1131         * src/arm/aeb_serial.c (aeb_serial_config_port): 
1132         * src/arm/pid_serial_with_ints.c (pid_serial_config_port): Change so that
1133         the physical port is not modified unless the provided configuration is valid.
1134
1135         * src/sparclite/sleb_sdtr.c (sleb_sdtr_config_port): 
1136         Using wrong config data.
1137
1138         * include/serialio.h: Add macros to support baud rate from CDL.
1139
1140         * include/pkgconf/io_serial.h: 
1141         * src/mn10300/mn10300_serial.c: 
1142         * src/mips/tx3904_serial.c (tx3904_serial_ISR): 
1143         * src/sparclite/sleb_sdtr.c: 
1144         * src/powerpc/cogent_serial_with_ints.c: 
1145         * src/arm/pid_serial_with_ints.c: 
1146         * src/arm/aeb_serial.c: Add configury for baud rate and buffer size.
1147
1148 1999-03-24  Nick Garnett  <nickg@cygnus.co.uk>
1149
1150         * src/mips/tx3904_serial.c:
1151         Now uses CYGHWR_HAL_MIPS_CPU_FREQ_ACTUAL to get CPU
1152         frequency. This is a little more accurate than using
1153         CYGHWR_HAL_MIPS_CPU_FREQ.
1154
1155 1999-03-24  Gary Thomas  <gthomas@cygnus.co.uk>
1156
1157         * include/serialio.h (CYGNUM_SERIAL_BAUD_MIN/MAX): Add for completeness.
1158
1159         * src/arm/aeb_serial.c (aeb_serial_stop_xmit): 
1160         * src/arm/pid_serial_with_ints.c (pid_serial_stop_xmit): Fix typo in comment.
1161
1162 1999-03-24  Jesper Skov  <jskov@cygnus.co.uk>
1163
1164         * tests/ser_test_protocol.inl: Weeded out configs TX39 doesn't
1165         like.
1166
1167         * src/powerpc/cogent_serial.h: 
1168         Added copyright header.
1169         
1170         * tests/ser_test_protocol.inl: 
1171         * tests/serial1.c: 
1172         * tests/serial2.c: 
1173         * tests/serial3.c: 
1174         * tests/serial4.c: 
1175         * tests/serial5.c: 
1176         Don't try to run tests when no IO device has been specified.
1177         
1178 1999-03-23  Jesper Skov  <jskov@cygnus.co.uk>
1179
1180         * misc/serial1.c, misc/serial2.c, misc/serial3.c, misc/serial4.c,
1181         * misc/serial5.c, misc/ser_test_protocol.inl
1182         Deleted.
1183
1184 1999-03-23  Jesper Skov  <jskov@cygnus.co.uk>
1185
1186         * misc/PKGconf.mak: 
1187         * tests/timeout.inl: 
1188         * tests/PKGconf.mak:
1189         * tests/serial1.c: 
1190         * tests/serial2.c: 
1191         * tests/serial3.c: 
1192         * tests/serial4.c: 
1193         * tests/serial5.c: 
1194         * tests/ser_test_protocol.inl:
1195         Moved the serial tests from the misc directory to the tests
1196         directory.
1197
1198 1999-03-23  Nick Garnett  <nickg@cygnus.co.uk>
1199
1200         * src/mn10300/mn10300_serial.c: Now initially mask TX interrupts
1201         at initialization and unmask/remask in start/stop xmit
1202         routines. This has no real effect on the hardware, but the
1203         simulator does not implement the LCR_TXE bit properly, resulting
1204         in spurious TX interrupts during diagnostic output.
1205         This was the cause of the slow output reported in PR 19559.
1206
1207 1999-03-23  Gary Thomas  <gthomas@cygnus.co.uk>
1208
1209         * include/pkgconf/io_serial.h: Fix "display" strings to have appropriate
1210         case - mostly lower case.
1211
1212 1999-03-22  Hugo Tyson  <hmt@cygnus.co.uk>
1213
1214         * misc/console.c: 
1215         * misc/serial.c: 
1216         * misc/serial1.c: 
1217         * misc/serial2.c: 
1218         * misc/serial3.c: 
1219         * misc/serial4.c: 
1220         * misc/serial5.c: 
1221         Use CYGNUM_HAL_STACK_SIZE_TYPICAL for the stack size instead of
1222         CYGNUM_HAL_MINIMUM_STACK_SIZE.
1223
1224 1999-03-22  Gary Thomas  <gthomas@cygnus.co.uk>
1225
1226         * src/mn10300/mn10300_serial.c: 
1227         * src/mips/tx3904_serial.c: Add CDL configury.
1228
1229         * include/pkgconf/io_serial.h: Update CDL to add device name
1230         configurability for all devices.
1231
1232         * src/sparclite/sleb_sdtr.c: 
1233         * src/powerpc/cogent_serial_with_ints.c: 
1234         * src/arm/aeb_serial.c: 
1235         * src/arm/pid_serial_with_ints.c: Use CDL configured device names.
1236
1237 1999-03-22  Jesper Skov  <jskov@lassi.cygnus.co.uk>
1238
1239         * misc/serial1.c:
1240         * misc/serial2.c:
1241         * misc/serial3.c:
1242         * misc/serial4.c:
1243         * misc/serial5.c:
1244         Requires kernel as well.
1245
1246 1999-03-22  Jesper Skov  <jskov@cygnus.co.uk>
1247
1248         * src/sparclite/sleb_sdtr.c:
1249         Moved include statement to avoid warnings.
1250
1251 1999-03-19  Jesper Skov  <jskov@cygnus.co.uk>
1252
1253         * misc/ser_test_protocol.inl:
1254         * misc/serial5.c:
1255         * misc/PKGconf.mak:
1256         Replace complex and not very stable duplex test with a simpler
1257         test that works better.
1258         Added serial5 using that test.
1259         
1260 1999-03-19  Jesper Skov  <jskov@cygnus.co.uk>
1261
1262         * misc/PKGconf.mak:
1263         * misc/serial1.c:
1264         * misc/serial2.c: 
1265         Added API test and made serial2 do simple string output.
1266         
1267 1999-03-19  Jesper Skov  <jskov@cygnus.co.uk>
1268
1269         * src/powerpc/cogent_serial_with_ints.c: Changed ToDo comment.
1270
1271 1999-03-19  Jesper Skov  <jskov@lassi.cygnus.co.uk>
1272
1273         * src/powerpc/cogent_serial_with_ints.c: 
1274         * src/arm/aeb_serial.c: 
1275         * src/arm/pid_serial_with_ints.c: 
1276         Moved include statement to avoid warnings.
1277
1278 1999-03-19  Gary Thomas  <gthomas@cygnus.co.uk>
1279
1280         * include/pkgconf/io_serial.h: More CDL problems.
1281
1282 1999-03-18  Gary Thomas  <gthomas@cygnus.co.uk>
1283
1284         * include/pkgconf/io_serial.h: Add CDL for SPARClite SLEB.
1285
1286         * src/powerpc/cogent_serial_with_ints.c: 
1287         * src/arm/pid_serial_with_ints.c: 
1288         * src/arm/aeb_serial.c: Update device names to match CDL.
1289
1290         * include/pkgconf/io_serial.h: Change names for serial ports to
1291         be CYGPKG_IO_SERIAL_<arch>_<platform>_<port>.
1292
1293 1999-03-18  Jesper Skov  <jskov@cygnus.co.uk>
1294
1295         * misc/ser_test_protocol.inl: 
1296         * misc/serial2.c: 
1297         First stab at the duplex binary test. Still much fun to be had...
1298
1299 1999-03-18  Jesper Skov  <jskov@cygnus.co.uk>
1300
1301         * misc/ser_test_protocol.inl: Added timeout for PING.
1302
1303 1999-03-18  Gary Thomas  <gthomas@cygnus.co.uk>
1304
1305         * src/common/serial.c: Change ABORT functionality to be DSR safe.
1306         (serial_get_config): Fix typo!
1307
1308         * include/pkgconf/io_serial.h: Small change in CDL to make serial
1309         devices tied to the platform and not the serial I/O package.  This
1310         means that only the devices appropriate to a given platform can be
1311         enabled.
1312
1313         * misc/serial.c: Better use of alarms - only trigger at the time of
1314         the next timeout.  Moved timeout functions to new file "timeout.inl".
1315
1316         * src/common/serial.c (serial_get_config): Add support for
1317         CYG_IO_GET_CONFIG_SERIAL_INPUT_FLUSH and CYG_IO_GET_CONFIG_SERIAL_ABORT.
1318         
1319         * misc/serial.c: Add simple timeout mechanisms.
1320
1321 1999-03-17  Gary Thomas  <gthomas@cygnus.co.uk>
1322
1323         * src/powerpc/cogent_serial_with_ints.c: 
1324         * src/arm/aeb_serial.c: 
1325         * src/arm/pid_serial_with_ints.c: Conditionalize based on CDL.
1326
1327         * include/pkgconf/io_serial.h: Add some CDL configury - not perfect
1328         because of current ~CDL limitations.
1329
1330 1999-03-17  Jesper Skov  <jskov@cygnus.co.uk>
1331
1332         * misc/serial2.c: Cleaned up a bit. Used for hacking new tests.
1333
1334 1999-03-17  Jesper Skov  <jskov@cygnus.co.uk>
1335
1336         * misc/PKGconf.mak: 
1337         * misc/ser_test_protocol.inl:
1338         * misc/serial2.c:
1339         * misc/serial3.c:
1340         * misc/serial4.c:
1341         Put testing protocol implementation in a separate file. Split the
1342         tests in serial2 into separate files.
1343
1344 1999-03-16  Nick Garnett  <nickg@cygnus.co.uk>
1345
1346         * src/mn10300/mn10300_serial.c: Fixed some compiler warnings.
1347
1348 1999-03-15  Gary Thomas  <gthomas@cygnus.co.uk>
1349
1350         * include/pkgconf/io_serial.h: Change default configurations.
1351         No serial drivers enabled for PID port A or AEB.
1352
1353         * src/sparclite/sleb_sdtr.c: 
1354         * src/powerpc/cogent_serial_with_ints.c: 
1355         * src/arm/aeb_serial.c: 
1356         * src/arm/pid_serial_with_ints.c: 
1357         * src/common/haldiag.c: 
1358         * src/common/tty.c: 
1359         * src/common/serial.c: Add 'CYGDBG_IO_INIT' for control of init 
1360         messages.
1361
1362         * src/powerpc/cogent_serial_with_ints.c: 
1363         * src/sparclite/sleb_sdtr.c:
1364         * src/arm/aeb_serial.c: 
1365         * src/arm/pid_serial_with_ints.c: Don't include <cyg/kernel/kapi.h>
1366
1367 1999-03-15  Jesper Skov  <jskov@cygnus.co.uk>
1368
1369         * misc/serial2.c (serial_test): Fix use of strlen. Fix DONE part
1370         of binary protocol.
1371
1372 1999-03-12  Jesper Skov  <jskov@cygnus.co.uk>
1373
1374         * misc/serial2.c: Play a bit with timing. Think I broke it :(
1375         Added DONE to BINARY packet.
1376         Proper call to DRAIN.
1377
1378 1999-03-12  Nick Garnett  <nickg@cygnus.co.uk>
1379
1380         * src/mips/tx3904_serial.c: Tidied away some debugging code.
1381
1382 1999-03-12  Jesper Skov  <jskov@cygnus.co.uk>
1383
1384         * misc/serial2.c: Removed bogus config changes.
1385
1386 1999-03-12  Jesper Skov  <jskov@cygnus.co.uk>
1387
1388         * misc/serial2.c (serial_test): Check for ser_filter on host (PING
1389         packet).
1390
1391 1999-03-11  Jesper Skov  <jskov@cygnus.co.uk>
1392
1393         * src/powerpc/cogent_serial_with_ints.c: Added note.
1394
1395         * misc/serial2.c: 
1396         Added (almost) proper configuration handling.
1397         Run tests on varying configurations.
1398
1399 1999-03-11  Nick Garnett  <nickg@cygnus.co.uk>
1400
1401         * src/mips/tx3904_serial.c:
1402         Many changes to get working.
1403
1404         * misc/console.c (console_test): Fixed compiler warning.
1405
1406         * misc/serial2.c:
1407         Added device name for TX39 testing.
1408         Fixed some bugs in Tcyg_io_write() macro.
1409
1410 1999-03-10  Jesper Skov  <jskov@cygnus.co.uk>
1411
1412         * misc/serial2.c: Added target specific test device name.
1413
1414 1999-03-10  John Dallaway  <jld@cygnus.co.uk>
1415
1416         * include/pkgconf/io_serial.h: Correct CDL description spelling.
1417
1418 1999-03-10  Jesper Skov  <jskov@cygnus.co.uk>
1419
1420         * src/powerpc/cogent_serial_with_ints.c: 
1421         * misc/console.c: 
1422         Fixed compiler warnings.
1423
1424 1999-03-10  Gary Thomas  <gthomas@cygnus.co.uk>
1425
1426         * include/pkgconf/io_serial.h: Improve CDL descriptions.
1427
1428 1999-03-10  Jesper Skov  <jskov@cygnus.co.uk>
1429
1430         * misc/serial2.c (serial_test): Do some more tests with changed
1431         baud rates.
1432
1433 1999-03-09  Jesper Skov  <jskov@cygnus.co.uk>
1434
1435         * misc/serial2.c (serial_test): Added workaround for spurious byte
1436         problem. Added a few more tests to run.
1437
1438         * src/powerpc/cogent_serial_with_ints.c
1439         (cogent_serial_config_port): Remove interrupt enabling.
1440
1441 1999-03-09  Nick Garnett  <nickg@cygnus.co.uk>
1442
1443         * src/PKGconf.mak: 
1444         * src/mips/tx3904_serial.c:
1445         Added initial version of TX39 device driver. Currently untested
1446         but eliminates PR19445.
1447
1448 1999-03-09  Jesper Skov  <jskov@cygnus.co.uk>
1449
1450         * misc/serial2.c: DRAIN function works now.
1451
1452 1999-03-09  Jesper Skov  <jskov@cygnus.co.uk>
1453
1454         * include/pkgconf/io_serial.h: Only enable one serial driver per
1455         default.
1456
1457 1999-03-08  Jesper Skov  <jskov@cygnus.co.uk>
1458
1459         * misc/serial2.c (serial_test): Be a bit more aggressive.
1460
1461         * src/powerpc/cogent_serial_with_ints.c: Check that configuration
1462         is sensible.
1463
1464 1999-03-08  Jesper Skov  <jskov@cygnus.co.uk>
1465
1466         * src/powerpc/cogent_serial_with_ints.c: 
1467         Added support for both ports.
1468
1469         * include/pkgconf/io_serial.h: Added simple defines for cogent
1470         serial ports. No CDL yet.
1471
1472 1999-03-08  Jesper Skov  <jskov@cygnus.co.uk>
1473
1474         * misc/serial.c: Removed PID references. Fixed compiler warnings.
1475
1476 1999-03-08  Jesper Skov  <jskov@cygnus.co.uk>
1477
1478         * src/powerpc/cogent_serial_with_ints.c: Cleaned up a
1479         bit. Actually works now.
1480
1481 1999-03-08  Gary Thomas  <gthomas@cygnus.co.uk>
1482
1483         * src/common/serial.c: Change in cyg_drv_cond_wait() behaviour
1484         means DSR lock should be left alone.
1485
1486 1999-03-08  Jesper Skov  <jskov@cygnus.co.uk>
1487         PR 19400
1488         * src/powerpc/cogent_serial_with_ints.c (cogent_serial_init): Set
1489         valid interrupt priority.
1490
1491 1999-03-05  Nick Garnett  <nickg@cygnus.co.uk>
1492
1493         * src/mn10300/mn10300_serial.c (mn10300_serial_init):
1494         Added extra test to avoid initializing serial 2 when CYGMON is
1495         present.
1496         Include hal_intr.h explicitly for use in non-kernel
1497         configurations.
1498
1499         * src/common/serial.c:
1500         Added extra test before calls to cyg_drv_cond_wait() to avoid race
1501         condition. This is not, however, a complete solution to this
1502         problem. A better solution will be forthcoming.
1503
1504         * include/serial.h:
1505         Changed include files used to permit non-kernel configurations to
1506         be built.       
1507
1508 1999-03-05  Jesper Skov  <jskov@cygnus.co.uk>
1509
1510         * src/common/haldiag.c: Removed diag_printf declaration.
1511
1512 1999-03-05  Jonathan Larmour  <jlarmour@cygnus.co.uk>
1513
1514        * src/mn10300/mn10300_serial.c:
1515        Change CYG_VECTOR_* to CYGNUM_HAL_INTERRUPT_* to get it to compile!
1516
1517 1999-03-05  Gary Thomas  <gthomas@cygnus.co.uk>
1518
1519         * src/powerpc/cogent_serial_with_ints.c (cogent_serial_config_port): 
1520         Fix renaming of interrupt vectors.
1521
1522 1999-03-05  Gary Thomas  <gthomas@cygnus.co.uk>
1523
1524         * src/arm/pid_serial_with_ints.c: Fix interrupt vectors.
1525
1526 1999-03-03  Gary Thomas  <gthomas@cygnus.co.uk>
1527
1528         * serial/current/src/arm/pid_serial_with_ints.c: 
1529         New [somewhat] configurable drivers for PID.
1530
1531 //===========================================================================
1532 //####ECOSGPLCOPYRIGHTBEGIN####
1533 // -------------------------------------------
1534 // This file is part of eCos, the Embedded Configurable Operating System.
1535 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
1536 //
1537 // eCos is free software; you can redistribute it and/or modify it under
1538 // the terms of the GNU General Public License as published by the Free
1539 // Software Foundation; either version 2 or (at your option) any later version.
1540 //
1541 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
1542 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
1543 // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1544 // for more details.
1545 //
1546 // You should have received a copy of the GNU General Public License along
1547 // with eCos; if not, write to the Free Software Foundation, Inc.,
1548 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
1549 //
1550 // As a special exception, if other files instantiate templates or use macros
1551 // or inline functions from this file, or you compile this file and link it
1552 // with other works to produce a work based on this file, this file does not
1553 // by itself cause the resulting work to be covered by the GNU General Public
1554 // License. However the source code for this file must still be made available
1555 // in accordance with section (3) of the GNU General Public License.
1556 //
1557 // This exception does not invalidate any other reasons why a work based on
1558 // this file might be covered by the GNU General Public License.
1559 //
1560 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
1561 // at http://sources.redhat.com/ecos/ecos-license/
1562 // -------------------------------------------
1563 //####ECOSGPLCOPYRIGHTEND####
1564 //===========================================================================