本文整理汇总了C++中RPM_REG_MAP函数的典型用法代码示例。如果您正苦于以下问题:C++ RPM_REG_MAP函数的具体用法?C++ RPM_REG_MAP怎么用?C++ RPM_REG_MAP使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RPM_REG_MAP函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ARRAY_SIZE
};
int msm_pm8921_regulator_pdata_len __devinitdata =
ARRAY_SIZE(msm_pm8921_regulator_pdata);
#define RPM_REG_MAP(_id, _sleep_also, _voter, _supply, _dev_name) \
{ \
.vreg_id = RPM_VREG_ID_PM8921_##_id, \
.sleep_also = _sleep_also, \
.voter = _voter, \
.supply = _supply, \
.dev_name = _dev_name, \
}
static struct rpm_regulator_consumer_mapping
msm_rpm_regulator_consumer_mapping[] __devinitdata = {
RPM_REG_MAP(L23, 0, 1, "krait0_l23", "acpuclk-8960"),
RPM_REG_MAP(L23, 0, 2, "krait1_l23", "acpuclk-8960"),
RPM_REG_MAP(L23, 0, 6, "l2_l23", "acpuclk-8960"),
RPM_REG_MAP(L24, 0, 1, "krait0_mem", "acpuclk-8960"),
RPM_REG_MAP(L24, 0, 2, "krait1_mem", "acpuclk-8960"),
RPM_REG_MAP(S3, 0, 1, "krait0_dig", "acpuclk-8960"),
RPM_REG_MAP(S3, 0, 2, "krait1_dig", "acpuclk-8960"),
RPM_REG_MAP(S8, 0, 1, "krait0_s8", "acpuclk-8960"),
RPM_REG_MAP(S8, 0, 2, "krait1_s8", "acpuclk-8960"),
RPM_REG_MAP(S8, 0, 6, "l2_s8", "acpuclk-8960"),
};
struct rpm_regulator_platform_data msm_rpm_regulator_pdata __devinitdata = {
.init_data = msm_rpm_regulator_init_data,
.num_regulators = ARRAY_SIZE(msm_rpm_regulator_init_data),
.version = RPM_VREG_VERSION_8960,
示例2: ARRAY_SIZE
int msm8064_pm8921_regulator_pdata_len __devinitdata =
ARRAY_SIZE(msm8064_pm8921_regulator_pdata);
#define RPM_REG_MAP(_id, _sleep_also, _voter, _supply, _dev_name) \
{ \
.vreg_id = RPM_VREG_ID_PM8921_##_id, \
.sleep_also = _sleep_also, \
.voter = _voter, \
.supply = _supply, \
.dev_name = _dev_name, \
}
static struct rpm_regulator_consumer_mapping
msm_rpm_regulator_consumer_mapping[] __devinitdata = {
RPM_REG_MAP(LVS7, 0, 1, "krait0_hfpll", "acpuclk-8064"),
RPM_REG_MAP(LVS7, 0, 2, "krait1_hfpll", "acpuclk-8064"),
RPM_REG_MAP(LVS7, 0, 4, "krait2_hfpll", "acpuclk-8064"),
RPM_REG_MAP(LVS7, 0, 5, "krait3_hfpll", "acpuclk-8064"),
RPM_REG_MAP(LVS7, 0, 6, "l2_hfpll", "acpuclk-8064"),
RPM_REG_MAP(L24, 0, 1, "krait0_mem", "acpuclk-8064"),
RPM_REG_MAP(L24, 0, 2, "krait1_mem", "acpuclk-8064"),
RPM_REG_MAP(L24, 0, 4, "krait2_mem", "acpuclk-8064"),
RPM_REG_MAP(L24, 0, 5, "krait3_mem", "acpuclk-8064"),
RPM_REG_MAP(S3, 0, 1, "krait0_dig", "acpuclk-8064"),
RPM_REG_MAP(S3, 0, 2, "krait1_dig", "acpuclk-8064"),
RPM_REG_MAP(S3, 0, 4, "krait2_dig", "acpuclk-8064"),
RPM_REG_MAP(S3, 0, 5, "krait3_dig", "acpuclk-8064"),
};
struct rpm_regulator_platform_data apq8064_rpm_regulator_pdata __devinitdata = {
示例3: ARRAY_SIZE
int msm8930_pm8917_regulator_pdata_len __devinitdata =
ARRAY_SIZE(msm8930_pm8917_regulator_pdata);
#define RPM_REG_MAP(_id, _sleep_also, _voter, _supply, _dev_name) \
{ \
.vreg_id = RPM_VREG_ID_PM8917_##_id, \
.sleep_also = _sleep_also, \
.voter = _voter, \
.supply = _supply, \
.dev_name = _dev_name, \
}
static struct rpm_regulator_consumer_mapping
msm_rpm_regulator_consumer_mapping[] __devinitdata = {
RPM_REG_MAP(L23, 0, 1, "krait0_l23", "acpuclk-8930"),
RPM_REG_MAP(S8, 0, 1, "krait0_s8", "acpuclk-8930"),
RPM_REG_MAP(L23, 0, 2, "krait1_l23", "acpuclk-8930"),
RPM_REG_MAP(S8, 0, 2, "krait1_s8", "acpuclk-8930"),
RPM_REG_MAP(L23, 0, 6, "l2_l23", "acpuclk-8930"),
RPM_REG_MAP(S8, 0, 6, "l2_s8", "acpuclk-8930"),
RPM_REG_MAP(L24, 0, 1, "krait0_mem", "acpuclk-8930"),
RPM_REG_MAP(L24, 0, 2, "krait1_mem", "acpuclk-8930"),
RPM_REG_MAP(VDD_DIG_CORNER, 0, 1, "krait0_dig", "acpuclk-8930"),
RPM_REG_MAP(VDD_DIG_CORNER, 0, 2, "krait1_dig", "acpuclk-8930"),
RPM_REG_MAP(L23, 0, 1, "krait0_hfpll", "acpuclk-8627"),
RPM_REG_MAP(L23, 0, 2, "krait1_hfpll", "acpuclk-8627"),
RPM_REG_MAP(L23, 0, 6, "l2_hfpll", "acpuclk-8627"),
RPM_REG_MAP(L24, 0, 1, "krait0_mem", "acpuclk-8627"),
RPM_REG_MAP(L24, 0, 2, "krait1_mem", "acpuclk-8627"),