Ignore:
Timestamp:
2009-02-25T21:32:18Z (15 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.

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.