diff options
author | Michael Hunold <devnull@localhost> | 2003-12-21 16:36:23 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2003-12-21 16:36:23 +0000 |
commit | d87202f5b5e90bfcd3d2f923ac40ac3e6f699540 (patch) | |
tree | 53488eba312a771cff9d2be9d8000aa0d7f70fc8 /linux/drivers/media/dvb/ttusb-dec | |
parent | 56325ebe82f12b17a36ee96f5c0f4604dbd9dbe6 (diff) | |
download | mediapointer-dvb-s2-d87202f5b5e90bfcd3d2f923ac40ac3e6f699540.tar.gz mediapointer-dvb-s2-d87202f5b5e90bfcd3d2f923ac40ac3e6f699540.tar.bz2 |
- add Kconfig foo to select a firmware that can be compiled into the
firmware again
- move fdump.c utility from "ttusb-dec" to "ttpci", it's not need by
"ttusb-dec" anymore, but by "ttpci" now
Diffstat (limited to 'linux/drivers/media/dvb/ttusb-dec')
-rw-r--r-- | linux/drivers/media/dvb/ttusb-dec/fdump.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/linux/drivers/media/dvb/ttusb-dec/fdump.c b/linux/drivers/media/dvb/ttusb-dec/fdump.c deleted file mode 100644 index 0b478db3e..000000000 --- a/linux/drivers/media/dvb/ttusb-dec/fdump.c +++ /dev/null @@ -1,44 +0,0 @@ -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <fcntl.h> -#include <unistd.h> - -int main(int argc, char **argv) -{ - unsigned char buf[8]; - unsigned int i, count, bytes = 0; - FILE *fd_in, *fd_out; - - if (argc != 4) { - fprintf(stderr, "\n\tusage: %s <ucode.bin> <array_name> <output_name>\n\n", argv[0]); - return -1; - } - - fd_in = fopen(argv[1], "rb"); - if (fd_in == NULL) { - fprintf(stderr, "firmware file '%s' not found\n", argv[1]); - return -1; - } - - fd_out = fopen(argv[3], "w+"); - if (fd_out == NULL) { - fprintf(stderr, "cannot create output file '%s'\n", argv[3]); - return -1; - } - - fprintf(fd_out, "\n#include <asm/types.h>\n\nu8 %s [] = {", argv[2]); - - while ((count = fread(buf, 1, 8, fd_in)) > 0) { - fprintf(fd_out, "\n\t"); - for (i = 0; i < count; i++, bytes++) - fprintf(fd_out, "0x%02x, ", buf[i]); - } - - fprintf(fd_out, "\n};\n\n"); - - fclose(fd_in); - fclose(fd_out); - - return 0; -} |