2 * Copyright 2003 Digi International (www.digi.com)
3 * Scott H Kilau <Scott_Kilau at digi dot com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED; without even the
12 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 * PURPOSE. See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 * $Id: dgap_downld.h,v 1.1 2009/10/23 14:01:57 markh Exp $
21 * NOTE: THIS IS A SHARED HEADER. DO NOT CHANGE CODING STYLE!!!
27 ** - describes the interface between the user level download process
28 ** and the concentrator download driver.
31 #ifndef _DGAP_DOWNLD_H_
32 #define _DGAP_DOWNLD_H_
36 int type; /* board type */
37 int len; /* length of image */
38 char fepimage[1]; /* beginning of image */
42 unsigned int req_type; /* FEP or concentrator */
43 unsigned int bdid; /* opaque board identifier */
45 struct downld_t dl; /* download structure */
46 struct fepimg fi; /* fep/bios image structure */
50 #define DIGI_DLREQ_GET (('d'<<8) | 220)
51 #define DIGI_DLREQ_SET (('d'<<8) | 221)
53 #define DIGI_DL_NUKE (('d'<<8) | 222) /* Not really a dl request, but
54 dangerous enuff to not put in
56 /* Packed bits of intarg for DIGI_DL_NUKE */
57 #define DIGI_NUKE_RESET_ALL (1 << 31)
58 #define DIGI_NUKE_INHIBIT_POLLER (1 << 30)
59 #define DIGI_NUKE_BRD_NUMB 0x0f
66 #define DLREQ_CONFIG 3
67 #define DLREQ_DEVCREATE 4