]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/xmodem.h
Update FSF address.
[thirdparty/binutils-gdb.git] / gdb / xmodem.h
CommitLineData
5de0c648
SG
1/* XMODEM support for GDB, the GNU debugger.
2 Copyright 1995 Free Software Foundation, Inc.
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
6c9638b4 18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
5de0c648
SG
19
20int xmodem_init_xfer PARAMS ((serial_t desc));
21void send_xmodem_packet PARAMS ((serial_t desc, unsigned char *packet, int len,
22 int hashmark));
23void xmodem_finish_xfer PARAMS ((serial_t desc));
24
25#define XMODEM_DATASIZE 128 /* The data size is ALWAYS 128 */
26#define XMODEM_1KDATASIZE 1024 /* Unless it's 1024!!! */
27#define XMODEM_PACKETSIZE 133 /* data + packet headers and crc */
28#define XMODEM_1KPACKETSIZE 1024 + 5 /* data + packet headers and crc */
29#define XMODEM_DATAOFFSET 3 /* Offset to start of actual data */