Changeset 3e5a814 in mainline for kernel


Ignore:
Timestamp:
2009-02-25T21:32:18Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6b1de7a
Parents:
f542825
Message:

Add simple userspace FHC driver.
Modify the z8530 userspace driver
to send BUS_CLEAR_INTERRUPT
notification to the FHC driver.

Location:
kernel/arch/sparc64/src/drivers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/drivers/fhc.c

    rf542825 r3e5a814  
    4646#include <arch/types.h>
    4747#include <genarch/ofw/ofw_tree.h>
     48#include <sysinfo/sysinfo.h>
    4849
    4950fhc_t *central_fhc = NULL;
     
    8788        fhc->uart_imap = (uint32_t *) hw_map(paddr, reg->size);
    8889       
     90        /*
     91         * Set sysinfo data needed by the uspace FHC driver.
     92         */
     93        sysinfo_set_item_val("fhc.uart.size", NULL, reg->size);
     94        sysinfo_set_item_val("fhc.uart.physical", NULL, paddr);
     95
    8996        return fhc;
    9097}
  • kernel/arch/sparc64/src/drivers/kbd.c

    rf542825 r3e5a814  
    4848#include <func.h>
    4949#include <print.h>
     50#include <sysinfo/sysinfo.h>
    5051
    5152kbd_type_t kbd_type = KBD_UNKNOWN;
     
    116117                        return;
    117118                }
     119                sysinfo_set_item_val("kbd.cir.fhc", NULL, 1);
    118120                break;
    119121               
Note: See TracChangeset for help on using the changeset viewer.