1*d1aae066SStephen Boyd /* SPDX-License-Identifier: GPL-2.0 */ 2*d1aae066SStephen Boyd #ifndef __SOC_STARFIVE_RESET_JH71X0_H 3*d1aae066SStephen Boyd #define __SOC_STARFIVE_RESET_JH71X0_H 4*d1aae066SStephen Boyd 5*d1aae066SStephen Boyd #include <linux/auxiliary_bus.h> 6*d1aae066SStephen Boyd #include <linux/compiler_types.h> 7*d1aae066SStephen Boyd #include <linux/container_of.h> 8*d1aae066SStephen Boyd 9*d1aae066SStephen Boyd struct jh71x0_reset_adev { 10*d1aae066SStephen Boyd void __iomem *base; 11*d1aae066SStephen Boyd struct auxiliary_device adev; 12*d1aae066SStephen Boyd }; 13*d1aae066SStephen Boyd 14*d1aae066SStephen Boyd #define to_jh71x0_reset_adev(_adev) \ 15*d1aae066SStephen Boyd container_of((_adev), struct jh71x0_reset_adev, adev) 16*d1aae066SStephen Boyd 17*d1aae066SStephen Boyd #endif 18