#ifndef __vreg_h__ #define __vreg_h__ #define is_TWL ( vregs[ REG_INT_ADRS_MODE ] & 0x01 ) #define with_NAND ( vregs[ REG_INT_ADRS_MODE ] & 0x02 ) #define volSteps32 ( vregs[ REG_INT_ADRS_MODE ] & 0x80 ) #define reg_wifi_led ( vregs[REG_INT_ADRS_WIFI] & 0x01 ) #define reg_wifi_led_blink ( vregs[REG_INT_ADRS_WIFI] & 0x02 ) void vregs_write( u8 adrs, u8 data ); u8 vregs_read( u8 adrs ); u8 vregs_check_changed(); u8 adrs_table_ext2int( u8 img ); u8 vregs_read( u8 phy_adrs ); #endif