--- embedtools/inc/defs.h 2009/11/12 10:35:55 1.1.1.1 +++ embedtools/inc/defs.h 2009/11/15 21:33:17 1.1.1.1.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: defs.h,v 1.1.1.1 2009/11/12 10:35:55 misho Exp $ + * $Id: defs.h,v 1.1.1.1.2.5 2009/11/15 21:33:17 misho Exp $ * *************************************************************************/ #ifndef __DEFS_H @@ -11,7 +11,16 @@ #define MAX_STR 256 +#define TFTP_BUF 516 +#define TFTP_RETRY 7 +#define TFTP_TIMEOUT 3 +#define TFTP_RRQ 1 +#define TFTP_WRQ 2 +#define TFTP_DATA 3 +#define TFTP_ACK 4 +#define TFTP_ERROR 5 + #define DEFAULT_TIMEOUT "300" #define DEFAULT_CONFIG "/etc/cfexec.conf" #define DEFAULT_USER "root" @@ -19,11 +28,16 @@ #define DEFAULT_DEVICE "/dev/ufs/AITBSDonCF" #define DEFAULT_CHROOT "/" #define DEFAULT_TMP "/tmp" +#define DEFAULT_TFTP 69 +#define DEFAULT_TFTPDIR "/cf/tftpboot" +#define FIRMWARE_IMG "aitbsd-firmware" +#define FIRMWARE_BAK "aitbsd-firmware.old" + #define VERB(x) if ((x) <= Verbose) -extern sl_config cfg; +extern int Verbose; #endif