pci_32.h 931 字节
Newer Older
H
H. Peter Anvin 已提交
1 2
#ifndef _ASM_X86_PCI_32_H
#define _ASM_X86_PCI_32_H
L
Linus Torvalds 已提交
3 4 5


#ifdef __KERNEL__
6

L
Linus Torvalds 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20

/* Dynamic DMA mapping stuff.
 * i386 has everything mapped statically.
 */

struct pci_dev;

/* The PCI address space does equal the physical memory
 * address space.  The networking and block device layers use
 * this boolean for bounce buffer decisions.
 */
#define PCI_DMA_BUS_IS_PHYS	(1)

/* pci_unmap_{page,single} is a nop so... */
21 22 23 24 25 26 27 28
#define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME)	dma_addr_t ADDR_NAME[0];
#define DECLARE_PCI_UNMAP_LEN(LEN_NAME)	unsigned LEN_NAME[0];
#define pci_unmap_addr(PTR, ADDR_NAME)	sizeof((PTR)->ADDR_NAME)
#define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) \
	do { break; } while (pci_unmap_addr(PTR, ADDR_NAME))
#define pci_unmap_len(PTR, LEN_NAME)		sizeof((PTR)->LEN_NAME)
#define pci_unmap_len_set(PTR, LEN_NAME, VAL) \
	do { break; } while (pci_unmap_len(PTR, LEN_NAME))
L
Linus Torvalds 已提交
29

30

L
Linus Torvalds 已提交
31 32 33
#endif /* __KERNEL__ */


H
H. Peter Anvin 已提交
34
#endif /* _ASM_X86_PCI_32_H */