Changeset 411b6a6 in mainline for kernel/arch/ia32/src/ia32.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/arch/ia32/src/ia32.c

    re06da7e r411b6a6  
    4545#include <genarch/drivers/ega/ega.h>
    4646#include <arch/drivers/vesa.h>
    47 #include <genarch/kbd/i8042.h>
     47#include <genarch/drivers/i8042/i8042.h>
     48#include <genarch/kbrd/kbrd.h>
    4849#include <arch/drivers/i8254.h>
    4950#include <arch/drivers/i8259.h>
     
    148149{
    149150        devno_t devno = device_assign_devno();
    150         /* keyboard controller */
    151         (void) i8042_init((i8042_t *) I8042_BASE, devno, IRQ_KBD);
     151
     152        /*
     153         * Initialize the keyboard module and conect it to stdin. Then
     154         * initialize the i8042 controller and connect it to kbrdin. Enable
     155         * keyboard interrupts.
     156         */
     157        kbrd_init(stdin);
     158        (void) i8042_init((i8042_t *) I8042_BASE, devno, IRQ_KBD, &kbrdin);
     159        trap_virtual_enable_irqs(1 << IRQ_KBD);
    152160
    153161        /*
Note: See TracChangeset for help on using the changeset viewer.