Search
lxdream.org :: lxdream/test/lib.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/lib.h
changeset 210:c356f597c896
prev190:f7653df5e832
next278:a66aaa522d31
author nkeynes
date Fri Dec 29 00:24:43 2006 +0000 (17 years ago)
permissions -rw-r--r--
last change Limit number of sectors read at once (linux driver seems to throw a hissy
fit if you request too many at a time)
file annotate diff log raw
1.1 --- a/test/lib.h Wed Aug 02 04:13:15 2006 +0000
1.2 +++ b/test/lib.h Fri Dec 29 00:24:43 2006 +0000
1.3 @@ -16,6 +16,8 @@
1.4 #define ASIC_IRQC2 0xA05f6938
1.5 #define IRQB0_MASK 0x0007B000
1.6
1.7 +#define float_read(A) (*((volatile float*)(A)))
1.8 +#define float_write(A, V) ( (*((volatile float*)(A))) = (V) )
1.9 #define long_read(A) (*((volatile unsigned long*)(A)))
1.10 #define long_write(A, V) ( (*((volatile unsigned long*)(A))) = (V) )
1.11 #define word_read(A) (*((volatile unsigned short*)(A)))
.