This function is defined in options.c.
The prototype is:
unsigned options( int argc,
char *argv[] )
This function parses the driver's command-line arguments.
For information about the arguments, see
devc-ser8250
in the Utilities Reference.
Depending on the options specified, this function may call:
- ttc()
with an argument of TTC_INIT_RAW to configure the terminal to RAW mode
- sys_ttyinit()
to initialize the tty as appropriate for the CPU platform
- ttc()
with an argument of TTC_SET_OPTION to pass standard terminal
configuration options to <libio-char.a> to be executed
- create_device()
to create a device
- query_default_device()
to query the default devices if none is specified on the command line
- enable_device()
to enable all the serial ports
The options() function returns the number of ports that are enabled.