[LinuxBIOS] Correct function?

joe at smittys.pointclark.net joe at smittys.pointclark.net
Tue May 15 22:03:54 CEST 2007


Quoting joe at smittys.pointclark.net:

> Hello,
> Pardon my C, can you tell me if this function is setup correctly and
> going to return the correct value to the register??
>
> /* This function sets the DRAM Controller Mode Register to NOP. */
> static long set_drc_mode_nop(const struct mem_controller *ctrl)
> {
>        pci_write_config32(ctrl->f0, DRC, (1<<4));
> 	return 0;
> }
>
>
> Thanks - Joe
>

Let me elaborate on this. I am wondering if I can use a Bitwise Shift  
Operator in this function or does it need to be a 32 bit hex variable.

pci_write_config32(ctrl->f0, DRC, (1<<4));


Thanks - Joe





More information about the coreboot mailing list