Subversion Repositories HelenOS

Rev

Rev 4156 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4156 Rev 4296
Line 38... Line 38...
38
#include <genarch/drivers/dsrln/dsrlnout.h>
38
#include <genarch/drivers/dsrln/dsrlnout.h>
39
#include <console/chardev.h>
39
#include <console/chardev.h>
40
#include <arch/asm.h>
40
#include <arch/asm.h>
41
#include <console/console.h>
41
#include <console/console.h>
42
#include <sysinfo/sysinfo.h>
42
#include <sysinfo/sysinfo.h>
-
 
43
#include <string.h>
43
 
44
 
44
static ioport8_t *dsrlnout_base;
45
static ioport8_t *dsrlnout_base;
45
 
46
 
46
static void dsrlnout_putchar(outdev_t *dev __attribute__((unused)), const char ch, bool silent)
47
static void dsrlnout_putchar(outdev_t *dev __attribute__((unused)), const wchar_t ch, bool silent)
47
{
48
{
48
    if (!silent)
49
    if (!silent) {
-
 
50
        if (ascii_check(ch))
49
        pio_write_8(dsrlnout_base, ch);
51
            pio_write_8(dsrlnout_base, ch);
-
 
52
        else
-
 
53
            pio_write_8(dsrlnout_base, U_SPECIAL);
-
 
54
    }
50
}
55
}
51
 
56
 
52
static outdev_t dsrlnout_console;
57
static outdev_t dsrlnout_console;
53
static outdev_operations_t dsrlnout_ops = {
58
static outdev_operations_t dsrlnout_ops = {
54
    .write = dsrlnout_putchar
59
    .write = dsrlnout_putchar