#!/usr/bin/perl
# Copyright (c) Mauro Carvalho Chehab <mchehab@infradead.org>
# Released under GPLv2
#
# In order to use, you need to:
# 1) Download the windows driver with something like:
# Version 2.4
# wget http://www.twinhan.com/files/AW/BDA T/20080303_V1.0.6.7.zip
# or wget http://www.stefanringel.de/pub/20080303_V1.0.6.7.zip
# Version 2.7
# wget http://www.steventoth.net/linux/xc5000/HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip
# 2) Extract the files from the zip into the current dir:
# unzip -j 20080303_V1.0.6.7.zip 20080303_v1.0.6.7/UDXTTM6000.sys
# unzip -j HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip Driver85/hcw85bda.sys
# 3) run the script:
# ./extract_xc3028.pl
# 4) copy the generated files:
# cp xc3028-v24.fw /lib/firmware
# cp xc3028-v27.fw /lib/fi