Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 1909 → Rev 1896

/trunk/kernel/genarch/src/ofw/fhc.c
36,7 → 36,6
*/
 
#include <genarch/ofw/ofw_tree.h>
#include <arch/drivers/fhc.h>
#include <arch/memstr.h>
#include <func.h>
#include <panic.h>
109,25 → 108,5
return false;
}
 
bool ofw_fhc_map_interrupts(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uint32_t interrupt, int *ino)
{
fhc_t *fhc = NULL;
if (!node->device) {
fhc = fhc_init(node);
if (!fhc)
return false;
node->device = fhc;
central_fhc = fhc;
}
/*
* The interrupt controller for the interrupt is the FHC itself.
*/
fhc_enable_interrupt(fhc, interrupt);
*ino = interrupt;
return true;
}
 
/** @}
*/