Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
spu.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/mmzone.h>
#include <linux/export.h>
#include <linux/io.h>
#include <linux/mm.h>
#include <asm/spu.h>
#include <asm/spu_priv1.h>
#include <asm/lv1call.h>
#include <asm/ps3.h>
#include "../cell/spufs/spufs.h"
#include "platform.h"

Go to the source code of this file.

Data Structures

struct  spe_shadow
 
struct  priv1_cache
 
struct  spu_pdata
 

Macros

#define dump_areas(_a, _b, _c, _d, _e)   _dump_areas(_a, _b, _c, _d, _e, __func__, __LINE__)
 

Enumerations

enum  spe_type { SPE_TYPE_LOGICAL = 0 }
 
enum  spe_ex_state { SPE_EX_STATE_UNEXECUTABLE = 0, SPE_EX_STATE_EXECUTABLE = 2, SPE_EX_STATE_EXECUTED = 3 }
 

Functions

u64 ps3_get_spe_id (void *arg)
 
 EXPORT_SYMBOL_GPL (ps3_get_spe_id)
 
void ps3_spu_set_platform (void)
 

Variables

struct spu_management_ops spu_management_ps3_ops
 
struct spu_priv1_ops spu_priv1_ps3_ops
 

Macro Definition Documentation

#define dump_areas (   _a,
  _b,
  _c,
  _d,
  _e 
)    _dump_areas(_a, _b, _c, _d, _e, __func__, __LINE__)

Definition at line 133 of file spu.c.

Enumeration Type Documentation

enum spe_ex_state - Logical spe execution state. : Uninitialized. : Enabled, not ready. : Ready for use.

The execution state (status) of the logical spe as reported in struct spe_shadow:spe_execution_status.

Enumerator:
SPE_EX_STATE_UNEXECUTABLE 
SPE_EX_STATE_EXECUTABLE 
SPE_EX_STATE_EXECUTED 

Definition at line 87 of file spu.c.

enum spe_type

enum spe_type - Type of spe to create. : Standard logical spe.

For use with lv1_construct_logical_spe(). The current HV does not support any types other than those listed.

Enumerator:
SPE_TYPE_LOGICAL 

Definition at line 47 of file spu.c.

Function Documentation

EXPORT_SYMBOL_GPL ( ps3_get_spe_id  )
u64 ps3_get_spe_id ( void arg)
inline

Definition at line 146 of file spu.c.

void ps3_spu_set_platform ( void  )

Definition at line 632 of file spu.c.

Variable Documentation

struct spu_management_ops spu_management_ps3_ops
Initial value:
= {
.enumerate_spus = ps3_enumerate_spus,
.create_spu = ps3_create_spu,
.destroy_spu = ps3_destroy_spu,
.enable_spu = ps3_enable_spu,
.disable_spu = ps3_disable_spu,
.init_affinity = ps3_init_affinity,
}

Definition at line 468 of file spu.c.

struct spu_priv1_ops spu_priv1_ps3_ops
Initial value:
= {
.int_mask_and = int_mask_and,
.int_mask_or = int_mask_or,
.int_mask_set = int_mask_set,
.int_mask_get = int_mask_get,
.int_stat_clear = int_stat_clear,
.int_stat_get = int_stat_get,
.cpu_affinity_set = cpu_affinity_set,
.mfc_dar_get = mfc_dar_get,
.mfc_dsisr_set = mfc_dsisr_set,
.mfc_dsisr_get = mfc_dsisr_get,
.mfc_sdr_setup = mfc_sdr_setup,
.mfc_sr1_set = mfc_sr1_set,
.mfc_sr1_get = mfc_sr1_get,
.mfc_tclass_id_set = mfc_tclass_id_set,
.mfc_tclass_id_get = mfc_tclass_id_get,
.tlb_invalidate = tlb_invalidate,
.resource_allocation_groupID_set = resource_allocation_groupID_set,
.resource_allocation_groupID_get = resource_allocation_groupID_get,
.resource_allocation_enable_set = resource_allocation_enable_set,
.resource_allocation_enable_get = resource_allocation_enable_get,
}

Definition at line 609 of file spu.c.