Lines Matching refs:outfp
277 FILE *fp, *outfp;
339 outfp = stdout;
341 outfp = fopen(outfile, "w");
342 if (outfp == NULL)
346 fprintf(outfp, "\n/*\n");
347 fprintf(outfp, " * Generated from %s and %s (%d bytes)\n",
349 fprintf(outfp, " */\n\n");
355 fprintf (outfp, "#define NDIS_DEVNAME \"%s\"\n", dname);
356 fprintf (outfp, "#define NDIS_MODNAME %s\n\n", dname);
360 fprintf (outfp, "#ifdef NDIS_REGVALS\n");
361 fprintf (outfp, "ndis_cfg ndis_regvals[] = {\n");
362 fprintf (outfp, "\t{ NULL, NULL, { 0 }, 0 }\n");
363 fprintf (outfp, "#endif /* NDIS_REGVALS */\n");
365 fprintf (outfp, "};\n\n");
372 if (inf_parse(fp, outfp) != 0)
377 fprintf(outfp, "\n#ifdef NDIS_IMAGE\n");
387 fprintf(outfp,
390 fprintf(outfp, "static unsigned char *drv_data = "
397 fprintf(outfp, "\nextern unsigned char drv_data[];\n\n");
399 fprintf(outfp, "__asm__(\".data\");\n");
400 fprintf(outfp, "__asm__(\".globl drv_data\");\n");
401 fprintf(outfp, "__asm__(\".type drv_data, @object\");\n");
402 fprintf(outfp, "__asm__(\".size drv_data, %d\");\n", fsize);
403 fprintf(outfp, "__asm__(\"drv_data:\");\n");
408 fprintf (outfp, "__asm__(\".byte ");
412 fprintf(outfp, "0x%.2X\");\n", ptr[i]);
416 fprintf(outfp, "0x%.2X\");\n", ptr[i]);
418 fprintf(outfp, "0x%.2X, ", ptr[i]);
426 fprintf(outfp, "#endif /* NDIS_IMAGE */\n");
430 fclose(outfp);