Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
dsp_defs.h File Reference
#include "dspdids.h"

Go to the source code of this file.

Data Structures

struct  _OsFileHandle_
 
struct  tag_dsp_combifile_header
 
struct  tag_dsp_combifile_directory_entry
 
struct  tag_dsp_file_header
 
struct  tag_dsp_memory_block_desc
 
struct  tag_dsp_segment_desc
 
struct  tag_dsp_symbol_desc
 
struct  tag_dsp_data_block_header
 
struct  tag_dsp_download_desc
 
struct  tag_dsp_portable_download_desc
 

Macros

#define dsp_download_reserve_space(fp, length)
 
#define DSP_TELINDUS_FILE   "dspdload.bin"
 
#define DSP_QSIG_TELINDUS_FILE   "dspdqsig.bin"
 
#define DSP_MDM_TELINDUS_FILE   "dspdvmdm.bin"
 
#define DSP_FAX_TELINDUS_FILE   "dspdvfax.bin"
 
#define DSP_DIRECTORY_ENTRIES   64
 
#define DSP_MEMORY_TYPE_EXTERNAL_DM   0
 
#define DSP_MEMORY_TYPE_EXTERNAL_PM   1
 
#define DSP_MEMORY_TYPE_INTERNAL_DM   2
 
#define DSP_MEMORY_TYPE_INTERNAL_PM   3
 
#define DSP_DOWNLOAD_FLAG_BOOTABLE   0x0001
 
#define DSP_DOWNLOAD_FLAG_2181   0x0002
 
#define DSP_DOWNLOAD_FLAG_TIMECRITICAL   0x0004
 
#define DSP_DOWNLOAD_FLAG_COMPAND   0x0008
 
#define DSP_MEMORY_BLOCK_COUNT   16
 
#define DSP_SEGMENT_PM_FLAG   0x0001
 
#define DSP_SEGMENT_SHARED_FLAG   0x0002
 
#define DSP_SEGMENT_EXTERNAL_DM   DSP_MEMORY_TYPE_EXTERNAL_DM
 
#define DSP_SEGMENT_EXTERNAL_PM   DSP_MEMORY_TYPE_EXTERNAL_PM
 
#define DSP_SEGMENT_INTERNAL_DM   DSP_MEMORY_TYPE_INTERNAL_DM
 
#define DSP_SEGMENT_INTERNAL_PM   DSP_MEMORY_TYPE_INTERNAL_PM
 
#define DSP_SEGMENT_FIRST_RELOCATABLE   4
 
#define DSP_DATA_BLOCK_PM_FLAG   0x0001
 
#define DSP_DATA_BLOCK_DWORD_FLAG   0x0002
 
#define DSP_DATA_BLOCK_RESOLVE_FLAG   0x0004
 
#define DSP_RELOC_NONE   0x00
 
#define DSP_RELOC_SEGMENT_MASK   0x3f
 
#define DSP_RELOC_TYPE_MASK   0xc0
 
#define DSP_RELOC_TYPE_0   0x00 /* relocation of address in DM word / high part of PM word */
 
#define DSP_RELOC_TYPE_1   0x40 /* relocation of address in low part of PM data word */
 
#define DSP_RELOC_TYPE_2   0x80 /* relocation of address in standard command */
 
#define DSP_RELOC_TYPE_3   0xc0 /* relocation of address in call/jump on flag in */
 
#define DSP_COMBIFILE_FORMAT_IDENTIFICATION_SIZE   48
 
#define DSP_COMBIFILE_FORMAT_VERSION_BCD   0x0100
 
#define DSP_FILE_FORMAT_IDENTIFICATION_SIZE   48
 
#define DSP_FILE_FORMAT_VERSION_BCD   0x0100
 
#define DSP_DOWNLOAD_INDEX_KERNEL   0
 
#define DSP30TX_DOWNLOAD_INDEX_KERNEL   1
 
#define DSP30RX_DOWNLOAD_INDEX_KERNEL   2
 
#define DSP_MAX_DOWNLOAD_COUNT   64
 
#define DSP_DOWNLOAD_MAX_SEGMENTS   16
 
#define DSP_UDATA_REQUEST_RECONFIGURE   0
 
#define DSP_RECONFIGURE_TX_FLAG   0x8000
 
#define DSP_RECONFIGURE_SHORT_TRAIN_FLAG   0x4000
 
#define DSP_RECONFIGURE_ECHO_PROTECT_FLAG   0x2000
 
#define DSP_RECONFIGURE_HDLC_FLAG   0x1000
 
#define DSP_RECONFIGURE_SYNC_FLAG   0x0800
 
#define DSP_RECONFIGURE_PROTOCOL_MASK   0x00ff
 
