cronyxfw.h revision 225736
1193640Sariff/*-
2193640Sariff * Cronyx firmware definitions.
3193640Sariff *
4193640Sariff * Copyright (C) 1996 Cronyx Engineering.
5193640Sariff * Author: Serge Vakulenko, <vak@cronyx.ru>
6193640Sariff *
7193640Sariff * This software is distributed with NO WARRANTIES, not even the implied
8193640Sariff * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9193640Sariff *
10193640Sariff * Authors grant any other persons or organisations permission to use
11193640Sariff * or modify this software as long as this message is kept with the software,
12193640Sariff * all derivative works or modified versions.
13193640Sariff *
14193640Sariff * Cronyx Id: cronyxfw.h,v 1.1.2.1 2003/11/12 17:09:49 rik Exp $
15193640Sariff * $FreeBSD: stable/9/sys/dev/cx/cronyxfw.h 139749 2005-01-06 01:43:34Z imp $
16193640Sariff */
17193640Sariff#define CRONYX_DAT_MAGIC 2001107011L	/* firmware file magic */
18193640Sariff
19193640Sarifftypedef struct _cr_dat_tst {
20193640Sariff	long start;			/* verify start */
21193640Sariff	long end;			/* verify end */
22193640Sariff} cr_dat_tst_t;
23193640Sariff
24193640Sarifftypedef struct {                        /* firmware file header */
25193640Sariff	unsigned long magic;            /* firmware magic */
26193640Sariff	long hdrsz;			/* header size in bytes */
27193640Sariff	long len;			/* firmware data size in bits */
28193640Sariff	long ntest;			/* number of tests */
29193640Sariff	unsigned long sum;              /* header+tests+data checksum */
30193640Sariff	char version[8];                /* firmware version number */
31193640Sariff	char date[8];                   /* date when compiled */
32193640Sariff} cr_dat_t;
33193640Sariff