Initial import of avarice changes from the nescc project


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@2 a7e36acc-7495-4a18-91ca-7b9a7881be12
* AUTHORS: New file.
* Bootstrap: Allow user to specify which versions of the auto tools
to use by setting environment variables.
* ChangeLog: New file.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@4 a7e36acc-7495-4a18-91ca-7b9a7881be12
* Bootstrap: Add "-a -c" to second call to automake so depcomp will be
installed if it is missing.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@5 a7e36acc-7495-4a18-91ca-7b9a7881be12
* src/jtag.h: Add jtag_device_def_type structure.
Add various missing jtag values.
* src/jtagio.cc: Add auto detection and configuration of target device.
Always report jtag box hw and sw versions.
* src/main.cc: Add --part command line option.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@6 a7e36acc-7495-4a18-91ca-7b9a7881be12
* src/jtagio.cc (getJtagResponse): Use JTAG_RESPONSE_TIMEOUT instead
of JTAG_COMM_TIMEOUT when reading the response from the jtag box.
* src/main.cc: Don't require hostname and portnumber options if they
aren't needed.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@7 a7e36acc-7495-4a18-91ca-7b9a7881be12
* src/jtag.h: Remove unused deviceType enum.
* src/jtagprog.cc: Tell the jtagbox the device dependant flash and
eeprom pagesizes based on device definition info.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@8 a7e36acc-7495-4a18-91ca-7b9a7881be12
* src/remote.cc: When handling a 'g' packet, only read the 32 GPR's,
SPL, SPH, and SREG. Reading some other io registers can have side effects.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@9 a7e36acc-7495-4a18-91ca-7b9a7881be12
* src/remote.cc: Break out of 'g' packet case if an error occurs.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@10 a7e36acc-7495-4a18-91ca-7b9a7881be12
* src/Makefile.am (avarice_SOURCES): Add ioreg.cc and ioreg.h.
* src/ioreg.cc: New file.
* src/ioreg.h: New file.
* src/jtag.h: Add io_reg_defs field to jtag_device_def_type struct.
* src/jtagio.cc: Add io_reg_defs field initializers.
* src/remote.cc: Add 'q' packet handling of "Ravr.io_reg" queries.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@11 a7e36acc-7495-4a18-91ca-7b9a7881be12
* Bootstrap: Remove need to run autotools in src.
* configure.in: Remove need for src/configure.in.
* src/configure.in: Remove file.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@12 a7e36acc-7495-4a18-91ca-7b9a7881be12
* src/remote.cc: Add handling of 'C' packet. Using 'sig SIGHUP' command
from gdb will cause avarice to reset the user program.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@13 a7e36acc-7495-4a18-91ca-7b9a7881be12
* src/jtag.h: Lengthen JTAG_RESPONSE_TIMEOUT so slower systems have
a fair chance to respond.
* src/remote.cc: Passing an int to read(2) is not bigendian friendly,
so pass an unsigned char instead.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@14 a7e36acc-7495-4a18-91ca-7b9a7881be12
* configure.in: Add checks for libsocket and libnsl.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@15 a7e36acc-7495-4a18-91ca-7b9a7881be12
* configure.in: Bump version.
* src/jtagio.cc: Don't set serial speed by changing termios structure
since this breaks on OS X. Use cfsetospeed() and cfsetispeed().


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@16 a7e36acc-7495-4a18-91ca-7b9a7881be12
* configure.in: Add check for socklen_t type.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@17 a7e36acc-7495-4a18-91ca-7b9a7881be12
* src/main.cc: Ports should be printed as the unsigned values instead of
signed.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@18 a7e36acc-7495-4a18-91ca-7b9a7881be12
* src/jtag.h:
* src/jtagrw.cc:
* src/main.cc:
Add support for writing fuses from the command line.

* configure.in: Bump version.
* src/main.cc: Move #include <unistd.h> to fix a build failure on
FreeBSD.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@19 a7e36acc-7495-4a18-91ca-7b9a7881be12
* configure.in: Bump version.
* src/jtag.h:
* src/jtagrw.cc:
* src/main.cc:
Add support for writing the lockbits from the command line.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@20 a7e36acc-7495-4a18-91ca-7b9a7881be12
* AUTHORS: Fix a typo.
* INSTALL-FROM-CVS: Add detailed description about using the proper
versions of autoconf and automake.
* configure.ac: Ran autoscan to generate this file to check for more
potential portability problem points.
Use autoconf-2.57 and automake-1.7.3 (trying make things work right
with any versions is a royal PITA).
Have autoheader generate src/autoconf.hin instead of autoconf.h.in so
8.3 systems don't puke.
* configure.in: Removed (replaced by configure.ac).
* .cvsignore: Ignore all diff and patch files.
Ignore all autom4te*.cache dirs.
* src/.cvsignore: Ignore TAGS and tags files.
Ignore autoconf.hin instead of autoconf.h.in.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@21 a7e36acc-7495-4a18-91ca-7b9a7881be12
* src/jtagrw.cc: Fix byte order problem when specifying fuses bytes
on the command line.


git-svn-id: svn://svn.code.sf.net/p/avarice/code/trunk/avarice@22 a7e36acc-7495-4a18-91ca-7b9a7881be12