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