#define DSP_RECONFIGURE_IDLE   0
 
#define DSP_RECONFIGURE_V25   1
 
#define DSP_RECONFIGURE_V21_CH2   2
 
#define DSP_RECONFIGURE_V27_2400   3
 
#define DSP_RECONFIGURE_V27_4800   4
 
#define DSP_RECONFIGURE_V29_7200   5
 
#define DSP_RECONFIGURE_V29_9600   6
 
#define DSP_RECONFIGURE_V33_12000   7
 
#define DSP_RECONFIGURE_V33_14400   8
 
#define DSP_RECONFIGURE_V17_7200   9
 
#define DSP_RECONFIGURE_V17_9600   10
 
#define DSP_RECONFIGURE_V17_12000   11
 
#define DSP_RECONFIGURE_V17_14400   12
 
#define DSP_UDATA_INDICATION_SYNC   0
 
#define DSP_UDATA_INDICATION_DCD_OFF   1
 
#define DSP_UDATA_INDICATION_DCD_ON   2
 
#define DSP_UDATA_INDICATION_CTS_OFF   3
 
#define DSP_UDATA_INDICATION_CTS_ON   4
 
#define DSP_CONNECTED_NORM_UNSPECIFIED   0
 
#define DSP_CONNECTED_NORM_V21   1
 
#define DSP_CONNECTED_NORM_V23   2
 
#define DSP_CONNECTED_NORM_V22   3
 
#define DSP_CONNECTED_NORM_V22_BIS   4
 
#define DSP_CONNECTED_NORM_V32_BIS   5
 
#define DSP_CONNECTED_NORM_V34   6
 
#define DSP_CONNECTED_NORM_V8   7
 
#define DSP_CONNECTED_NORM_BELL_212A   8
 
#define DSP_CONNECTED_NORM_BELL_103   9
 
#define DSP_CONNECTED_NORM_V29_LEASED_LINE   10
 
#define DSP_CONNECTED_NORM_V33_LEASED_LINE   11
 
#define DSP_CONNECTED_NORM_TFAST   12
 
#define DSP_CONNECTED_NORM_V21_CH2   13
 
#define DSP_CONNECTED_NORM_V27_TER   14
 
#define DSP_CONNECTED_NORM_V29   15
 
#define DSP_CONNECTED_NORM_V33   16
 
#define DSP_CONNECTED_NORM_V17   17
 
#define DSP_CONNECTED_OPTION_TRELLIS   0x0001
 

Typedefs

typedef long(* OsFileIo )(struct _OsFileHandle_ *handle, void *buffer, long size)
 
typedef long(* OsFileSeek )(struct _OsFileHandle_ *handle, long position, int mode)
 
typedef long(* OsCardLoad )(struct _OsFileHandle_ *handle, long length, void **addr)
 
typedef struct _OsFileHandle_ OsFileHandle
 
typedef struct
tag_dsp_combifile_header 
t_dsp_combifile_header
 
typedef struct
tag_dsp_combifile_directory_entry 
t_dsp_combifile_directory_entry
 
typedef struct tag_dsp_file_header t_dsp_file_header
 
typedef struct
tag_dsp_memory_block_desc 
t_dsp_memory_block_desc
 
typedef struct tag_dsp_segment_desc t_dsp_segment_desc
 
typedef struct tag_dsp_symbol_desc t_dsp_symbol_desc
 
typedef struct
tag_dsp_data_block_header 
t_dsp_data_block_header
 
typedef struct
tag_dsp_download_desc 
t_dsp_desc
 
typedef struct
tag_dsp_portable_download_desc 
t_dsp_portable_desc
 

Functions

OsFileHandleOsOpenFile (char *path_name)
 
void OsCloseFile (OsFileHandle *fp)
 
chardsp_read_file (OsFileHandle *fp, word card_type_number, word *p_dsp_download_count, t_dsp_desc *p_dsp_download_table, t_dsp_portable_desc *p_dsp_portable_download_table)
 

Macro Definition Documentation

#define DSP30RX_DOWNLOAD_INDEX_KERNEL   2

Definition at line 202 of file dsp_defs.h.

#define DSP30TX_DOWNLOAD_INDEX_KERNEL   1

Definition at line 201 of file dsp_defs.h.

#define DSP_COMBIFILE_FORMAT_IDENTIFICATION_SIZE   48

Definition at line 90 of file dsp_defs.h.

#define DSP_COMBIFILE_FORMAT_VERSION_BCD   0x0100

Definition at line 91 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_BELL_103   9

Definition at line 284 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_BELL_212A   8

Definition at line 283 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_TFAST   12

Definition at line 287 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_UNSPECIFIED   0

