3
* Copyright (c) 2007 Massachusetts Institute of Technology
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 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
#include <spu_intrinsics.h>
23
#include <spu_mfcio.h>
25
#include "../fftw-cell.h"
27
static void wait(void)
29
(void) spu_read_in_mbox();
32
int main(unsigned long long spu_id, unsigned long long parm)
34
static struct spu_context ctx __attribute__ ((aligned (ALIGNMENT)));
36
spu_writech(MFC_WrTagMask, -1);
42
X(spu_dma1d)(&ctx, parm, sizeof(ctx), MFC_GET_CMD);
46
X(spu_do_dft)(&ctx.u.dft);
49
case FFTW_SPE_TRANSPOSE:
50
X(spu_do_transpose)(&ctx.u.transpose);
54
X(spu_do_copy)(&ctx.u.copy);
61
/* signal completion: */
63
X(spu_dma1d)(&ctx, parm, sizeof(ctx), MFC_PUTF_CMD);