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

    re06da7e r411b6a6  
    4444#include <genarch/drivers/ega/ega.h>
    4545#include <arch/drivers/vesa.h>
    46 #include <genarch/kbd/i8042.h>
     46#include <genarch/drivers/i8042/i8042.h>
     47#include <genarch/kbrd/kbrd.h>
    4748#include <arch/drivers/i8254.h>
    4849#include <arch/drivers/i8259.h>
     
    190191{
    191192        devno_t devno = device_assign_devno();
    192         /* keyboard controller */
    193         (void) i8042_init((i8042_t *) I8042_BASE, devno, IRQ_KBD);
     193
     194        /*
     195         * Initialize the keyboard module and conect it to stdin. Then
     196         * initialize the i8042 controller and connect it to kbrdin. Enable
     197         * keyboard interrupts.
     198         */
     199        kbrd_init(stdin);
     200        (void) i8042_init((i8042_t *) I8042_BASE, devno, IRQ_KBD, &kbrdin);
     201        trap_virtual_enable_irqs(1 << IRQ_KBD);
    194202
    195203        /*
Note: See TracChangeset for help on using the changeset viewer.