Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
2
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
452e06a
Documentation
arch
alpha
arc
arm
arm64
avr32
blackfin
c6x
cris
frv
h8300
hexagon
ia64
configs
dig
hp
include
asm
native
sn
uv
Kbuild
acenv.h
acpi-ext.h
acpi.h
agp.h
asm-offsets.h
asmmacro.h
atomic.h
barrier.h
bitops.h
bug.h
bugs.h
cache.h
cacheflush.h
checksum.h
clocksource.h
cpu.h
cputime.h
current.h
cyclone.h
delay.h
device.h
div64.h
dma-mapping.h
dma.h
dmi.h
elf.h
emergency-restart.h
esi.h
fb.h
fpswa.h
ftrace.h
futex.h
gcc_intrin.h
gpio.h
hardirq.h
hpsim.h
hugetlb.h
hw_irq.h
idle.h
intrinsics.h
io.h
iommu.h
iommu_table.h
iosapic.h
irq.h
irq_regs.h
irq_remapping.h
irqflags.h
kdebug.h
kexec.h
kmap_types.h
kprobes.h
kregs.h
libata-portmap.h
linkage.h
local.h
local64.h
machvec.h
machvec_dig.h
machvec_dig_vtd.h
machvec_hpsim.h
machvec_hpzx1.h
machvec_hpzx1_swiotlb.h
machvec_init.h
machvec_sn2.h
machvec_uv.h
mc146818rtc.h
mca.h
mca_asm.h
meminit.h
mman.h
mmu.h
mmu_context.h
mmzone.h
module.h
msidef.h
mutex.h
nodedata.h
numa.h
page.h
pal.h
param.h
parport.h
patch.h
pci.h
percpu.h
perfmon.h
pgalloc.h
pgtable.h
processor.h
ptrace.h
rwsem.h
sal.h
sections.h
segment.h
serial.h
shmparam.h
siginfo.h
signal.h
smp.h
sparsemem.h
spinlock.h
spinlock_types.h
string.h
swiotlb.h
switch_to.h
syscall.h
termios.h
thread_info.h
timex.h
tlb.h
tlbflush.h
topology.h
types.h
uaccess.h
unaligned.h
uncached.h
unistd.h
unwind.h
user.h
ustack.h
vga.h
xor.h
uapi
kernel
lib
mm
oprofile
pci
scripts
sn
uv
Kconfig
Kconfig.debug
Makefile
install.sh
module.lds
m32r
m68k
metag
microblaze
mips
mn10300
nios2
openrisc
parisc
powerpc
s390
score
sh
sparc
tile
um
unicore32
x86
xtensa
.gitignore
Kconfig
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
REPORTING-BUGS
Breadcrumbs
linux
/
arch
/
ia64
/
include
/
asm
/
dma-mapping.h
Copy path
Blame
Blame
Latest commit
History
History
59 lines (46 loc) · 1.4 KB
Breadcrumbs
linux
/
arch
/
ia64
/
include
/
asm
/
dma-mapping.h
Top
File metadata and controls
Code
Blame
59 lines (46 loc) · 1.4 KB
Raw
#ifndef _ASM_IA64_DMA_MAPPING_H #define _ASM_IA64_DMA_MAPPING_H /* * Copyright (C) 2003-2004 Hewlett-Packard Co * David Mosberger-Tang <davidm@hpl.hp.com> */ #include <asm/machvec.h> #include <linux/scatterlist.h> #include <asm/swiotlb.h> #include <linux/dma-debug.h> #define ARCH_HAS_DMA_GET_REQUIRED_MASK #define DMA_ERROR_CODE 0 extern struct dma_map_ops *dma_ops; extern struct ia64_machine_vector ia64_mv; extern void set_iommu_machvec(void); extern void machvec_dma_sync_single(struct device *, dma_addr_t, size_t, enum dma_data_direction); extern void machvec_dma_sync_sg(struct device *, struct scatterlist *, int, enum dma_data_direction); #define get_dma_ops(dev) platform_dma_get_ops(dev) #include <asm-generic/dma-mapping-common.h> static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) { if (!dev->dma_mask) return 0; return addr + size - 1 <= *dev->dma_mask; } static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) { return paddr; } static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) { return daddr; } static inline void dma_cache_sync (struct device *dev, void *vaddr, size_t size, enum dma_data_direction dir) { /* * IA-64 is cache-coherent, so this is mostly a no-op. However, we do need to * ensure that dma_cache_sync() enforces order, hence the mb(). */ mb(); } #endif /* _ASM_IA64_DMA_MAPPING_H */
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
You can’t perform that action at this time.