Changeset 46321fb in mainline for kernel/arch/ia64/src/drivers/ega.c


Ignore:
Timestamp:
2008-11-25T20:22:04Z (15 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
83d9712
Parents:
14c331a
Message:

IA64: Userspace I/O support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/drivers/ega.c

    r14c331a r46321fb  
    4747#include <sysinfo/sysinfo.h>
    4848#include <arch/drivers/ega.h>
     49#include <ddi/ddi.h>
     50
    4951
    5052/*
     
    5254 * Simple and short. Function for displaying characters and "scrolling".
    5355 */
     56
     57
     58static parea_t ega_parea;       /**< Physical memory area for EGA video RAM. */
     59
    5460
    5561SPINLOCK_INITIALIZE(egalock);
     
    7682        chardev_initialize("ega_out", &ega_console, &ega_ops);
    7783        stdout = &ega_console;
     84
     85
     86        ega_parea.pbase = VIDEORAM & 0xffffffff;
     87        ega_parea.vbase = (uintptr_t) videoram;
     88        ega_parea.frames = 1;
     89        ega_parea.cacheable = false;
     90        ddi_parea_register(&ega_parea);
     91
    7892       
    7993        sysinfo_set_item_val("fb", NULL, true);
     
    8195        sysinfo_set_item_val("fb.width", NULL, ROW);
    8296        sysinfo_set_item_val("fb.height", NULL, ROWS);
    83         sysinfo_set_item_val("fb.address.physical", NULL, VIDEORAM);
     97        sysinfo_set_item_val("fb.address.physical", NULL, VIDEORAM & 0xffffffff);
    8498       
    8599#ifndef CONFIG_FB
Note: See TracChangeset for help on using the changeset viewer.