bios/sdram.c: add genericity to sdrrd and sdrwr