in order to make the header file
include/asm-nios2nommu/scatterlist.h compatible with the latest
kernel, i've modified my local copy to now look like this (perhaps
thomas can sanity check it):
=====================================
#ifndef __ASM_NIOS2_SCATTERLIST_H
#define __ASM_NIOS2_SCATTERLIST_H
struct scatterlist {
ifdef CONFIG_DEBUG_SG
unsigned long sg_magic;
#endif
unsigned long page_link;
unsigned int offset;
dma_addr_t dma_address;
unsigned int length;
};
#define ISA_DMA_THRESHOLD (0xffffffff)
#define sg_dma_address(sg) (virt_to_bus((sg)->dma_address))
#define sg_dma_len(sg) ((sg)->length)
#endif /* __ASM_NIOS2_SCATTERLIST_H */
====================================
note particularly:
1) the addition of SG debugging
2) the new "unsigned long page_link" member field
3) the addition of those last two macros, which were moved here from
the header file include/asm-nios2nommu/pci.h, to be consistent with
how all the other arches do it.
does that look remotely sane? i'm about to test it.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev