Пример #1
0
/*
 * Инициация в начале всей работы
 */
void ModIni()
{
    FileItem *ip;
    int rc;

    /* Открываем все библиотеки */
    Nlibs = 0;
    CatIni( WorkCatal );
    while( (ip = CatNext()) != NULL ){
        if( (ip->type & 0x7F) == 'U' ){
            if( (rc = FindFile( ip, WorkCatal )) < 0 ){
                Error(3);        /* Таковая не найдена */
            }
            libvect[ Nlibs ].Lparent = WorkCatal;
            libvect[ Nlibs ].Llabel = (char) rc;
            MVS( ip->name.c, LFNAME, libvect[ Nlibs ].Lname );
            Nlibs++;
        }
    }

    Nmods = 0;                   /* Bss у нас не чистится */
    modnext = 0;                 /* для второго прохода */
}
	SMPS(8917_S1,  "8917_s1",   "8917_s1_pc",  smps,     SMPS_1500),
	SMPS(8917_S2,  "8917_s2",   "8917_s2_pc",  smps,     SMPS_1500),
	SMPS(8917_S3,  "8917_s3",   "8917_s3_pc",  smps,     SMPS_1500),
	SMPS(8917_S4,  "8917_s4",   "8917_s4_pc",  smps,     SMPS_1500),
	SMPS(8917_S5,  "8917_s5",   NULL,          ftsmps,   SMPS_2000),
	SMPS(8917_S6,  "8917_s6",   NULL,          ftsmps,   SMPS_2000),
	SMPS(8917_S7,  "8917_s7",   "8917_s7_pc",  smps,     SMPS_1500),
	SMPS(8917_S8,  "8917_s8",   "8917_s8_pc",  smps,     SMPS_1500),

	LVS(8917_LVS1, "8917_lvs1", "8917_lvs1_pc"),
	LVS(8917_LVS3, "8917_lvs3", "8917_lvs3_pc"),
	LVS(8917_LVS4, "8917_lvs4", "8917_lvs4_pc"),
	LVS(8917_LVS5, "8917_lvs5", "8917_lvs5_pc"),
	LVS(8917_LVS6, "8917_lvs6", "8917_lvs6_pc"),
	LVS(8917_LVS7, "8917_lvs7", "8917_lvs7_pc"),
	MVS(8917_USB_OTG,  "8917_usb_otg",  NULL, USB_OTG_SWITCH),

	CORNER(8917_VDD_DIG_CORNER, VOLTAGE_CORNER, "vdd_dig_corner", corner),
};

static const char *pin_func_label[] = {
	[RPM_VREG_PIN_FN_8930_DONT_CARE]	= "don't care",
	[RPM_VREG_PIN_FN_8930_ENABLE]		= "on/off",
	[RPM_VREG_PIN_FN_8930_MODE]		= "HPM/LPM",
	[RPM_VREG_PIN_FN_8930_SLEEP_B]		= "sleep_b",
	[RPM_VREG_PIN_FN_8930_NONE]		= "none",
};

static const char *force_mode_label[] = {
	[RPM_VREG_FORCE_MODE_8930_NONE]		= "none",
	[RPM_VREG_FORCE_MODE_8930_LPM]		= "LPM",
Пример #3
0
	SMPS(S2,  "8921_s2",   "8921_s2_pc",  smps,     SMPS_1500),
	SMPS(S3,  "8921_s3",   "8921_s3_pc",  smps,     SMPS_1500),
	SMPS(S4,  "8921_s4",   "8921_s4_pc",  smps,     SMPS_1500),
	SMPS(S5,  "8921_s5",   NULL,          ftsmps,   SMPS_2000),
	SMPS(S6,  "8921_s6",   NULL,          ftsmps,   SMPS_2000),
	SMPS(S7,  "8921_s7",   "8921_s7_pc",  smps,     SMPS_1500),
	SMPS(S8,  "8921_s8",   "8921_s8_pc",  smps,     SMPS_1500),

	LVS(LVS1, "8921_lvs1", "8921_lvs1_pc"),
	LVS(LVS2, "8921_lvs2", NULL),
	LVS(LVS3, "8921_lvs3", "8921_lvs3_pc"),
	LVS(LVS4, "8921_lvs4", "8921_lvs4_pc"),
	LVS(LVS5, "8921_lvs5", "8921_lvs5_pc"),
	LVS(LVS6, "8921_lvs6", "8921_lvs6_pc"),
	LVS(LVS7, "8921_lvs7", "8921_lvs7_pc"),
	MVS(USB_OTG,  "8921_usb_otg",  NULL, USB_OTG_SWITCH),
	MVS(HDMI_MVS, "8921_hdmi_mvs", NULL, HDMI_SWITCH),

	NCP(NCP,  "8921_ncp",  NULL),
};

static const char *pin_func_label[] = {
	[RPM_VREG_PIN_FN_8960_DONT_CARE]	= "don't care",
	[RPM_VREG_PIN_FN_8960_ENABLE]		= "on/off",
	[RPM_VREG_PIN_FN_8960_MODE]		= "HPM/LPM",
	[RPM_VREG_PIN_FN_8960_SLEEP_B]		= "sleep_b",
	[RPM_VREG_PIN_FN_8960_NONE]		= "none",
};

static const char *force_mode_label[] = {
	[RPM_VREG_FORCE_MODE_8960_NONE]		= "none",
	SMPS(PM8901_S0,  SMPS0B, "8901_s0",   "8901_s0_pc", ftsmps, FTSMPS),
	SMPS(PM8901_S1,  SMPS1B, "8901_s1",   "8901_s1_pc", ftsmps, FTSMPS),
#ifdef F_SKYCAM_ICP_HD
	SMPS(PM8901_S2,  SMPS2B, "8901_s2",   "8901_s2_pc", ftsmps, FTSMPS),
#else
	SMPS(PM8901_S2,  SMPS2B, "8901_s2",   "8901_s2_pc", ftsmps, FTSMPS),
#endif
	SMPS(PM8901_S3,  SMPS3B, "8901_s3",   "8901_s3_pc", ftsmps, FTSMPS),
	SMPS(PM8901_S4,  SMPS4B, "8901_s4",   "8901_s4_pc", ftsmps, FTSMPS),

	LVS(PM8901_LVS0, LVS0B,  "8901_lvs0", "8901_lvs0_pc"),
	LVS(PM8901_LVS1, LVS1B,  "8901_lvs1", "8901_lvs1_pc"),
	LVS(PM8901_LVS2, LVS2B,  "8901_lvs2", "8901_lvs2_pc"),
	LVS(PM8901_LVS3, LVS3B,  "8901_lvs3", "8901_lvs3_pc"),

	MVS(PM8901_MVS0, MVS,    "8901_mvs0", "8901_mvs0_pc"),
};

static const char *pin_func_label[] = {
	[RPM_VREG_PIN_FN_8660_ENABLE]		= "on/off",
	[RPM_VREG_PIN_FN_8660_MODE]		= "HPM/LPM",
	[RPM_VREG_PIN_FN_8660_SLEEP_B]		= "sleep_b",
	[RPM_VREG_PIN_FN_8660_NONE]		= "none",
};

static const char *force_mode_label[] = {
	[RPM_VREG_FORCE_MODE_8660_NONE]		= "none",
	[RPM_VREG_FORCE_MODE_8660_LPM]		= "LPM",
	[RPM_VREG_FORCE_MODE_8660_HPM]		= "HPM",
};