Search
lxdream.org :: lxdream/test/lib.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/lib.h
changeset 812:8cc61d5ea1f8
prev278:a66aaa522d31
next815:866c103d72cd
author nkeynes
date Wed Aug 13 10:32:00 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Add ARM test harness (not quite working on DC but almost...)
file annotate diff log raw
1.1 --- a/test/lib.h Sun Jan 14 02:53:11 2007 +0000
1.2 +++ b/test/lib.h Wed Aug 13 10:32:00 2008 +0000
1.3 @@ -16,6 +16,8 @@
1.4 #define ASIC_IRQC2 0xA05f6938
1.5 #define IRQB0_MASK 0x0007B000
1.6
1.7 +#define AICA_RESET 0xA0702C00
1.8 +
1.9 #define float_read(A) (*((volatile float*)(A)))
1.10 #define float_write(A, V) ( (*((volatile float*)(A))) = (V) )
1.11 #define long_read(A) (*((volatile unsigned long*)(A)))
1.12 @@ -38,9 +40,8 @@
1.13 void reset_asic_status(void);
1.14 void g2_fifo_wait( void );
1.15
1.16 -void spu_memload( uint32_t dst, const void *src, int length );
1.17 -void spu_memread( void *dst, uint32_t src, int length );
1.18 -void dump_spu_memory( unsigned int from, int length );
1.19 +#define aica_enable() long_write( AICA_RESET, (long_read(AICA_RESET) & 0xFFFFFFFE) )
1.20 +#define aica_disable() long_write( AICA_RESET, (long_read(AICA_RESET) | 1) )
1.21
1.22 struct spudma_struct {
1.23 uint32_t g2_addr;
.