Server IP : 13.213.54.232 / Your IP : 216.73.216.166 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-172-31-17-110 6.8.0-1029-aws #31~22.04.1-Ubuntu SMP Thu Apr 24 21:16:18 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.1.33-67+ubuntu22.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/modules/6.8.0-1031-aws/build/arch/xtensa/include/asm/ |
Upload File : |
/* * include/asm-xtensa/dma.h * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2003 - 2005 Tensilica Inc. */ #ifndef _XTENSA_DMA_H #define _XTENSA_DMA_H #include <asm/io.h> /* need byte IO */ /* * This is only to be defined if we have PC-like DMA. * By default this is not true on an Xtensa processor, * however on boards with a PCI bus, such functionality * might be emulated externally. * * NOTE: there still exists driver code that assumes * this is defined, eg. drivers/sound/soundcard.c (as of 2.4). */ #define MAX_DMA_CHANNELS 8 /* * The maximum virtual address to which DMA transfers * can be performed on this platform. * * NOTE: This is board (platform) specific, not processor-specific! * * NOTE: This assumes DMA transfers can only be performed on * the section of physical memory contiguously mapped in virtual * space for the kernel. For the Xtensa architecture, this * means the maximum possible size of this DMA area is * the size of the statically mapped kernel segment * (XCHAL_KSEG_{CACHED,BYPASS}_SIZE), ie. 128 MB. * * NOTE: When the entire KSEG area is DMA capable, we subtract * one from the max address so that the virt_to_phys() macro * works correctly on the address (otherwise the address * enters another area, and virt_to_phys() may not return * the value desired). */ #ifndef MAX_DMA_ADDRESS #define MAX_DMA_ADDRESS (PAGE_OFFSET + XCHAL_KIO_SIZE - 1) #endif /* Reserve and release a DMA channel */ extern int request_dma(unsigned int dmanr, const char * device_id); extern void free_dma(unsigned int dmanr); #endif