1 /*
2  *  Routines to access hardware
3  *
4  *  Copyright (c) 2013 Realtek Semiconductor Corp.
5  *
6  *  This module is a confidential and proprietary property of RealTek and
7  *  possession or use of this module requires written permission of RealTek.
8  */
9 
10 #ifndef _DEVICE_LOCK_H_
11 #define _DEVICE_LOCK_H_
12 
13 enum _RT_DEV_LOCK_E
14 {
15 	RT_DEV_LOCK_EFUSE = 0,
16 	RT_DEV_LOCK_FLASH = 1,
17 	RT_DEV_LOCK_CRYPTO = 2,
18 	RT_DEV_LOCK_PTA = 3,
19 	RT_DEV_LOCK_WLAN = 4,
20 	RT_DEV_LOCK_MAX = 5
21 };
22 typedef uint32_t RT_DEV_LOCK_E;
23 
24 void device_mutex_lock(RT_DEV_LOCK_E device);
25 void device_mutex_unlock(RT_DEV_LOCK_E device);
26 
27 #endif //_DEVICE_LOCK_H_
28