drivers: Rename ConsoleDriver to console_driver

We use snake case in OSv code.

Reviewed-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
drivers: Rename ConsoleMultiplexer to console_multiplexer

We use snake case in OSv code.

Reviewed-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
serial: Fix formatting

Fix mixed spaces and tabs formatting to only use spaces. Makes working
with the code less painful.

Reviewed-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
serial: Eliminate temporary variable

The 'lcr' class member variable is used as a temporary variable to hold
a constant value. Inline it...

Reviewed-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
serial: Drop unused <string.h> include

Reviewed-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
serial: Move register definitions to source file

Move register definitions to isa-serial.cc where they are used. This
makes looking up register values easier because you don't need to jump
between two files.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
serial: Split register definitions

Split register definitions in per-register enumerations.

Reviewed-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
serial: Rename writeByte to putchar

Fix camel case and rename 'letter' argument to more appropriate 'ch'.

Reviewed-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
drivers: Rename IsaSerialConsole to isa_serial_console

Switch to snake case.

Reviewed-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>