/*
 * bsp_common.h
 *
 * Copyright (C) 2012-2019, Samsung Electronics Co., Ltd.
 *
 * Common helper functions, header file
 */


#ifndef __BSP_COMMON_H__
#define __BSP_COMMON_H__

#ifndef ARRAY_SIZE
#define ARRAY_SIZE(ar)    (sizeof(ar) / sizeof((ar)[0]))
#endif

void udelay(int timeout);
void mdelay(int timeout);
int copy_from_user(void *dest, void *src, unsigned int size);
int copy_to_user(void *dest, void *src, unsigned int size);

#endif /* __BSP_COMMON_H__ */
