LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
Macros | Functions
xe_internal.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define rput32(d)   *(volatile u32*)(xe->rb_secondary + xe->rb_secondary_wptr++ * 4) = (d);
 
#define rput(base, len)   memcpy(((void*)xe->rb_secondary) + xe->rb_secondary_wptr * 4, (base), (len) * 4); xe->rb_secondary_wptr += (len);
 
#define rput32p(d)   do { *(volatile u32*)(xe->rb_primary + xe->rb_primary_wptr++ * 4) = d; if (xe->rb_primary_wptr == RINGBUFFER_PRIMARY_SIZE) xe->rb_primary_wptr = 0; } while (0)
 
#define rputf(d)   rput32(FLOAT(d));
 
#define r32(o)   xe->regs[(o)/4]
 
#define w32(o, v)   xe->regs[(o)/4] = (v)
 

Functions

void Xe_pSyncToDevice (struct XenosDevice *xe, volatile void *data, int len)
 
void Xe_pSyncFromDevice (struct XenosDevice *xe, volatile void *data, int len)
 
void * Xe_pAlloc (struct XenosDevice *xe, u32 *phys, int size, int align)
 
void Xe_pDebugSync (struct XenosDevice *xe)
 
void Xe_pSetState (struct XenosDevice *xe)
 

Macro Definition Documentation

◆ r32

#define r32 (   o)    xe->regs[(o)/4]

Definition at line 20 of file xe_internal.h.

◆ rput

#define rput (   base,
  len 
)    memcpy(((void*)xe->rb_secondary) + xe->rb_secondary_wptr * 4, (base), (len) * 4); xe->rb_secondary_wptr += (len);

Definition at line 15 of file xe_internal.h.

◆ rput32

#define rput32 (   d)    *(volatile u32*)(xe->rb_secondary + xe->rb_secondary_wptr++ * 4) = (d);

Definition at line 14 of file xe_internal.h.

◆ rput32p

#define rput32p (   d)    do { *(volatile u32*)(xe->rb_primary + xe->rb_primary_wptr++ * 4) = d; if (xe->rb_primary_wptr == RINGBUFFER_PRIMARY_SIZE) xe->rb_primary_wptr = 0; } while (0)

Definition at line 16 of file xe_internal.h.

◆ rputf

#define rputf (   d)    rput32(FLOAT(d));

Definition at line 18 of file xe_internal.h.

◆ w32

#define w32 (   o,
 
)    xe->regs[(o)/4] = (v)

Definition at line 21 of file xe_internal.h.

Function Documentation

◆ Xe_pAlloc()

void * Xe_pAlloc ( struct XenosDevice xe,
u32 phys,
int  size,
int  align 
)

Definition at line 62 of file xe.c.

◆ Xe_pDebugSync()

void Xe_pDebugSync ( struct XenosDevice xe)

Definition at line 1284 of file xe.c.

◆ Xe_pSetState()

void Xe_pSetState ( struct XenosDevice xe)

Definition at line 1688 of file xe.c.

◆ Xe_pSyncFromDevice()

void Xe_pSyncFromDevice ( struct XenosDevice xe,
volatile void *  data,
int  len 
)

Definition at line 57 of file xe.c.

◆ Xe_pSyncToDevice()

void Xe_pSyncToDevice ( struct XenosDevice xe,
volatile void *  data,
int  len 
)

Definition at line 52 of file xe.c.