Hi,
On http://helllabs.org/~claudio/awebd/awe_ram.c I found some code which
transforms the
RAM on an AWE32/64 into a block-device. I tried to compile it, but I did not
succeed.
The writer of this code doesn't respond to e-mails.
Anyone out there who has a clue what is going wrong with it? (using kernel
2.2.18)
Am getting the following errors:
bash-2.03# gcc -Wall -Wstrict-prototypes -Winline -O2 -fomit-frame-pointer
-I/usr/src/linux/include/ -c awe_ram.c -o awe_ram.o 2>&1 | more
In file included from /usr/src/linux/include/linux/sched.h:74,
from awe_ram.c:26:
/usr/src/linux/include/asm/processor.h:287: warning: `struct task_struct'
declared inside parameter list
/usr/src/linux/include/asm/processor.h:287: warning: its scope is only this
definition or declaration,
/usr/src/linux/include/asm/processor.h:287: warning: which is probably not
what you want.
/usr/src/linux/include/asm/processor.h:291: warning: `struct task_struct'
declared inside parameter list
In file included from /usr/src/linux/include/linux/blk.h:4,
from awe_ram.c:42:
/usr/src/linux/include/linux/blkdev.h:23: parse error before `kdev_t'
/usr/src/linux/include/linux/blkdev.h:23: warning: no semicolon at end of
struct or union
/usr/src/linux/include/linux/blkdev.h:36: parse error before `}'
/usr/src/linux/include/linux/blkdev.h:39: parse error before `dev'
/usr/src/linux/include/linux/blkdev.h:39: warning: function declaration
isn't a prototype
/usr/src/linux/include/linux/blkdev.h:55: parse error before `unsigned'
/usr/src/linux/include/linux/blkdev.h:55: warning: function declaration
isn't a prototype
/usr/src/linux/include/linux/blkdev.h:75: field `plug' has incomplete type
/usr/src/linux/include/linux/blkdev.h:94: parse error before `kdev_t'
/usr/src/linux/include/linux/blkdev.h:94: warning: function declaration
isn't a prototype
/usr/src/linux/include/linux/blkdev.h:96: parse error before `mddev'
/usr/src/linux/include/linux/blkdev.h:96: warning: function declaration
isn't a prototype
<etc.>
Greetings,
Folkert van Heusden.
Hi,
Hmm, it's a curious driver... Here is the patch (and the final .c) to get
it to compile under 2.4.2
http://www.moses.uklinux.net/patches/aweram/
but the driver doesn't probe for the (extremely frequent!) case when the
device has been prepared by the ISA-PNP subsystem. Looking at the
infrastructure in drivers/net/ne.c it seems doable to teach it the
language of isapnp_find_dev() API -- one just needs to know what
signatures to plug into the ISAPNP_VENDOR() and ISAPNP_FUNCTION() macros
-- my guess is that the output of /proc/isapnp contains this info.
Interesting... I will play with this and see if it detects my ISA-PNP SB
AWE64 card. Give the above patch a try and see if you figure out the
values to plug in there sooner than I do.
Regards,
Tigran