1 /* 2 * Copyright (c) 2020 Allwinner Technology Co., Ltd. ALL rights reserved. 3 */ 4 5 #ifndef __SUNXI_HAL_REGULATOR_PRI_H__ 6 #define __SUNXI_HAL_REGULATOR_PRI_H__ 7 #ifdef __cplusplus 8 extern "C" { 9 #endif 10 11 typedef short s16; 12 typedef long long int s64; 13 14 typedef unsigned char u8; 15 typedef unsigned short u16; 16 typedef unsigned long long int u64; 17 int hal_axp_byte_read(struct regulator_dev *rdev, u8 reg, u8 *reg_val); 18 int hal_axp_byte_write(struct regulator_dev *rdev, u8 reg, u8 reg_val); 19 int hal_axp_byte_update(struct regulator_dev *rdev, u8 reg, u8 val, u8 mask); 20 21 #ifdef __cplusplus 22 } 23 #endif 24 25 #endif 26