On Sat, 2006-08-05 23:16:29 -0700, Om N. <xhandle@xxxxxxxxx> wrote:Let me go the macro way. Let me beat the code into some shape and then
> I am trying to port a driver written for IA32. This is a pci driver
> and has a chipset doing PCI <-> local bus data transfer, where local
> bus is 16 bit. So a number of values are converted by right/left
> shifting by 16 bits.
I'd probably write some macros that access the parts of the longs you
want to have/set and put these into some header file.