Ignore:
Timestamp:
2009-02-27T20:41:23Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7a28812
Parents:
12081e6
Message:

Userspace driver for OBIO. This will make it possible to clear interrupts from
user space on UltraSPARC IIi and systems with Psycho. Not tested.

File:
1 edited

Legend:

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

    r12081e6 r42742c5a  
    4545#include <func.h>
    4646#include <arch/asm.h>
     47#include <sysinfo/sysinfo.h>
    4748
    4849#define SABRE_INTERNAL_REG      0
     
    109110        pci->reg = (uint64_t *) hw_map(paddr, reg[SABRE_INTERNAL_REG].size);
    110111
     112        /*
     113         * Set sysinfo data needed by the uspace OBIO driver.
     114         */
     115        sysinfo_set_item_val("obio.base.physical", NULL, paddr);
     116        sysinfo_set_item_val("kbd.cir.obio", NULL, 1);
     117
    111118        return pci;
    112119}
     
    149156        pci->op = &pci_psycho_ops;
    150157        pci->reg = (uint64_t *) hw_map(paddr, reg[PSYCHO_INTERNAL_REG].size);
     158
     159        /*
     160         * Set sysinfo data needed by the uspace OBIO driver.
     161         */
     162        sysinfo_set_item_val("obio.base.physical", NULL, paddr);
     163        sysinfo_set_item_val("kbd.cir.obio", NULL, 1);
    151164
    152165        return pci;
Note: See TracChangeset for help on using the changeset viewer.