1 /*-
2  * Cronyx firmware definitions.
3  *
4  * Copyright (C) 1996 Cronyx Engineering.
5  * Author: Serge Vakulenko, <vak@cronyx.ru>
6  *
7  * This software is distributed with NO WARRANTIES, not even the implied
8  * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9  *
10  * Authors grant any other persons or organisations permission to use
11  * or modify this software as long as this message is kept with the software,
12  * all derivative works or modified versions.
13  *
14  * Cronyx Id: cronyxfw.h,v 1.1.2.1 2003/11/12 17:09:49 rik Exp $
15  * $FreeBSD: stable/10/sys/dev/cx/cronyxfw.h 139749 2005-01-06 01:43:34Z imp $
16  */
17 #define CRONYX_DAT_MAGIC 2001107011L	/* firmware file magic */
18 
19 typedef struct _cr_dat_tst {
20 	long start;			/* verify start */
21 	long end;			/* verify end */
22 } cr_dat_tst_t;
23 
24 typedef struct {                        /* firmware file header */
25 	unsigned long magic;            /* firmware magic */
26 	long hdrsz;			/* header size in bytes */
27 	long len;			/* firmware data size in bits */
28 	long ntest;			/* number of tests */
29 	unsigned long sum;              /* header+tests+data checksum */
30 	char version[8];                /* firmware version number */
31 	char date[8];                   /* date when compiled */
32 } cr_dat_t;
33