Definition at line 275 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V17   17

Definition at line 292 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V21   1

Definition at line 276 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V21_CH2   13

Definition at line 288 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V22   3

Definition at line 278 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V22_BIS   4

Definition at line 279 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V23   2

Definition at line 277 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V27_TER   14

Definition at line 289 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V29   15

Definition at line 290 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V29_LEASED_LINE   10

Definition at line 285 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V32_BIS   5

Definition at line 280 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V33   16

Definition at line 291 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V33_LEASED_LINE   11

Definition at line 286 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V34   6

Definition at line 281 of file dsp_defs.h.

#define DSP_CONNECTED_NORM_V8   7

Definition at line 282 of file dsp_defs.h.

#define DSP_CONNECTED_OPTION_TRELLIS   0x0001

Definition at line 293 of file dsp_defs.h.

#define DSP_DATA_BLOCK_DWORD_FLAG   0x0002

Definition at line 81 of file dsp_defs.h.

#define DSP_DATA_BLOCK_PM_FLAG   0x0001

Definition at line 80 of file dsp_defs.h.

#define DSP_DATA_BLOCK_RESOLVE_FLAG   0x0004

Definition at line 82 of file dsp_defs.h.

#define DSP_DIRECTORY_ENTRIES   64

Definition at line 63 of file dsp_defs.h.

#define DSP_DOWNLOAD_FLAG_2181   0x0002

Definition at line 69 of file dsp_defs.h.

#define DSP_DOWNLOAD_FLAG_BOOTABLE   0x0001

Definition at line 68 of file dsp_defs.h.

#define DSP_DOWNLOAD_FLAG_COMPAND   0x0008

Definition at line 71 of file dsp_defs.h.

#define DSP_DOWNLOAD_FLAG_TIMECRITICAL   0x0004

Definition at line 70 of file dsp_defs.h.

#define DSP_DOWNLOAD_INDEX_KERNEL   0

Definition at line 200 of file dsp_defs.h.

#define DSP_DOWNLOAD_MAX_SEGMENTS   16

Definition at line 204 of file dsp_defs.h.

#define dsp_download_reserve_space (   fp,
  length 
)

Definition at line 30 of file dsp_defs.h.

#define DSP_FAX_TELINDUS_FILE   "dspdvfax.bin"

Definition at line 62 of file dsp_defs.h.

#define DSP_FILE_FORMAT_IDENTIFICATION_SIZE   48

Definition at line 92 of file dsp_defs.h.

#define DSP_FILE_FORMAT_VERSION_BCD   0x0100

Definition at line 93 of file dsp_defs.h.

#define DSP_MAX_DOWNLOAD_COUNT   64

Definition at line 203 of file dsp_defs.h.

#define DSP_MDM_TELINDUS_FILE   "dspdvmdm.bin"

Definition at line 61 of file dsp_defs.h.

#define DSP_MEMORY_BLOCK_COUNT   16

Definition at line 72 of file dsp_defs.h.

#define DSP_MEMORY_TYPE_EXTERNAL_DM   0

Definition at line 64 of file dsp_defs.h.

#define DSP_MEMORY_TYPE_EXTERNAL_PM   1

Definition at line 65 of file dsp_defs.h.

#define DSP_MEMORY_TYPE_INTERNAL_DM   2

Definition at line 66 of file dsp_defs.h.

#define DSP_MEMORY_TYPE_INTERNAL_PM   3

Definition at line 67 of file dsp_defs.h.

#define DSP_QSIG_TELINDUS_FILE   "dspdqsig.bin"

Definition at line 60 of file dsp_defs.h.

#define DSP_RECONFIGURE_ECHO_PROTECT_FLAG   0x2000

Definition at line 214 of file dsp_defs.h.

#define DSP_RECONFIGURE_HDLC_FLAG   0x1000

Definition at line 215 of file dsp_defs.h.

#define DSP_RECONFIGURE_IDLE   0

Definition at line 218 of file dsp_defs.h.

#define DSP_RECONFIGURE_PROTOCOL_MASK   0x00ff

Definition at line 217 of file dsp_defs.h.

#define DSP_RECONFIGURE_SHORT_TRAIN_FLAG   0x4000

Definition at line 213 of file dsp_defs.h.

#define DSP_RECONFIGURE_SYNC_FLAG   0x0800

Definition at line 216 of file dsp_defs.h.

#define DSP_RECONFIGURE_TX_FLAG   0x8000

Definition at line 212 of file dsp_defs.h.

#define DSP_RECONFIGURE_V17_12000   11

Definition at line 229 of file dsp_defs.h.

#define DSP_RECONFIGURE_V17_14400   12

Definition at line 230 of file dsp_defs.h.

