rem: uint32 voodoo3_get_memory_size() {
add: voodoo3_get_memory_size(void) {
context: uint32 voodoo3_get_memory_size() {	uint32 draminit0 = 0;	uint32 draminit1 = 0;	uint32 miscinit1 = 0;	uint32 lfbsize   = 0;	int32 sgram_p     = 0;	draminit0 = voodoo3_read32(DRAMINIT0);  	draminit1 = voodoo3_read32(DRAMINIT1);	sgram_p = (draminit1 & DRAMINIT1_MEM_SDRAM) ? 0 : 1;  	lfbsize = sgram_p ?		(((draminit0 & DRAMINIT0_SGRAM_NUM)  ? 2 : 1) * 		((draminit0 & DRAMINIT0_SGRAM_TYPE) ? 8 : 4) * 1024 * 1024) :		16 * 1024 * 1024;	/* disable block writes for SDRAM (why?) */	miscinit1 = voodoo3_read32(MISCINIT1);	miscinit1 |= sgram_p ? 0 : MISCINIT1_2DBLOCK_DIS;	miscinit1 |= MISCINIT1_CLUT_INV;	voodoo3_make_room(1);	voodoo3_write32(MISCINIT1, miscinit1);	return lfbsize;}