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

#if !defined(SDK_TWL)
#error "TWL version of this header file included for non-TWL platform"
#endif

/*
 * TWL platform specific definitions
 */
#define TWL_CACHELINE_SIZE    32
#define CACHE_ALIGN    ATTRIBUTE_ALIGN(TWL_CACHELINE_SIZE)
#define CACHE_ROUNDUP(sz)      (((u32)sz+TWL_CACHELINE_SIZE-1) & ~(TWL_CACHELINE_SIZE-1))
#define CACHE_ALIGNED(addr)    (((u32)addr & (TWL_CACHELINE_SIZE-1)) == 0x0)

/*
 * Translate ASSERT to version from TwlSDK
 */
#define ASSERT(exp)  SDK_ASSERT(exp)

#endif /* __PLATFORM_H__ */
