/usr/src/linux-headers-5.15.0-190/arch/sh/include/asm
NameSizeModeActions
adc.h2110644editdlrm
addrspace.h18960644editdlrm
alignment.h6540644editdlrm
asm-offsets.h740644editdlrm
atomic-grb.h26770644editdlrm
atomic-irq.h16870644editdlrm
atomic-llsc.h21860644editdlrm
atomic.h8400644editdlrm
barrier.h15030644editdlrm
bitops-cas.h17700644editdlrm
bitops-grb.h63640644editdlrm
bitops-llsc.h28580644editdlrm
bitops-op32.h38420644editdlrm
bitops.h16530644editdlrm
bl_bit.h660644editdlrm
bl_bit_32.h6390644editdlrm
bug.h28350644editdlrm
cache.h11710644editdlrm
cacheflush.h37350644editdlrm
cache_insns.h710644editdlrm
cache_insns_32.h6420644editdlrm
checksum.h680644editdlrm
checksum_32.h50090644editdlrm
clock.h4360644editdlrm
cmpxchg-cas.h5490644editdlrm
cmpxchg-grb.h28690644editdlrm
cmpxchg-irq.h10650644editdlrm
cmpxchg-llsc.h10850644editdlrm
cmpxchg-xchg.h12740644editdlrm
cmpxchg.h18220644editdlrm
device.h4420644editdlrm
dma-register.h17080644editdlrm
dma.h36520644editdlrm
dmabrg.h5360644editdlrm
dwarf.h98960644editdlrm
elf.h60090644editdlrm
entry-macros.S18970644editdlrm
extable.h1350644editdlrm
fb.h4140644editdlrm
fixmap.h25430644editdlrm
flat.h8630644editdlrm
fpu.h16350644editdlrm
freq.h2120644editdlrm
ftrace.h11380644editdlrm
futex-cas.h7280644editdlrm
futex-irq.h4820644editdlrm
futex-llsc.h8700644editdlrm
futex.h13810644editdlrm
gpio.h8510644editdlrm
hardirq.h2670644editdlrm
hd64461.h120680644editdlrm
heartbeat.h3830644editdlrm
hugetlb.h9150644editdlrm
hw_breakpoint.h19700644editdlrm
hw_irq.h9150644editdlrm
i2c-sh7760.h4060644editdlrm
io.h86990644editdlrm
io_generic.h6610644editdlrm
io_noioport.h15020644editdlrm
io_trapped.h14740644editdlrm
irq.h16420644editdlrm
irqflags.h2260644editdlrm
Kbuild1410644editdlrm
kdebug.h4330644editdlrm
kexec.h26720644editdlrm
kgdb.h8510644editdlrm
kprobes.h14070644editdlrm
linkage.h1540644editdlrm
machvec.h8500644editdlrm
mmiowb.h2460644editdlrm
mmu.h22310644editdlrm
mmu_context.h41670644editdlrm
mmu_context_32.h11360644editdlrm
mmzone.h10520644editdlrm
module.h2760644editdlrm
page.h54190644editdlrm
pci.h30070644editdlrm
perf_event.h7970644editdlrm
pgalloc.h11070644editdlrm
pgtable-2level.h5670644editdlrm
pgtable-3level.h14640644editdlrm
pgtable.h43050644editdlrm
pgtable_32.h158990644editdlrm
platform_early.h18500644editdlrm
posix_types.h710644editdlrm
processor.h43420644editdlrm
processor_32.h46140644editdlrm
ptrace.h38340644editdlrm
ptrace_32.h3070644editdlrm
push-switch.h7550644editdlrm
reboot.h4720644editdlrm
romimage-macros.h11260644editdlrm
rtc.h2490644editdlrm
seccomp.h5460644editdlrm
sections.h3110644editdlrm
segment.h8600644editdlrm
setup.h7250644editdlrm
sfp-machine.h27670644editdlrm
sh7760fb.h57400644editdlrm
shmparam.h4890644editdlrm
sh_bios.h7430644editdlrm
siu.h3850644editdlrm
smc37c93x.h56980644editdlrm
smp-ops.h10120644editdlrm
smp.h18470644editdlrm
sparsemem.h3190644editdlrm
spi.h2650644editdlrm
spinlock-cas.h20010644editdlrm
spinlock-llsc.h41490644editdlrm
spinlock.h4380644editdlrm
spinlock_types.h4630644editdlrm
sram.h6700644editdlrm
stackprotector.h7110644editdlrm
stacktrace.h5280644editdlrm
string.h660644editdlrm
string_32.h22080644editdlrm
suspend.h25760644editdlrm
switch_to.h1900644editdlrm
switch_to_32.h36310644editdlrm
syscall.h2010644editdlrm
syscalls.h4540644editdlrm
syscalls_32.h9790644editdlrm
syscall_32.h19170644editdlrm
thread_info.h53420644editdlrm
timex.h6370644editdlrm
tlb.h6250644editdlrm
tlbflush.h18090644editdlrm
topology.h6450644editdlrm
traps.h4240644editdlrm
traps_32.h13380644editdlrm
types.h3260644editdlrm
uaccess.h48110644editdlrm
uaccess_32.h50070644editdlrm
uncached.h13720644editdlrm
unistd.h9190644editdlrm
unwinder.h8560644editdlrm
user.h24400644editdlrm
vermagic.h7090644editdlrm
vga.h1370644editdlrm
vmalloc.h840644editdlrm
vmlinux.lds.h4160644editdlrm
watchdog.h39810644editdlrm
word-at-a-time.h13210644editdlrm
Edit: /usr/src/linux-headers-5.15.0-190/arch/sh/include/asm/dma.h (3652B)
/* SPDX-License-Identifier: GPL-2.0 * * include/asm-sh/dma.h * * Copyright (C) 2003, 2004 Paul Mundt */ #ifndef __ASM_SH_DMA_H #define __ASM_SH_DMA_H #include #include #include #include #include /* * Read and write modes can mean drastically different things depending on the * channel configuration. Consult your DMAC documentation and module * implementation for further clues. */ #define DMA_MODE_READ 0x00 #define DMA_MODE_WRITE 0x01 #define DMA_MODE_MASK 0x01 #define DMA_AUTOINIT 0x10 /* * DMAC (dma_info) flags */ enum { DMAC_CHANNELS_CONFIGURED = 0x01, DMAC_CHANNELS_TEI_CAPABLE = 0x02, /* Transfer end interrupt */ }; /* * DMA channel capabilities / flags */ enum { DMA_CONFIGURED = 0x01, /* * Transfer end interrupt, inherited from DMAC. * wait_queue used in dma_wait_for_completion. */ DMA_TEI_CAPABLE = 0x02, }; extern spinlock_t dma_spin_lock; struct dma_channel; struct dma_ops { int (*request)(struct dma_channel *chan); void (*free)(struct dma_channel *chan); int (*get_residue)(struct dma_channel *chan); int (*xfer)(struct dma_channel *chan); int (*configure)(struct dma_channel *chan, unsigned long flags); int (*extend)(struct dma_channel *chan, unsigned long op, void *param); }; struct dma_channel { char dev_id[16]; /* unique name per DMAC of channel */ unsigned int chan; /* DMAC channel number */ unsigned int vchan; /* Virtual channel number */ unsigned int mode; unsigned int count; unsigned long sar; unsigned long dar; const char **caps; unsigned long flags; atomic_t busy; wait_queue_head_t wait_queue; struct device dev; void *priv_data; }; struct dma_info { struct platform_device *pdev; const char *name; unsigned int nr_channels; unsigned long flags; struct dma_ops *ops; struct dma_channel *channels; struct list_head list; int first_channel_nr; int first_vchannel_nr; }; struct dma_chan_caps { int ch_num; const char **caplist; }; #define to_dma_channel(channel) container_of(channel, struct dma_channel, dev) /* arch/sh/drivers/dma/dma-api.c */ extern int dma_xfer(unsigned int chan, unsigned long from, unsigned long to, size_t size, unsigned int mode); #define dma_write(chan, from, to, size) \ dma_xfer(chan, from, to, size, DMA_MODE_WRITE) #define dma_write_page(chan, from, to) \ dma_write(chan, from, to, PAGE_SIZE) #define dma_read(chan, from, to, size) \ dma_xfer(chan, from, to, size, DMA_MODE_READ) #define dma_read_page(chan, from, to) \ dma_read(chan, from, to, PAGE_SIZE) extern int request_dma_bycap(const char **dmac, const char **caps, const char *dev_id); extern int get_dma_residue(unsigned int chan); extern struct dma_info *get_dma_info(unsigned int chan); extern struct dma_channel *get_dma_channel(unsigned int chan); extern void dma_wait_for_completion(unsigned int chan); extern void dma_configure_channel(unsigned int chan, unsigned long flags); extern int register_dmac(struct dma_info *info); extern void unregister_dmac(struct dma_info *info); extern struct dma_info *get_dma_info_by_name(const char *dmac_name); extern int dma_extend(unsigned int chan, unsigned long op, void *param); extern int register_chan_caps(const char *dmac, struct dma_chan_caps *capslist); /* arch/sh/drivers/dma/dma-sysfs.c */ extern int dma_create_sysfs_files(struct dma_channel *, struct dma_info *); extern void dma_remove_sysfs_files(struct dma_channel *, struct dma_info *); #ifdef CONFIG_PCI extern int isa_dma_bridge_buggy; #else #define isa_dma_bridge_buggy (0) #endif #endif /* __ASM_SH_DMA_H */