i2c-eg20t: change timeout value 50msec to 1000msec
[zen-stable.git] / drivers / staging / tidspbridge / dynload / header.h
blob5b50a15a343ee3212ae7e99eedfa896e7a87fcd6
1 /*
2 * header.h
4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * Copyright (C) 2005-2006 Texas Instruments, Inc.
8 * This package is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 #include <linux/string.h>
18 #define DL_STRCMP strcmp
20 /* maximum parenthesis nesting in relocation stack expressions */
21 #define STATIC_EXPR_STK_SIZE 10
23 #include <linux/types.h>
25 #include "doff.h"
26 #include <dspbridge/dynamic_loader.h>
27 #include "params.h"
28 #include "dload_internal.h"
29 #include "reloc_table.h"
32 * Plausibility limits
34 * These limits are imposed upon the input DOFF file as a check for validity.
35 * They are hard limits, in that the load will fail if they are exceeded.
36 * The numbers selected are arbitrary, in that the loader implementation does
37 * not require these limits.
40 /* maximum number of bytes in string table */
41 #define MAX_REASONABLE_STRINGTAB (0x100000)
42 /* maximum number of code,data,etc. sections */
43 #define MAX_REASONABLE_SECTIONS (200)
44 /* maximum number of linker symbols */
45 #define MAX_REASONABLE_SYMBOLS (100000)
47 /* shift count to align F_BIG with DLOAD_LITTLE */
48 #define ALIGN_COFF_ENDIANNESS 7
49 #define ENDIANNESS_MASK (DF_BYTE_ORDER >> ALIGN_COFF_ENDIANNESS)