Defines | Functions

n64sys.h File Reference

N64 System Interface. More...

Go to the source code of this file.

Defines

#define UncachedAddr(_addr)   ((void *)(((unsigned long)(_addr))|0x20000000))
 Return the uncached memory address for a given address.
#define UncachedShortAddr(_addr)   ((short *)(((unsigned long)(_addr))|0x20000000))
 Return the uncached memory address for a given address.
#define UncachedUShortAddr(_addr)   ((unsigned short *)(((unsigned long)(_addr))|0x20000000))
 Return the uncached memory address for a given address.
#define UncachedLongAddr(_addr)   ((long *)(((unsigned long)(_addr))|0x20000000))
 Return the uncached memory address for a given address.
#define UncachedULongAddr(_addr)   ((unsigned long *)(((unsigned long)(_addr))|0x20000000))
 Return the uncached memory address for a given address.
#define CachedAddr(_addr)   (((void *)(((unsigned long)(_addr))&~0x20000000))
 Return the cached memory address for a given address.
#define COUNTS_PER_SECOND   (93750000/2)
 Number of updates to the count register per second.

Functions

int sys_get_boot_cic ()
 Return the boot CIC.
void sys_set_boot_cic (int bc)
 Set the boot CIC.
volatile unsigned long get_ticks (void)
 Read the number of ticks since system startup.
volatile unsigned long get_ticks_ms (void)
 Read the number of millisecounds since system startup.
void wait_ticks (unsigned long wait)
 Spin wait until the number of ticks have elapsed.
void wait_ms (unsigned long wait)
 Spin wait until the number of millisecounds have elapsed.
void data_cache_hit_invalidate (volatile void *addr, unsigned long length)
 Force a data cache invalidate over a memory region.
void data_cache_hit_writeback (volatile void *addr, unsigned long length)
 Force a data cache writeback over a memory region.
void data_cache_hit_writeback_invalidate (volatile void *addr, unsigned long length)
 Force a data cache writeback invalidate over a memory region.
void data_cache_index_writeback_invalidate (volatile void *addr, unsigned long length)
 Force a data cache index writeback invalidate over a memory region.
void inst_cache_hit_writeback (volatile void *addr, unsigned long length)
 Force an instruction cache writeback over a memory region.
void inst_cache_hit_invalidate (volatile void *addr, unsigned long length)
 Force an instruction cache invalidate over a memory region.
void inst_cache_index_invalidate (volatile void *addr, unsigned long length)
 Force an instruction cache index invalidate over a memory region.

Detailed Description

N64 System Interface.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines