On Thu, 2007-05-17 at 08:05 -0700, Stephen Hemminger wrote: > I did this in sky2 driver: > > /* Return high part of DMA address (could be 32 or 64 bit) */ > static inline u32 high32(dma_addr_t a) > { > return sizeof(a) > sizeof(u32) ? (a >> 16) >> 16 : 0; > } Note that akpm recently added a macro/inline for this to the tree which IIRC went to Linus. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part