Changeset 1f5d2ba in rtems
- Timestamp:
- Jul 2, 2003, 2:20:36 PM (18 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 8ebf2e4d
- Parents:
- c125425
- Location:
- cpukit/libcsupport
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libcsupport/ChangeLog
rc125425 r1f5d2ba 1 2003-07-02 Chris Johns <cjohns@cybertec.com.au> 2 * include/rtems/libio.h, src/termios.c: Patch by Chris Johns 3 <cjohns@cybertec.com.au> adding the rtems_termios_bufsize call. 4 1 5 2003-05-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 6 -
cpukit/libcsupport/include/rtems/libio.h
rc125425 r1f5d2ba 555 555 void rtems_termios_initialize (void); 556 556 557 /* 558 * CCJ: Change before opening a tty. Newer code from Eric is coming 559 * so extra work to handle an open tty is not worth it. If the tty 560 * is open, close then open it again. 561 */ 562 rtems_status_code rtems_termios_bufsize ( 563 int cbufsize, /* cooked buffer size */ 564 int raw_input, /* raw input buffer size */ 565 int raw_output /* raw output buffer size */ 566 ); 567 557 568 rtems_status_code rtems_termios_open ( 558 569 rtems_device_major_number major, -
cpukit/libcsupport/src/termios.c
rc125425 r1f5d2ba 68 68 * The size of the cooked buffer 69 69 */ 70 #define CBUFSIZE 25670 #define CBUFSIZE (rtems_termios_cbufsize) 71 71 72 72 /* … … 75 75 * efficient if these are powers of two. 76 76 */ 77 #define RAW_INPUT_BUFFER_SIZE 12878 #define RAW_OUTPUT_BUFFER_SIZE 6477 #define RAW_INPUT_BUFFER_SIZE (rtems_termios_raw_input_size) 78 #define RAW_OUTPUT_BUFFER_SIZE (rtems_termios_raw_output_size) 79 79 80 80 /* fields for "flow_ctrl" status */ … … 113 113 extern struct rtems_termios_tty *rtems_termios_ttyTail; 114 114 extern rtems_id rtems_termios_ttyMutex; 115 116 static int rtems_termios_cbufsize = 256; 117 static int rtems_termios_raw_input_size = 128; 118 static int rtems_termios_raw_output_size = 64; 115 119 116 120 static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument); … … 456 460 rtems_semaphore_release (rtems_termios_ttyMutex); 457 461 return RTEMS_SUCCESSFUL; 462 } 463 464 rtems_status_code rtems_termios_bufsize ( 465 int cbufsize, 466 int raw_input, 467 int raw_output 468 ) 469 { 470 rtems_termios_cbufsize = cbufsize; 471 rtems_termios_raw_input_size = raw_input; 472 rtems_termios_raw_output_size = raw_output; 458 473 } 459 474 … … 1064 1079 /* continue processing new character */ 1065 1080 if (tty->termios.c_lflag & ICANON) { 1066 if (siproc (c, tty)) {1081 if (siproc (c, tty)) 1067 1082 wait = 0; 1068 break; /* done */1069 }1070 1083 } 1071 1084 else { … … 1513 1526 } 1514 1527 } 1515
Note: See TracChangeset
for help on using the changeset viewer.