x86: move IOAPIC driver to device model/init system
Change the IOAPIC driver to be initialized directly from the init system. The function signature of _ioapic_init() function is updated accordingly. Change-Id: I2f824ac745926966eebb23f60445a41e1df9eb8f Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
This commit is contained in:
parent
be1b1a4e35
commit
25c9d021a5
4 changed files with 16 additions and 28 deletions
|
@ -216,8 +216,9 @@ static void _IoApicRedUpdateLo(unsigned int irq, uint32_t value,
|
|||
*
|
||||
* @return N/A
|
||||
*/
|
||||
void _ioapic_init(void)
|
||||
int _ioapic_init(struct device *unused)
|
||||
{
|
||||
ARG_UNUSED(unused);
|
||||
int32_t ix; /* redirection table index */
|
||||
uint32_t rteValue; /* value to copy into redirection table entry */
|
||||
|
||||
|
@ -250,6 +251,7 @@ void _ioapic_init(void)
|
|||
ioApicRedSetHi(ix, 0);
|
||||
ioApicRedSetLo(ix, rteValue);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue