diff options
author | file <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-02-07 20:09:29 +0000 |
---|---|---|
committer | file <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-02-07 20:09:29 +0000 |
commit | 614a39ced8799b3ec63cc738ee7dda095a6ea74c (patch) | |
tree | 2b8494e2302a18f50f90fed6e68b9e8b4391c70a /wct4xxp/base.c | |
parent | 20aa812f076a7c2810e7acb4499a6e8b2282073c (diff) |
Merged revisions 2107 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.4
........
r2107 | file | 2007-02-07 15:01:41 -0500 (Wed, 07 Feb 2007) | 2 lines
Merge in zaptel-firmware branch. This basically downloads the firmware from the FTP site and builds the appropriate headers based on the current version. Drivers just know they need a certain firmware and get fed the current version. If this prevents your zaptel from building do a make distclean and start fresh or make sure the firmware is checked in make menuselect.
........
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2108 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp/base.c')
-rw-r--r-- | wct4xxp/base.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/wct4xxp/base.c b/wct4xxp/base.c index bcbeeee..bab8813 100644 --- a/wct4xxp/base.c +++ b/wct4xxp/base.c @@ -49,8 +49,8 @@ #include "vpm450m.h" #ifdef HOTPLUG_FIRMWARE -static const char *oct064_firmware = "OCT6114-64D.ima"; -static const char *oct128_firmware = "OCT6114-128D.ima"; +#include "../firmware/zaptel-fw-oct6114-064.h" +#include "../firmware/zaptel-fw-oct6114-128.h" #endif /* @@ -3107,10 +3107,10 @@ static void t4_vpm450_init(struct t4 *wc) struct firmware embedded_firmware; const struct firmware *firmware = &embedded_firmware; #if !defined(HOTPLUG_FIRMWARE) - extern void _binary_OCT6114_64D_ima_size; - extern void _binary_OCT6114_128D_ima_size; - extern u8 _binary_OCT6114_64D_ima_start[]; - extern u8 _binary_OCT6114_128D_ima_start[]; + extern void _binary_zaptel_fw_oct6114_064_bin_size; + extern void _binary_zaptel_fw_oct6114_128_bin_size; + extern u8 _binary_zaptel_fw_oct6114_064_bin_start[]; + extern u8 _binary_zaptel_fw_oct6114_128_bin_start[]; #endif if (!vpmsupport) { @@ -3140,38 +3140,38 @@ static void t4_vpm450_init(struct t4 *wc) switch ((vpm_capacity = get_vpm450m_capacity(wc))) { case 64: #if defined(HOTPLUG_FIRMWARE) - if ((request_firmware(&firmware, oct064_firmware, &wc->dev->dev) != 0) || + if ((request_firmware(&firmware, zaptel_fw_oct6114_064, &wc->dev->dev) != 0) || !firmware) { - printk("VPM450: firmware %s not available from userspace\n", oct064_firmware); + printk("VPM450: firmware %s not available from userspace\n", zaptel_fw_oct6114_064); return; } #else - embedded_firmware.data = _binary_OCT6114_64D_ima_start; + embedded_firmware.data = _binary_zaptel_fw_oct6114_064_bin_start; /* Yes... this is weird. objcopy gives us a symbol containing the size of the firmware, not a pointer a variable containing the size. The only way we can get the value of the symbol is to take its address, so we define it as a pointer and then cast that value to the proper type. */ - embedded_firmware.size = (size_t) &_binary_OCT6114_64D_ima_size; + embedded_firmware.size = (size_t) &_binary_zaptel_fw_oct6114_064_bin_size; #endif break; case 128: #if defined(HOTPLUG_FIRMWARE) - if ((request_firmware(&firmware, oct128_firmware, &wc->dev->dev) != 0) || + if ((request_firmware(&firmware, zaptel_fw_oct6114_128, &wc->dev->dev) != 0) || !firmware) { - printk("VPM450: firmware %s not available from userspace\n", oct128_firmware); + printk("VPM450: firmware %s not available from userspace\n", zaptel_fw_oct6114_128); return; } #else - embedded_firmware.data = _binary_OCT6114_128D_ima_start; + embedded_firmware.data = _binary_zaptel_fw_oct6114_128_bin_start; /* Yes... this is weird. objcopy gives us a symbol containing the size of the firmware, not a pointer a variable containing the size. The only way we can get the value of the symbol is to take its address, so we define it as a pointer and then cast that value to the proper type. */ - embedded_firmware.size = (size_t) &_binary_OCT6114_128D_ima_size; + embedded_firmware.size = (size_t) &_binary_zaptel_fw_oct6114_128_bin_size; #endif break; default: |