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/sparc64/src/drivers/kbd.c

    re06da7e r411b6a6  
    3535#include <arch/drivers/kbd.h>
    3636#include <genarch/ofw/ofw_tree.h>
     37
     38#ifdef CONFIG_SUN_KBD
     39#include <genarch/kbrd/kbrd.h>
     40#endif
    3741#ifdef CONFIG_Z8530
    38 #include <genarch/kbd/z8530.h>
     42#include <genarch/drivers/z8530/z8530.h>
    3943#endif
    4044#ifdef CONFIG_NS16550
    41 #include <genarch/kbd/ns16550.h>
    42 #endif
     45#include <genarch/drivers/ns16550/ns16550.h>
     46#endif
     47
     48#include <console/console.h>
    4349#include <ddi/device.h>
    4450#include <ddi/irq.h>
     
    160166                z8530 = (z8530_t *) hw_map(aligned_addr, offset + size) +
    161167                    offset;
    162                 (void) z8530_init(z8530, devno, inr, cir, cir_arg);
     168                kbrd_init(stdin);
     169                (void) z8530_init(z8530, devno, inr, cir, cir_arg, &kbrdin);
    163170               
    164171                /*
     
    180187                ns16550 = (ns16550_t *) hw_map(aligned_addr, offset + size) +
    181188                    offset;
    182                 (void) ns16550_init(ns16550, devno, inr, cir, cir_arg);
     189                kbrd_init(stdin);
     190                (void) ns16550_init(ns16550, devno, inr, cir, cir_arg, &kbrdin);
    183191               
    184192                /*
Note: See TracChangeset for help on using the changeset viewer.