From 39a1812c1ef76b6a792f00087f1e507616bbbb25 Mon Sep 17 00:00:00 2001 From: tzafrir Date: Thu, 6 Jul 2006 13:47:05 +0000 Subject: Tons of updates to the Astribank (xpp) driver: * xpd_fxo.ko (FXO span) is now operational * Remove obsolete .inc initialization files (we use user-space init) * Added an install target to the utils dir. * Updated README.Astribank accordingly. * Using RBS signalling, as caller ID did not work well otherwise. * Better handling of USB protocol errors. * Fixed some procfs-related races. * per-card-module ioctls. * fxotune support. * opermode support (set through /etc/default/zaptel for now) * Userspace initialization script can also read registers. * Power calibration works (and implemented in perl) * some fine-tuning to the regster initialization parameters. * Leds turn on before registration and turn off after it. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1204 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- xpp/utils/hexfile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xpp/utils/hexfile.c') diff --git a/xpp/utils/hexfile.c b/xpp/utils/hexfile.c index 9862ecc..f6e4149 100644 --- a/xpp/utils/hexfile.c +++ b/xpp/utils/hexfile.c @@ -230,12 +230,12 @@ int dump_hexfile2(struct hexdata *hexdata, FILE *outfile, uint8_t maxwidth) } ll = line->d.content.header.ll; bytesleft = ll; - // split the line into several lines + /* split the line into several lines */ tt = line->d.content.header.tt; while (bytesleft > 0) { this_line = (bytesleft >= maxwidth) ? maxwidth : bytesleft; allocsize = sizeof(struct hexline) + this_line + 1; - // generate the new line + /* generate the new line */ if((extraline = (struct hexline *)malloc(allocsize)) == NULL) { if(report_func) report_func(LOG_ERR, "No more memory for hexfile lines\n"); @@ -247,14 +247,14 @@ int dump_hexfile2(struct hexdata *hexdata, FILE *outfile, uint8_t maxwidth) extraline->d.content.header.tt = tt; memcpy( extraline->d.content.tt_data.data, line->d.content.tt_data.data+extra_offset, this_line); new_chksum = 0xFF - checksum(extraline) + 1; - // print it + /* print it */ data = extraline->d.content.tt_data.data; fprintf(outfile, ":%02X%04X%02X", extraline->d.content.header.ll, extraline->d.content.header.offset, tt); for(j = 0; j < this_line; j++) { fprintf(outfile, "%02X", data[j]); } fprintf(outfile, "%02X\n", new_chksum); - // cleanups + /* cleanups */ free( extraline); extra_offset += this_line; bytesleft -= this_line; -- cgit v1.2.3