/* Copyright (C) 2008 - Ruben Niederhagen
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 3
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, you will find it online at
 * http://www.gnu.org/licenses/gpl.html
 */

#ifndef _SRC_SPU_TYPES_H_
#define _SRC_SPU_TYPES_H_

#include <stdint.h>

#include "include/types.h"

typedef struct
{
	volatile uint32_t phys_id[16];
	volatile uint32_t log_id[16];

   volatile addr64_t ls[16];

   int my_id;

	volatile global_parameters_t global_parameters __attribute__((aligned (16)));

	volatile local_parameters_t local_parameters __attribute__((aligned (16)));
} spu_data_t;

#endif /* _SRC_SPU_TYPES_H_ */

