/*
 *               Copyright (C) 2006, BroadOn Communications Corp.
 *
 *  These coded instructions, statements, and computer programs contain
 *  unpublished  proprietary information of BroadOn Communications Corp.,
 *  and  are protected by Federal copyright law. They may not be disclosed
 *  to  third  parties or copied or duplicated in any form, in whole or in
 *  part, without the prior written consent of BroadOn Communications Corp.
 *
 */
#ifndef __IPC_H__
#define __IPC_H__

#define IPC_STACK_SIZE      16 * 1024
#define IPC_EMU_STACK_SIZE  16 * 1024

#define MAX_SRV_INFLIGHT    8

typedef u32 __OSInterrupt;
typedef u32 OSContext;
// HW registers

extern
u32 ipcs2pmsg,
    ipcp2smsg;

typedef void (*intHandler) (
    __OSInterrupt   interrupt,
    OSContext      *context);

extern
void ipcIntHandler(u32 inter, intHandler handle);

extern
void iosIpcThread(u32 arg);
extern
void ipcEmuThread(u32 par);

extern
u8 __iosIpcStack[],
    ipcEmuStack[];

#endif /* __IPC_H__ */

