MCP750 PCI

Till Straumann strauman at SLAC.Stanford.EDU
Wed Jan 22 18:07:41 UTC 2003


gregory.menke at gsfc.nasa.gov wrote:
>           {
>                case 16:
>                   v = (unsigned int) ld_le16((unsigned short *) base+reg[i].offset );
>                   break;
>                case 32:
>                   v = (unsigned int) ld_le32((unsigned int *) base+reg[i].offset );
>                   break;
>                default:
>                   printf("unsupported register width %i\n", devregion->width );
>                   v= 0;
>             }

Hmm - Gregory,

shouldn't that be

ld_le16((unsigned short*)( base + offset ));

etc. ???

-- Till






More information about the users mailing list