/*
 *              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 __SPLOCK_H__
#define __SPLOCK_H__

#if !defined(ASSEMBLER)

/*
 * Spinlock routines
 */
typedef u32 *lock_t;
extern void __skInitSplock(lock_t lck);
extern void __skSplock(lock_t lck);
extern void __skSpunlock(lock_t lck);
extern u32 __skSplockDisable(lock_t lck);
extern u32 __skSpunlockRestore(lock_t lck, u32 mask);

#endif /* ASSEMBLER */
#endif /* __SPLOCK_H__ */
