LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
Functions | Variables
xenon_power.c File Reference
#include <stdio.h>
#include <xenon_smc/xenon_smc.h>
#include <xenon_soc/xenon_power.h>
#include <xenon_soc/xenon_io.h>
#include <xenon_nand/xenon_config.h>
#include <ppc/register.h>
#include <ppc/xenonsprs.h>
#include <ppc/atomic.h>
#include <time/time.h>
#include <pci/io.h>
#include <debug.h>
Include dependency graph for xenon_power.c:

Go to the source code of this file.

Functions

void xenon_yield (void)
 
void wakeup_cpus (void)
 
void prepare_sleep (uint64_t *save)
 
void cpusleep (void)
 
void secondary_wakeup (void)
 
void xenon_thread_sleep (void)
 
void xenon_set_speed (int new_speed, int vid_delta)
 
int xenon_get_speed ()
 
int xenon_run_thread_task (int thread, void *stack, void *task)
 
int xenon_is_thread_task_running (int thread)
 
void xenon_make_it_faster (int speed)
 
void xenon_thread_startup (void)
 
void xenon_sleep_thread (int thread)
 
void xenon_set_single_thread_mode ()
 

Variables

volatile int wait [12]
 
volatile int secondary_alive
 
unsigned int secondary_lock
 

Function Documentation

◆ cpusleep()

void cpusleep ( void  )

◆ prepare_sleep()

void prepare_sleep ( uint64_t save)

Definition at line 45 of file xenon_power.c.

◆ secondary_wakeup()

void secondary_wakeup ( void  )

◆ wakeup_cpus()

void wakeup_cpus ( void  )

Definition at line 29 of file xenon_power.c.

◆ xenon_get_speed()

int xenon_get_speed ( )

Definition at line 202 of file xenon_power.c.

◆ xenon_is_thread_task_running()

int xenon_is_thread_task_running ( int  thread)

Definition at line 217 of file xenon_power.c.

◆ xenon_make_it_faster()

void xenon_make_it_faster ( int  speed)

Definition at line 226 of file xenon_power.c.

◆ xenon_run_thread_task()

int xenon_run_thread_task ( int  thread,
void *  stack,
void *  task 
)

Definition at line 208 of file xenon_power.c.

◆ xenon_set_single_thread_mode()

void xenon_set_single_thread_mode ( )

Definition at line 276 of file xenon_power.c.

◆ xenon_set_speed()

void xenon_set_speed ( int  new_speed,
int  vid_delta 
)

Definition at line 72 of file xenon_power.c.

◆ xenon_sleep_thread()

void xenon_sleep_thread ( int  thread)

Definition at line 270 of file xenon_power.c.

◆ xenon_thread_sleep()

void xenon_thread_sleep ( void  )

Definition at line 60 of file xenon_power.c.

◆ xenon_thread_startup()

void xenon_thread_startup ( void  )

Definition at line 263 of file xenon_power.c.

◆ xenon_yield()

void xenon_yield ( void  )

Definition at line 20 of file xenon_power.c.

Variable Documentation

◆ secondary_alive

volatile int secondary_alive
extern

◆ secondary_lock

unsigned int secondary_lock
extern

◆ wait

volatile int wait[12]
extern