/*
 *              Copyright (C) 2005, 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 __LOCK_H__
#define __LOCK_H__

typedef u32 *IOSLock;

extern u32 __iosGlobalLock;

/*
 * Spinlock routines
 */
extern void __iosInitLock(IOSLock lock);
extern void __iosLock(IOSLock lock);
extern void __iosUnlock(IOSLock lock);
extern u32 __iosLockDisable(IOSLock lock);
extern u32 __iosUnlockRestore(IOSLock lock, u32 mask);

#endif /* __LOCK_H__ */
