libspe2  0.9a
dma.h
Go to the documentation of this file.
1 /*
2  * libspe2 - A wrapper library to adapt the JSRE SPU usage model to SPUFS
3  * Copyright (C) 2005 IBM Corp.
4  *
5  * This library is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation; either version 2.1 of the License,
8  * or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
13  * License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this library; if not, write to the Free Software Foundation,
17  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */
19 
20 #ifndef _dma_h_
21 #define _dma_h_
22 
23 #include <stdint.h>
24 
25 #include "spebase.h"
26 
28  uint32_t pad; /* reserved */
29  uint32_t lsa; /* local storage address */
30  uint64_t ea; /* effective address */
31  uint16_t size; /* transfer size */
32  uint16_t tag; /* command tag */
33  uint16_t class; /* class ID */
34  uint16_t cmd; /* command opcode */
35 };
36 
37 enum mfc_cmd {
38  MFC_CMD_PUT = 0x20,
39  MFC_CMD_PUTB = 0x21,
40  MFC_CMD_PUTF = 0x22,
41  MFC_CMD_GET = 0x40,
42  MFC_CMD_GETB = 0x41,
43  MFC_CMD_GETF = 0x42,
44 };
45 
46 #endif