


SETSERIAL(8)	Linux Programmer's Manual	SETSERIAL(8)


NNAAMMEE
       setserial - get/set Linux serial port information

SSYYNNOOPPSSIISS
       sseettsseerriiaall  [[ --aabbggqqvvVVWW ]] serial-device [[ cmd [[ arg ]]]] [[ cmd
       ]]

DDEESSCCRRIIPPTTIIOONN
       SSeettsseerriiaall is a program which allows you	to  look  at  and
       change  various	attributes  of a serial device, including
       its port, its IRQ, and other serial port options.
       Starting with Linux 0.99 pl10, only the COM1-4  ports  are
       configured,  using the default IRQ of 4 and 3.  So, if you
       have any other serial ports provided by other boards (such
       as an AST Fourport), or if COM3-4 have been a non-standard
       IRQ so that you can use time simultaneously  with  COM1-2,
       you  *must*  use	this program in order to configure those
       serial ports.
       SSeettsseerriiaall is normally run from the file _/_e_t_c_/_r_c_._s_e_r_i_a_l.

   OOPPTTIIOONNSS
       _-_a     Display all possible information about the port.

       _-_b     Display boot-time level of information.

       _-_g     Get and display serial information for  all  serial
	      ports on the machine.

       _-_q     Quiet flag.

       _-_v     Verbose flag.

       _-_V     Display current version and exit.

       _-_W     Do wild interrupt initialisation and exit.

   CCOOMMMMAANNDDSS
       Note: _* means that the command takes an argument.  _^ means
       that the command can be preceded by '^' to  turn	off  the
       option.

       _* _p_o_r_t Set the I/O port.

       _* _i_r_q  Set the interrupt.

       _* _u_a_r_t Set  the	UART  type  (none,  8250,  16450,  16550,
	      16550A).

       _* _b_a_u_d___b_a_s_e
	      Set the base baud rate in CLOCK_FREQ / 16.

       _* _d_i_v_i_s_o_r
	      Set the custom divisor.  See ssppdd__ccuussttoomm.




Linux 0.99		 4 July 1993				1





SETSERIAL(8)	Linux Programmer's Manual	SETSERIAL(8)


       _^ _f_o_u_r_p_o_r_t
	      Configure the port as an AST Fourport.

       _a_u_t_o_c_o_n_f_i_g_u_r_e
	      Automatically configure the serial port.

       _^ _a_u_t_o___i_r_q
	      Try to determine the _i_r_q during  autoconfiguration.

       _^ _s_k_i_p___t_e_s_t
	      Skip the UART test during autoconfiguration.

       _^ _s_a_k  Set the break key as the Secure Attention Key.

       _^ _s_e_s_s_i_o_n___l_o_c_k_o_u_t
	      Lock out callout port across different sessions.

       _^ _p_g_r_p___l_o_c_k_o_u_t
	      Lock  out	callout  port	across	different process
	      groups.

       _^ _t_e_r_m_i_o_s___r_e_s_t_o_r_e
	      Restore termios after dialin port unblocks.

       _s_p_d___h_i Use 56kb instead of 38.4kb.

       _s_p_d___v_h_i
	      Use 115kb instead of 38.4kb.

       _s_p_d___c_u_s_t
	      Use the custom divisor to set the speed at  38.4kb.
	      (Baud rate = baud_base / custom_divisor.)

       _s_p_d___n_o_r_m_a_l
	      Use  38.4kb when a baud rate of 38.4kb is selected.

NNOOTTEESS
       Use a leading '0x' for hex numbers.
       CAUTION: Using an invalid port can lock up your machine!

FFIILLEESS
       _/_e_t_c_/_r_c_._l_o_c_a_l

SSEEEE AALLSSOO
       ttttyy(4), ttttyyss(4), kernel/chr_drv/serial.c

AAUUTTHHOORR
       Rick Sladkey (jrs@world.std.com)
       High speed modifications by:  Michael  K.  Johnson  (john-
       sonm@stolaf.edu)
       Re-written by: Theodore Ts'o (tytso@mit.edu), 1/1/93






Linux 0.99		 4 July 1993				2


