
7 Dec
2006
7 Dec
'06
6:25 p.m.
Matthias Fuchs wrote:
Do so with accessors result in code like this (still missing some casts):
out32(&(fpga->fifo[i].ctrl), in32(&(fpga->fifo[i].ctrl)) | 0x8000);
Is this really recommended?
That's how I would do it. You could use a temporary variable:
u32 ctrl;
ctrl = in32(&(fpga->fifo[i].ctrl)); out32(&(fpga->fifo[i].ctrl), ctrl | 0x8000);
--
Timur Tabi
Linux Kernel Developer @ Freescale