blob: 1286c823f0d881f58137cf98eb3b9b3cde2d606e [file] [log] [blame]
Dwayne Grant McConnellb9e3bd72006-11-20 18:44:58 +01001/*
2 * SPU info structures
3 *
4 * (C) Copyright 2006 IBM Corp.
5 *
6 * Author: Dwayne Grant McConnell <decimal@us.ibm.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23#ifndef _SPU_INFO_H
24#define _SPU_INFO_H
25
Jaswinder Singh Rajput1a16bc42009-01-31 11:52:05 +053026#include <linux/types.h>
27
Dwayne Grant McConnellb9e3bd72006-11-20 18:44:58 +010028#ifdef __KERNEL__
29#include <asm/spu.h>
Dwayne Grant McConnellb9e3bd72006-11-20 18:44:58 +010030#else
31struct mfc_cq_sr {
32 __u64 mfc_cq_data0_RW;
33 __u64 mfc_cq_data1_RW;
34 __u64 mfc_cq_data2_RW;
35 __u64 mfc_cq_data3_RW;
36};
37#endif /* __KERNEL__ */
38
39struct spu_dma_info {
40 __u64 dma_info_type;
41 __u64 dma_info_mask;
42 __u64 dma_info_status;
43 __u64 dma_info_stall_and_notify;
44 __u64 dma_info_atomic_command_status;
45 struct mfc_cq_sr dma_info_command_data[16];
46};
47
48struct spu_proxydma_info {
49 __u64 proxydma_info_type;
50 __u64 proxydma_info_mask;
51 __u64 proxydma_info_status;
52 struct mfc_cq_sr proxydma_info_command_data[8];
53};
54
55#endif