#ifndef _ROM_CACHE_H_
#define _ROM_CACHE_H_
+#include "soc/dport_access.h"
+
#ifdef __cplusplus
extern "C" {
#endif
* 4 : mmu table to be written is out of range
* 5 : vaddr is out of range
*/
-unsigned int cache_flash_mmu_set(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int num);
+static inline unsigned int IRAM_ATTR cache_flash_mmu_set(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int num)
+{
+ extern unsigned int cache_flash_mmu_set_rom(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int num);
+
+ unsigned int ret;
+
+ DPORT_STALL_OTHER_CPU_START();
+ ret = cache_flash_mmu_set_rom(cpu_no, pid, vaddr, paddr, psize, num);
+ DPORT_STALL_OTHER_CPU_END();
+
+ return ret;
+}
/**
* @brief Set Ext-SRAM-Cache mmu mapping.
* 4 : mmu table to be written is out of range
* 5 : vaddr is out of range
*/
-unsigned int cache_sram_mmu_set(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int num);
+static inline unsigned int IRAM_ATTR cache_sram_mmu_set(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int num)
+{
+ extern unsigned int cache_sram_mmu_set_rom(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, int num);
+
+ unsigned int ret;
+
+ DPORT_STALL_OTHER_CPU_START();
+ ret = cache_sram_mmu_set_rom(cpu_no, pid, vaddr, paddr, psize, num);
+ DPORT_STALL_OTHER_CPU_END();
+
+ return ret;
+}
/**
* @brief Initialise cache access for the cpu.
*
* @return None
*/
-void Cache_Read_Init(int cpu_no);
+static inline void IRAM_ATTR Cache_Read_Init(int cpu_no)
+{
+ extern void Cache_Read_Init_rom(int cpu_no);
+ DPORT_STALL_OTHER_CPU_START();
+ Cache_Read_Init_rom(cpu_no);
+ DPORT_STALL_OTHER_CPU_END();
+}
/**
* @brief Flush the cache value for the cpu.
*
* @return None
*/
-void Cache_Flush(int cpu_no);
+static inline void IRAM_ATTR Cache_Flush(int cpu_no)
+{
+ extern void Cache_Flush_rom(int cpu_no);
+ DPORT_STALL_OTHER_CPU_START();
+ Cache_Flush_rom(cpu_no);
+ DPORT_STALL_OTHER_CPU_END();
+}
/**
* @brief Disable Cache access for the cpu.
*
* @return None
*/
-void Cache_Read_Disable(int cpu_no);
+static inline void IRAM_ATTR Cache_Read_Disable(int cpu_no)
+{
+ extern void Cache_Read_Disable_rom(int cpu_no);
+ DPORT_STALL_OTHER_CPU_START();
+ Cache_Read_Disable_rom(cpu_no);
+ DPORT_STALL_OTHER_CPU_END();
+}
/**
* @brief Enable Cache access for the cpu.
*
* @return None
*/
-void Cache_Read_Enable(int cpu_no);
+static inline void IRAM_ATTR Cache_Read_Enable(int cpu_no)
+{
+ extern void Cache_Read_Enable_rom(int cpu_no);
+ DPORT_STALL_OTHER_CPU_START();
+ Cache_Read_Enable_rom(cpu_no);
+ DPORT_STALL_OTHER_CPU_END();
+}
/**
* @}
void esp_dport_access_stall_other_cpu_end(void);
#if defined(BOOTLOADER_BUILD) || defined(CONFIG_FREERTOS_UNICORE) || !defined(ESP_PLATFORM)
-#define DPORT_STAL_OTHER_CPU_START()
-#define DPORT_STAL_OTHER_CPU_END()
+#define DPORT_STALL_OTHER_CPU_START()
+#define DPORT_STALL_OTHER_CPU_END()
#else
-#define DPORT_STAL_OTHER_CPU_START() esp_dport_access_stall_other_cpu_start()
-#define DPORT_STAL_OTHER_CPU_END() esp_dport_access_stall_other_cpu_end()
+#define DPORT_STALL_OTHER_CPU_START() esp_dport_access_stall_other_cpu_start()
+#define DPORT_STALL_OTHER_CPU_END() esp_dport_access_stall_other_cpu_end()
#endif
-#define IS_DPORT_REG(_r) (((_r) >= DR_REG_DPORT_BASE) && (_r) <= DPORT_DATE_REG)
-
//Registers Operation {{
-#define _REG_READ(_r) (*(volatile uint32_t *)(_r))
-#define _REG_WRITE(_r, _v) (*(volatile uint32_t *)(_r)) = (_v)
+//Origin access operation for the base and some special scene
+#define _DPORT_REG_READ(_r) (*(volatile uint32_t *)(_r))
+#define _DPORT_REG_WRITE(_r, _v) (*(volatile uint32_t *)(_r)) = (_v)
//write value to register
-#define DPORT_REG_WRITE(_r, _v) _REG_WRITE(_r, _v)
+#define DPORT_REG_WRITE(_r, _v) _DPORT_REG_WRITE(_r, _v)
//read value from register
-inline uint32_t IRAM_ATTR DPORT_REG_READ(uint32_t reg)
+static inline uint32_t IRAM_ATTR DPORT_REG_READ(uint32_t reg)
{
uint32_t val;
- DPORT_STAL_OTHER_CPU_START();
- val = _REG_READ(reg);
- DPORT_STAL_OTHER_CPU_END();
+ DPORT_STALL_OTHER_CPU_START();
+ val = _DPORT_REG_READ(reg);
+ DPORT_STALL_OTHER_CPU_END();
return val;
}
#define DPORT_REG_GET_BIT(_r, _b) (DPORT_REG_READ(_r) & (_b))
//set bit or set bits to register
-#define DPORT_REG_SET_BIT(_r, _b) (*(volatile uint32_t*)(_r) |= (_b))
+#define DPORT_REG_SET_BIT(_r, _b) DPORT_REG_WRITE((_r), (DPORT_REG_READ(_r)|(_b)))
//clear bit or clear bits of register
-#define DPORT_REG_CLR_BIT(_r, _b) (*(volatile uint32_t*)(_r) &= ~(_b))
+#define DPORT_REG_CLR_BIT(_r, _b) DPORT_REG_WRITE((_r), (DPORT_REG_READ(_r) & (~(_b))))
//set bits of register controlled by mask
-#define DPORT_REG_SET_BITS(_r, _b, _m) (*(volatile uint32_t*)(_r) = (DPORT_REG_READ(_r) & ~(_m)) | ((_b) & (_m)))
+#define DPORT_REG_SET_BITS(_r, _b, _m) DPORT_REG_WRITE((_r), ((DPORT_REG_READ(_r) & (~(_m))) | ((_b) & (_m))))
//get field from register, uses field _S & _V to determine mask
#define DPORT_REG_GET_FIELD(_r, _f) ((DPORT_REG_READ(_r) >> (_f##_S)) & (_f##_V))
//set field to register, used when _f is not left shifted by _f##_S
-#define DPORT_REG_SET_FIELD(_r, _f, _v) (DPORT_REG_WRITE((_r),((DPORT_REG_READ(_r) & ~((_f) << (_f##_S)))|(((_v) & (_f))<<(_f##_S)))))
+#define DPORT_REG_SET_FIELD(_r, _f, _v) DPORT_REG_WRITE((_r), ((DPORT_REG_READ(_r) & (~((_f) << (_f##_S))))|(((_v) & (_f))<<(_f##_S))))
//get field value from a variable, used when _f is not left shifted by _f##_S
#define DPORT_VALUE_GET_FIELD(_r, _f) (((_r) >> (_f##_S)) & (_f))
#define _WRITE_PERI_REG(addr, val) (*((volatile uint32_t *)(addr))) = (uint32_t)(val)
//read value from register
-inline uint32_t IRAM_ATTR DPORT_READ_PERI_REG(uint32_t addr)
+static inline uint32_t IRAM_ATTR DPORT_READ_PERI_REG(uint32_t addr)
{
uint32_t val;
- DPORT_STAL_OTHER_CPU_START();
+ DPORT_STALL_OTHER_CPU_START();
val = _READ_PERI_REG(addr);
- DPORT_STAL_OTHER_CPU_END();
+ DPORT_STALL_OTHER_CPU_END();
return val;
}
#ifndef __ASSEMBLER__
#include <stdint.h>
+#include "esp_assert.h"
#endif
//Register Bits{{
#define PRO_CPU_NUM (0)
#define APP_CPU_NUM (1)
+/* Overall memory map */
+#define SOC_IROM_LOW 0x400D0000
+#define SOC_IROM_HIGH 0x40400000
+#define SOC_DROM_LOW 0x3F400000
+#define SOC_DROM_HIGH 0x3F800000
+#define SOC_RTC_IRAM_LOW 0x400C0000
+#define SOC_RTC_IRAM_HIGH 0x400C2000
+#define SOC_RTC_DATA_LOW 0x50000000
+#define SOC_RTC_DATA_HIGH 0x50002000
+
+#define DR_REG_DPORT_BASE 0x3ff00000
+#define DR_REG_DPORT_END 0x3ff00FFC
+#define DR_REG_RSA_BASE 0x3ff02000
+#define DR_REG_SHA_BASE 0x3ff03000
+#define DR_REG_UART_BASE 0x3ff40000
+#define DR_REG_SPI1_BASE 0x3ff42000
+#define DR_REG_SPI0_BASE 0x3ff43000
+#define DR_REG_GPIO_BASE 0x3ff44000
+#define DR_REG_GPIO_SD_BASE 0x3ff44f00
+#define DR_REG_FE2_BASE 0x3ff45000
+#define DR_REG_FE_BASE 0x3ff46000
+#define DR_REG_FRC_TIMER_BASE 0x3ff47000
+#define DR_REG_RTCCNTL_BASE 0x3ff48000
+#define DR_REG_RTCIO_BASE 0x3ff48400
+#define DR_REG_SENS_BASE 0x3ff48800
+#define DR_REG_IO_MUX_BASE 0x3ff49000
+#define DR_REG_RTCMEM0_BASE 0x3ff61000
+#define DR_REG_RTCMEM1_BASE 0x3ff62000
+#define DR_REG_RTCMEM2_BASE 0x3ff63000
+#define DR_REG_SYSCON_BASE 0x3ff66000
+#define DR_REG_HINF_BASE 0x3ff4B000
+#define DR_REG_UHCI1_BASE 0x3ff4C000
+#define DR_REG_I2S_BASE 0x3ff4F000
+#define DR_REG_UART1_BASE 0x3ff50000
+#define DR_REG_BT_BASE 0x3ff51000
+#define DR_REG_I2C_EXT_BASE 0x3ff53000
+#define DR_REG_UHCI0_BASE 0x3ff54000
+#define DR_REG_SLCHOST_BASE 0x3ff55000
+#define DR_REG_RMT_BASE 0x3ff56000
+#define DR_REG_PCNT_BASE 0x3ff57000
+#define DR_REG_SLC_BASE 0x3ff58000
+#define DR_REG_LEDC_BASE 0x3ff59000
+#define DR_REG_EFUSE_BASE 0x3ff5A000
+#define DR_REG_SPI_ENCRYPT_BASE 0x3ff5B000
+#define DR_REG_NRX_BASE 0x3ff5CC00
+#define DR_REG_BB_BASE 0x3ff5D000
+#define DR_REG_PWM_BASE 0x3ff5E000
+#define DR_REG_TIMERGROUP0_BASE 0x3ff5F000
+#define DR_REG_TIMERGROUP1_BASE 0x3ff60000
+#define DR_REG_SPI2_BASE 0x3ff64000
+#define DR_REG_SPI3_BASE 0x3ff65000
+#define DR_REG_APB_CTRL_BASE 0x3ff66000
+#define DR_REG_I2C1_EXT_BASE 0x3ff67000
+#define DR_REG_SDMMC_BASE 0x3ff68000
+#define DR_REG_EMAC_BASE 0x3ff69000
+#define DR_REG_PWM1_BASE 0x3ff6C000
+#define DR_REG_I2S1_BASE 0x3ff6D000
+#define DR_REG_UART2_BASE 0x3ff6E000
+#define DR_REG_PWM2_BASE 0x3ff6F000
+#define DR_REG_PWM3_BASE 0x3ff70000
+#define PERIPHS_SPI_ENCRYPT_BASEADDR DR_REG_SPI_ENCRYPT_BASE
+
//Registers Operation {{
#define ETS_UNCACHED_ADDR(addr) (addr)
#define ETS_CACHED_ADDR(addr) (addr)
#endif
#ifndef __ASSEMBLER__
+
+#define IS_DPORT_REG(_r) (((_r) >= DR_REG_DPORT_BASE) && (_r) <= DR_REG_DPORT_END)
+
+#if !defined( BOOTLOADER_BUILD ) && !defined( CONFIG_FREERTOS_UNICORE ) && defined( ESP_PLATFORM )
+#define ASSERT_IF_DPORT_REG(_r, OP) TRY_STATIC_ASSERT(!IS_DPORT_REG(_r), (Cannot use OP for DPORT registers use DPORT_##OP));
+#else
+#define ASSERT_IF_DPORT_REG(_r, OP)
+#endif
+
//write value to register
-#define REG_WRITE(_r, _v) (*(volatile uint32_t *)(_r)) = (_v)
+#define REG_WRITE(_r, _v) ({ \
+ ASSERT_IF_DPORT_REG(_r, REG_WRITE); \
+ (*(volatile uint32_t *)(_r)) = (_v); \
+ })
//read value from register
-#define REG_READ(_r) (*(volatile uint32_t *)(_r))
+#define REG_READ(_r) ({ \
+ ASSERT_IF_DPORT_REG((_r), REG_READ); \
+ (*(volatile uint32_t *)_r); \
+ })
//get bit or get bits from register
-#define REG_GET_BIT(_r, _b) (*(volatile uint32_t*)(_r) & (_b))
+#define REG_GET_BIT(_r, _b) ({ \
+ ASSERT_IF_DPORT_REG((_r), REG_GET_BIT); \
+ (*(volatile uint32_t*)(_r) & (_b)); \
+ })
//set bit or set bits to register
-#define REG_SET_BIT(_r, _b) (*(volatile uint32_t*)(_r) |= (_b))
+#define REG_SET_BIT(_r, _b) ({ \
+ ASSERT_IF_DPORT_REG((_r), REG_SET_BIT); \
+ (*(volatile uint32_t*)(_r) |= (_b)); \
+ })
//clear bit or clear bits of register
-#define REG_CLR_BIT(_r, _b) (*(volatile uint32_t*)(_r) &= ~(_b))
+#define REG_CLR_BIT(_r, _b) ({ \
+ ASSERT_IF_DPORT_REG((_r), REG_CLR_BIT); \
+ (*(volatile uint32_t*)(_r) &= ~(_b)); \
+ })
//set bits of register controlled by mask
-#define REG_SET_BITS(_r, _b, _m) (*(volatile uint32_t*)(_r) = (*(volatile uint32_t*)(_r) & ~(_m)) | ((_b) & (_m)))
+#define REG_SET_BITS(_r, _b, _m) ({ \
+ ASSERT_IF_DPORT_REG((_r), REG_SET_BITS); \
+ (*(volatile uint32_t*)(_r) = (*(volatile uint32_t*)(_r) & ~(_m)) | ((_b) & (_m))); \
+ })
//get field from register, uses field _S & _V to determine mask
-#define REG_GET_FIELD(_r, _f) ((REG_READ(_r) >> (_f##_S)) & (_f##_V))
+#define REG_GET_FIELD(_r, _f) ({ \
+ ASSERT_IF_DPORT_REG((_r), REG_GET_FIELD); \
+ ((REG_READ(_r) >> (_f##_S)) & (_f##_V)); \
+ })
//set field of a register from variable, uses field _S & _V to determine mask
-#define REG_SET_FIELD(_r, _f, _v) (REG_WRITE((_r),((REG_READ(_r) & ~((_f##_V) << (_f##_S)))|(((_v) & (_f##_V))<<(_f##_S)))))
+#define REG_SET_FIELD(_r, _f, _v) ({ \
+ ASSERT_IF_DPORT_REG((_r), REG_SET_FIELD); \
+ (REG_WRITE((_r),((REG_READ(_r) & ~((_f##_V) << (_f##_S)))|(((_v) & (_f##_V))<<(_f##_S))))); \
+ })
//get field value from a variable, used when _f is not left shifted by _f##_S
#define VALUE_GET_FIELD(_r, _f) (((_r) >> (_f##_S)) & (_f))
#define FIELD_TO_VALUE2(_f, _v) (((_v)<<_f##_S) & (_f))
//read value from register
-#define READ_PERI_REG(addr) (*((volatile uint32_t *)ETS_UNCACHED_ADDR(addr)))
+#define READ_PERI_REG(addr) ({ \
+ ASSERT_IF_DPORT_REG((addr), READ_PERI_REG); \
+ (*((volatile uint32_t *)ETS_UNCACHED_ADDR(addr))); \
+ })
//write value to register
-#define WRITE_PERI_REG(addr, val) (*((volatile uint32_t *)ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val)
+#define WRITE_PERI_REG(addr, val) ({ \
+ ASSERT_IF_DPORT_REG((addr), WRITE_PERI_REG); \
+ (*((volatile uint32_t *)ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val); \
+ })
//clear bits of register controlled by mask
-#define CLEAR_PERI_REG_MASK(reg, mask) WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&(~(mask))))
+#define CLEAR_PERI_REG_MASK(reg, mask) ({ \
+ ASSERT_IF_DPORT_REG((reg), CLEAR_PERI_REG_MASK); \
+ WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&(~(mask)))); \
+ })
//set bits of register controlled by mask
-#define SET_PERI_REG_MASK(reg, mask) WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask)))
+#define SET_PERI_REG_MASK(reg, mask) ({ \
+ ASSERT_IF_DPORT_REG((reg), SET_PERI_REG_MASK); \
+ WRITE_PERI_REG((reg), (READ_PERI_REG(reg)|(mask))); \
+ })
//get bits of register controlled by mask
-#define GET_PERI_REG_MASK(reg, mask) (READ_PERI_REG(reg) & (mask))
+#define GET_PERI_REG_MASK(reg, mask) ({ \
+ ASSERT_IF_DPORT_REG((reg), GET_PERI_REG_MASK); \
+ (READ_PERI_REG(reg) & (mask)); \
+ })
//get bits of register controlled by highest bit and lowest bit
-#define GET_PERI_REG_BITS(reg, hipos,lowpos) ((READ_PERI_REG(reg)>>(lowpos))&((1<<((hipos)-(lowpos)+1))-1))
+#define GET_PERI_REG_BITS(reg, hipos,lowpos) ({ \
+ ASSERT_IF_DPORT_REG((reg), GET_PERI_REG_BITS); \
+ ((READ_PERI_REG(reg)>>(lowpos))&((1<<((hipos)-(lowpos)+1))-1)); \
+ })
//set bits of register controlled by mask and shift
-#define SET_PERI_REG_BITS(reg,bit_map,value,shift) (WRITE_PERI_REG((reg),(READ_PERI_REG(reg)&(~((bit_map)<<(shift))))|(((value) & bit_map)<<(shift)) ))
+#define SET_PERI_REG_BITS(reg,bit_map,value,shift) ({ \
+ ASSERT_IF_DPORT_REG((reg), SET_PERI_REG_BITS); \
+ (WRITE_PERI_REG((reg),(READ_PERI_REG(reg)&(~((bit_map)<<(shift))))|(((value) & bit_map)<<(shift)) )); \
+ })
//get field of register
-#define GET_PERI_REG_BITS2(reg, mask,shift) ((READ_PERI_REG(reg)>>(shift))&(mask))
-//}}
+#define GET_PERI_REG_BITS2(reg, mask,shift) ({ \
+ ASSERT_IF_DPORT_REG((reg), GET_PERI_REG_BITS2); \
+ ((READ_PERI_REG(reg)>>(shift))&(mask)); \
+ })
#endif /* !__ASSEMBLER__ */
+//}}
//Periheral Clock {{
#define APB_CLK_FREQ_ROM ( 26*1000000 )
#define TICKS_PER_US_ROM 26 // CPU is 80MHz
//}}
-/* Overall memory map */
-#define SOC_IROM_LOW 0x400D0000
-#define SOC_IROM_HIGH 0x40400000
-#define SOC_DROM_LOW 0x3F400000
-#define SOC_DROM_HIGH 0x3F800000
-#define SOC_RTC_IRAM_LOW 0x400C0000
-#define SOC_RTC_IRAM_HIGH 0x400C2000
-#define SOC_RTC_DATA_LOW 0x50000000
-#define SOC_RTC_DATA_HIGH 0x50002000
-
-#define DR_REG_DPORT_BASE 0x3ff00000
-#define DR_REG_RSA_BASE 0x3ff02000
-#define DR_REG_SHA_BASE 0x3ff03000
-#define DR_REG_UART_BASE 0x3ff40000
-#define DR_REG_SPI1_BASE 0x3ff42000
-#define DR_REG_SPI0_BASE 0x3ff43000
-#define DR_REG_GPIO_BASE 0x3ff44000
-#define DR_REG_GPIO_SD_BASE 0x3ff44f00
-#define DR_REG_FE2_BASE 0x3ff45000
-#define DR_REG_FE_BASE 0x3ff46000
-#define DR_REG_FRC_TIMER_BASE 0x3ff47000
-#define DR_REG_RTCCNTL_BASE 0x3ff48000
-#define DR_REG_RTCIO_BASE 0x3ff48400
-#define DR_REG_SENS_BASE 0x3ff48800
-#define DR_REG_IO_MUX_BASE 0x3ff49000
-#define DR_REG_RTCMEM0_BASE 0x3ff61000
-#define DR_REG_RTCMEM1_BASE 0x3ff62000
-#define DR_REG_RTCMEM2_BASE 0x3ff63000
-#define DR_REG_SYSCON_BASE 0x3ff66000
-#define DR_REG_HINF_BASE 0x3ff4B000
-#define DR_REG_UHCI1_BASE 0x3ff4C000
-#define DR_REG_I2S_BASE 0x3ff4F000
-#define DR_REG_UART1_BASE 0x3ff50000
-#define DR_REG_BT_BASE 0x3ff51000
-#define DR_REG_I2C_EXT_BASE 0x3ff53000
-#define DR_REG_UHCI0_BASE 0x3ff54000
-#define DR_REG_SLCHOST_BASE 0x3ff55000
-#define DR_REG_RMT_BASE 0x3ff56000
-#define DR_REG_PCNT_BASE 0x3ff57000
-#define DR_REG_SLC_BASE 0x3ff58000
-#define DR_REG_LEDC_BASE 0x3ff59000
-#define DR_REG_EFUSE_BASE 0x3ff5A000
-#define DR_REG_SPI_ENCRYPT_BASE 0x3ff5B000
-#define DR_REG_NRX_BASE 0x3ff5CC00
-#define DR_REG_BB_BASE 0x3ff5D000
-#define DR_REG_PWM_BASE 0x3ff5E000
-#define DR_REG_TIMERGROUP0_BASE 0x3ff5F000
-#define DR_REG_TIMERGROUP1_BASE 0x3ff60000
-#define DR_REG_SPI2_BASE 0x3ff64000
-#define DR_REG_SPI3_BASE 0x3ff65000
-#define DR_REG_APB_CTRL_BASE 0x3ff66000
-#define DR_REG_I2C1_EXT_BASE 0x3ff67000
-#define DR_REG_SDMMC_BASE 0x3ff68000
-#define DR_REG_EMAC_BASE 0x3ff69000
-#define DR_REG_PWM1_BASE 0x3ff6C000
-#define DR_REG_I2S1_BASE 0x3ff6D000
-#define DR_REG_UART2_BASE 0x3ff6E000
-#define DR_REG_PWM2_BASE 0x3ff6F000
-#define DR_REG_PWM3_BASE 0x3ff70000
-#define PERIPHS_SPI_ENCRYPT_BASEADDR DR_REG_SPI_ENCRYPT_BASE
-
//Interrupt hardware source table
//This table is decided by hardware, don't touch this.
#define ETS_WIFI_MAC_INTR_SOURCE 0/**< interrupt of WiFi MAC, level*/