IKC initialization added

This commit is contained in:
Taku Shimosawa
2011-09-30 00:57:49 +09:00
parent 6ba196e1df
commit 250b174b48
4 changed files with 66 additions and 100 deletions

23
kernel/mikc.c Normal file
View File

@ -0,0 +1,23 @@
#include <kmsg.h>
#include <aal/cpu.h>
#include <aal/debug.h>
#include <aal/ikc.h>
static struct aal_ikc_channel_desc mchannel;
static int master_channel_packet_handler(void *__packet);
void ikc_master_init(void)
{
aal_mc_ikc_init_first(&mchannel, master_channel_packet_handler);
kprintf("done.\n");
}
static int master_channel_packet_handler(void *__packet)
{
struct aal_ikc_master_packet *packet = __packet;
/* Do something */
return 0;
}