#define DSP_RECONFIGURE_V17_7200   9

Definition at line 227 of file dsp_defs.h.

#define DSP_RECONFIGURE_V17_9600   10

Definition at line 228 of file dsp_defs.h.

#define DSP_RECONFIGURE_V21_CH2   2

Definition at line 220 of file dsp_defs.h.

#define DSP_RECONFIGURE_V25   1

Definition at line 219 of file dsp_defs.h.

#define DSP_RECONFIGURE_V27_2400   3

Definition at line 221 of file dsp_defs.h.

#define DSP_RECONFIGURE_V27_4800   4

Definition at line 222 of file dsp_defs.h.

#define DSP_RECONFIGURE_V29_7200   5

Definition at line 223 of file dsp_defs.h.

#define DSP_RECONFIGURE_V29_9600   6

Definition at line 224 of file dsp_defs.h.

#define DSP_RECONFIGURE_V33_12000   7

Definition at line 225 of file dsp_defs.h.

#define DSP_RECONFIGURE_V33_14400   8

Definition at line 226 of file dsp_defs.h.

#define DSP_RELOC_NONE   0x00

Definition at line 83 of file dsp_defs.h.

#define DSP_RELOC_SEGMENT_MASK   0x3f

Definition at line 84 of file dsp_defs.h.

#define DSP_RELOC_TYPE_0   0x00 /* relocation of address in DM word / high part of PM word */

Definition at line 86 of file dsp_defs.h.

#define DSP_RELOC_TYPE_1   0x40 /* relocation of address in low part of PM data word */

Definition at line 87 of file dsp_defs.h.

#define DSP_RELOC_TYPE_2   0x80 /* relocation of address in standard command */

Definition at line 88 of file dsp_defs.h.

#define DSP_RELOC_TYPE_3   0xc0 /* relocation of address in call/jump on flag in */

Definition at line 89 of file dsp_defs.h.

#define DSP_RELOC_TYPE_MASK   0xc0

Definition at line 85 of file dsp_defs.h.

#define DSP_SEGMENT_EXTERNAL_DM   DSP_MEMORY_TYPE_EXTERNAL_DM

Definition at line 75 of file dsp_defs.h.

#define DSP_SEGMENT_EXTERNAL_PM   DSP_MEMORY_TYPE_EXTERNAL_PM

Definition at line 76 of file dsp_defs.h.

#define DSP_SEGMENT_FIRST_RELOCATABLE   4

Definition at line 79 of file dsp_defs.h.

#define DSP_SEGMENT_INTERNAL_DM   DSP_MEMORY_TYPE_INTERNAL_DM

Definition at line 77 of file dsp_defs.h.

#define DSP_SEGMENT_INTERNAL_PM   DSP_MEMORY_TYPE_INTERNAL_PM

Definition at line 78 of file dsp_defs.h.

#define DSP_SEGMENT_PM_FLAG   0x0001

Definition at line 73 of file dsp_defs.h.

#define DSP_SEGMENT_SHARED_FLAG   0x0002

Definition at line 74 of file dsp_defs.h.

#define DSP_TELINDUS_FILE   "dspdload.bin"

Definition at line 58 of file dsp_defs.h.

#define DSP_UDATA_INDICATION_CTS_OFF   3

Definition at line 262 of file dsp_defs.h.

#define DSP_UDATA_INDICATION_CTS_ON   4

Definition at line 267 of file dsp_defs.h.

#define DSP_UDATA_INDICATION_DCD_OFF   1

Definition at line 249 of file dsp_defs.h.

#define DSP_UDATA_INDICATION_DCD_ON   2

Definition at line 254 of file dsp_defs.h.

#define DSP_UDATA_INDICATION_SYNC   0

Definition at line 244 of file dsp_defs.h.

#define DSP_UDATA_REQUEST_RECONFIGURE   0

Definition at line 205 of file dsp_defs.h.

Typedef Documentation

typedef long(* OsCardLoad)(struct _OsFileHandle_ *handle, long length, void **addr)

Definition at line 44 of file dsp_defs.h.

typedef long(* OsFileIo)(struct _OsFileHandle_ *handle, void *buffer, long size)

Definition at line 38 of file dsp_defs.h.

typedef long(* OsFileSeek)(struct _OsFileHandle_ *handle, long position, int mode)

Definition at line 41 of file dsp_defs.h.

Function Documentation

char* dsp_read_file ( OsFileHandle fp,
word  card_type_number,
word p_dsp_download_count,
t_dsp_desc p_dsp_download_table,
t_dsp_portable_desc p_dsp_portable_download_table 
)
void OsCloseFile ( OsFileHandle fp)
OsFileHandle* OsOpenFile ( char path_name)