Пример #1
0
int itp_read_config(block_dev_desc_t *block_dev)
{
	if (cspsa_fp_read(block_dev,
			  ITP_CSPSA_KEY,
			  &cspsa_key)) {
		HREF_PRINTF("itp_read_config: config not present. "
			   "Using default values\n");
		cspsa_key = (ITP_LOAD_MODEM | ITP_LOAD_KERNEL);
	}
	return 0;
}
Пример #2
0
int itp_read_config(block_dev_desc_t *block_dev)
{
	printf("  ITP_CONFIG:  ");
	if (cspsa_fp_read(block_dev,
			  ITP_CSPSA_KEY,
			  &cspsa_key)) {
		printf("not present. Using default values");
		cspsa_key = ITP_LOAD_KERNEL;
	} else {
		if (cspsa_key & ITP_LOAD_KERNEL)
			printf("load kernel ");
		if (cspsa_key & ITP_LOAD_MODEM)
			printf("load modem ");
		if (cspsa_key & ITP_LOAD_ITP)
			printf("load itp ");
		if (cspsa_key & ITP_LOAD_MODEM_LBP)
			printf("load modem in lbp mode ");
	}
	printf("\n");
	return 0;
}