Changeset 411b6a6 in mainline for kernel/generic/src/console/console.c


Ignore:
Timestamp:
2009-03-07T16:08:40Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4c84368e
Parents:
e06da7e
Message:

Complete emancipation of kernel serial controller drivers (i8042, ns16550 and
z8530). Provide a common keyboard module for PC and Sun keyboards. The serial
line module is still to follow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/console.c

    re06da7e r411b6a6  
    107107}
    108108
     109static void stdin_suspend(chardev_t *d)
     110{
     111}
     112
     113static void stdin_resume(chardev_t *d)
     114{
     115}
     116
     117static chardev_operations_t stdin_ops = {
     118        .suspend = stdin_suspend,
     119        .resume = stdin_resume,
     120};
     121
    109122/** Standard input character device */
     123static chardev_t _stdin;
    110124chardev_t *stdin = NULL;
    111125chardev_t *stdout = &null_stdout;
     126
     127void console_init(void)
     128{
     129        chardev_initialize("stdin", &_stdin, &stdin_ops);
     130        stdin = &_stdin;
     131}
    112132
    113133/** Initialize kernel logging facility
Note: See TracChangeset for help on using the changeset viewer.