4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * DCD (DSP/BIOS Bridge Configuration Database) constants and types.
8 * Copyright (C) 2008 Texas Instruments, Inc.
10 * This package is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
14 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22 #include <dspbridge/dbdefs.h>
23 #include <dspbridge/mgrpriv.h> /* for mgr_processorextinfo */
26 * The following defines are critical elements for the DCD module:
28 * - DCD_REGKEY enables DCD functions to locate registered DCD objects.
29 * - DCD_REGISTER_SECTION identifies the COFF section where the UUID of
30 * registered DCD objects are stored.
32 #define DCD_REGKEY "Software\\TexasInstruments\\DspBridge\\DCD"
33 #define DCD_REGISTER_SECTION ".dcd_register"
35 #define DCD_MAXPATHLENGTH 255
37 /* DCD Manager Object */
41 struct list_head link; /* Make it linked to a list */
42 char name[DCD_MAXPATHLENGTH]; /* Name of a given value entry */
43 char *path; /* Pointer to the actual data */
46 /* DCD Node Properties */
47 struct dcd_nodeprops {
48 struct dsp_ndbprops ndb_props;
51 char *str_create_phase_fxn;
52 char *str_delete_phase_fxn;
53 char *str_execute_phase_fxn;
56 /* Dynamic load properties */
57 u16 load_type; /* Static, dynamic, overlay */
58 u32 data_mem_seg_mask; /* Data memory requirements */
59 u32 code_mem_seg_mask; /* Code memory requirements */
62 /* DCD Generic Object Type */
63 struct dcd_genericobj {
65 struct dcd_nodeprops node_obj; /* node object. */
66 /* processor object. */
67 struct dsp_processorinfo proc_info;
68 /* extended proc object (private) */
69 struct mgr_processorextinfo ext_proc_obj;
73 /* DCD Internal Callback Type */
74 typedef int(*dcd_registerfxn) (struct dsp_uuid *uuid_obj,
75 enum dsp_dcdobjtype obj_type,
78 #endif /* DBDCDDEF_ */