Changes to platform device handling, irqs, userspace device configuration

Revised irq handling and device address naming on internal devices.
This commit is contained in:
Bahadir Balban
2009-11-29 18:11:08 +02:00
parent fa660514df
commit 346d79c0cd
21 changed files with 267 additions and 157 deletions

View File

@@ -32,10 +32,11 @@
l4id_t pl190_read_irq(void)
{
l4id_t irq;
if ((irq =__clz(read(PL190_VIC_IRQSTATUS))))
return irq;
else
if ((irq = (31 - __clz(read(PL190_VIC_IRQSTATUS)))) < 0)
return IRQ_NIL;
else
return irq;
}
void pl190_mask_irq(l4id_t irq)
@@ -60,10 +61,10 @@ l4id_t pl190_sic_read_irq(void)
{
l4id_t irq;
if ((irq =__clz(read(PL190_SIC_STATUS))))
return irq;
else
if ((irq =(31 - __clz(read(PL190_SIC_STATUS)))) < 0)
return IRQ_NIL;
else
return irq;
}
void pl190_sic_mask_irq(l4id_t irq)

View File

@@ -233,7 +233,7 @@ int pl011_initialise_device(struct pl011_uart * uart)
/* Initialise data register for 8 bit data read/writes */
pl011_set_word_width(uart->base, 8);
/*
/*
* Fifos are disabled because by default it is assumed the port
* will be used as a user terminal, and in that case the typed
* characters will only show up when fifos are flushed, rather than