Changeset 02f441c0 in mainline for arch


Ignore:
Timestamp:
2006-02-27T17:10:04Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
Children:
30ab05f
Parents:
481c520
Message:

Move i8042 driver to genarch as it might be used by more architectures.

Location:
arch
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/Makefile.inc

    r481c520 r02f441c0  
    6464CONFIG_PAGE_PT = y
    6565
     66## Compile with i8042 support.
     67#
     68
     69CONFIG_I8042 = y
     70
    6671## Accepted configuration directives
    6772#
     
    8590        arch/$(ARCH)/src/context.S \
    8691        arch/$(ARCH)/src/drivers/ega.c \
    87         arch/$(ARCH)/src/drivers/i8042.c \
    8892        arch/$(ARCH)/src/drivers/i8254.c \
    8993        arch/$(ARCH)/src/drivers/i8259.c \
  • arch/amd64/src/amd64.c

    r481c520 r02f441c0  
    3434
    3535#include <arch/ega.h>
    36 #include <arch/i8042.h>
     36#include <genarch/i8042/i8042.h>
    3737#include <arch/i8254.h>
    3838#include <arch/i8259.h>
     
    149149void arch_post_smp_init(void)
    150150{
    151                 i8042_init();   /* keyboard controller */
     151        i8042_init();   /* keyboard controller */
    152152}
    153153
  • arch/ia32/Makefile.inc

    r481c520 r02f441c0  
    8383CONFIG_PAGE_PT = y
    8484
     85## Compile with i8042 controller support
     86#
     87
     88CONFIG_I8042 = y
     89
     90
    8591## Accepted configuration directives
    8692#
     
    119125        arch/$(ARCH)/src/mm/page.c \
    120126        arch/$(ARCH)/src/mm/tlb.c \
    121         arch/$(ARCH)/src/drivers/i8042.c \
    122127        arch/$(ARCH)/src/drivers/i8254.c \
    123128        arch/$(ARCH)/src/drivers/i8259.c \
  • arch/ia32/src/ia32.c

    r481c520 r02f441c0  
    3535
    3636#include <arch/ega.h>
    37 #include <arch/i8042.h>
     37#include <genarch/i8042/i8042.h>
    3838#include <arch/i8254.h>
    3939#include <arch/i8259.h>
  • arch/sparc64/src/console.c

    r481c520 r02f441c0  
    3232#include <genarch/fb/fb.h>
    3333#include <arch/drivers/fb.h>
     34#include <arch/drivers/keyboard.h>
    3435#include <genarch/ofw/ofw.h>
    3536#include <console/chardev.h>
  • arch/sparc64/src/mm/tlb.c

    r481c520 r02f441c0  
    4141#include <arch/asm.h>
    4242#include <symtab.h>
     43
    4344#include <arch/drivers/fb.h>
     45#include <arch/drivers/keyboard.h>
    4446
    4547char *context_encoding[] = {
     
    123125        data.v = true;
    124126        data.size = PAGESIZE_4M;
     127        data.pfn = fr.pfn;
     128        data.l = true;
     129        data.cp = 0;
     130        data.cv = 0;
     131        data.p = true;
     132        data.w = true;
     133        data.g = true;
     134
     135        dtlb_data_in_write(data.value);
     136       
     137        /*
     138         * Quick hack: map keyboard
     139         */
     140        fr.address = KBD_PHYS_ADDRESS;
     141        pg.address = KBD_VIRT_ADDRESS;
     142
     143        tag.value = ASID_KERNEL;
     144        tag.vpn = pg.vpn;
     145
     146        dtlb_tag_access_write(tag.value);
     147
     148        data.value = 0;
     149        data.v = true;
     150        data.size = PAGESIZE_8K;
    125151        data.pfn = fr.pfn;
    126152        data.l = true;
Note: See TracChangeset for help on using the changeset viewer.