8f854e447a9310fbe6a543043e338a2cb00d7bd8
1 /*!***************************************************************************
3 *! FILE NAME : common.h
5 *! DESCRIPTION: Common stuff for e100boot.
7 *! ---------------------------------------------------------------------------
12 *! 2002 05 02 Ronny Ranerup Initial version
13 *! ---------------------------------------------------------------------------
14 *! (C) Copyright 1999, 2000, 2001, 2002 Axis Communications AB, LUND, SWEDEN
15 *!***************************************************************************/
16 /************************** Include files ********************************/
17 /************************** Constants and macros *************************/
18 /* max length of argument strings */
19 #define MAX_STRING_LEN 256
20 /************************** Type definitions *****************************/
23 struct packet_buf
*next
;
26 struct boot_files_T
*boot_file
;
27 unsigned int baud_rate
;
32 unsigned int *size_p
; /* Pointer to size in boot_cmds. */
33 unsigned int size
; /* Size of file. */
34 unsigned int size_sent
; /* Number of bytes sent so far. */
35 struct boot_files_T
*next
;
39 /************************** Global variables *****************************/
45 extern char device
[MAX_STRING_LEN
];
46 extern struct packet_buf
*first_packet
;
47 extern int cmdsOnly
; /* Just dump boot cmds to file. */
48 extern int toFiles
; /* Dump all packets to files. */
50 /************************** Function prototypes **************************/
52 struct packet_buf
* create_packet (unsigned int seq
);
53 struct packet_buf
* free_packet (struct packet_buf
*p
);
54 void find_string (char *str
);
This page took 0.044342 seconds and 3 git commands to generate.