1/* 2 * Copyright 2003 Digi International (www.digi.com) 3 * Scott H Kilau <Scott_Kilau at digi dot com> 4 * 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) 8 * any later version. 9 * 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. 14 * 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. 18 * 19 * $Id: dgap_downld.h,v 1.1 2009/10/23 14:01:57 markh Exp $ 20 * 21 * NOTE: THIS IS A SHARED HEADER. DO NOT CHANGE CODING STYLE!!! 22 * 23 */ 24 25/* 26** downld.h 27** - describes the interface between the user level download process 28** and the concentrator download driver. 29*/ 30 31#ifndef _DGAP_DOWNLD_H_ 32#define _DGAP_DOWNLD_H_ 33 34 35struct fepimg { 36 int type; /* board type */ 37 int len; /* length of image */ 38 char fepimage[1]; /* beginning of image */ 39}; 40 41struct downldio { 42 unsigned int req_type; /* FEP or concentrator */ 43 unsigned int bdid; /* opaque board identifier */ 44 union { 45 struct downld_t dl; /* download structure */ 46 struct fepimg fi; /* fep/bios image structure */ 47 } image; 48}; 49 50#define DIGI_DLREQ_GET (('d'<<8) | 220) 51#define DIGI_DLREQ_SET (('d'<<8) | 221) 52 53#define DIGI_DL_NUKE (('d'<<8) | 222) /* Not really a dl request, but 54 dangerous enuff to not put in 55 digi.h */ 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 60 61 62 63#define DLREQ_BIOS 0 64#define DLREQ_FEP 1 65#define DLREQ_CONC 2 66#define DLREQ_CONFIG 3 67#define DLREQ_DEVCREATE 4 68 69#endif 70