Fix a bunch of boot.lds files so that they build with newer ld. The stack/bss section...
[kugel-rb.git] / firmware / target / arm / tms320dm320 / dsp-target.h
blobf2c70826e81a5e603133ebf4b281f48f476dedb1
1 /*
2 * (C) Copyright 2007 Catalin Patulea <cat@vv.carleton.ca>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17 * MA 02111-1307 USA
20 #ifndef DSP_H
21 #define DSP_H
23 /* DSP memory is mapped into ARM space via HPIB. */
24 #define DSP_(addr) (*(volatile unsigned short *)(0x40000 + ((addr) << 1)))
26 /* A "DSP image" is an array of these, terminated by raw_data_size_half = 0. */
27 struct dsp_section {
28 const unsigned short *raw_data;
29 unsigned short physical_addr;
30 unsigned short raw_data_size_half;
33 #define dsp_message (*(volatile struct ipc_message *)&DSP_(_status))
35 /* Must define struct dsp_section before including the image. */
36 #include "dsp/dsp-image.h"
38 void dsp_wake(void);
39 void dsp_load(const struct dsp_section *im);
40 void dsp_reset(void);
42 #endif