/* * 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) 2006 Ralf Baechle <ralf@linux-mips.org> * Copyright (C) 2007 Felix Fietkau <nbd@openwrt.org> * */ #ifndef __ASM_MACH_ATH25_DMA_COHERENCE_H #define __ASM_MACH_ATH25_DMA_COHERENCE_H #include <linux/device.h> /* * We need some arbitrary non-zero value to be programmed to the BAR1 register * of PCI host controller to enable DMA. The same value should be used as the * offset to calculate the physical address of DMA buffer for PCI devices. */ #define AR2315_PCI_HOST_SDRAM_BASEADDR 0x20000000
static inline dma_addr_t ath25_dev_offset(struct device *dev) { #ifdef CONFIG_PCI extern struct bus_type pci_bus_type; if (dev && dev->bus == &pci_bus_type) return AR2315_PCI_HOST_SDRAM_BASEADDR; #endif return 0; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Sergey Ryazanov | 39 | 100.00% | 1 | 100.00% |
Total | 39 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Sergey Ryazanov | 30 | 100.00% | 2 | 100.00% |
Total | 30 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Sergey Ryazanov | 28 | 100.00% | 2 | 100.00% |
Total | 28 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Sergey Ryazanov | 24 | 100.00% | 2 | 100.00% |
Total | 24 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Sergey Ryazanov | 21 | 100.00% | 1 | 100.00% |
Total | 21 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Sergey Ryazanov | 18 | 100.00% | 1 | 100.00% |
Total | 18 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Sergey Ryazanov | 28 | 100.00% | 1 | 100.00% |
Total | 28 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Sergey Ryazanov | 206 | 94.93% | 2 | 66.67% |
Ralf Bächle | 11 | 5.07% | 1 | 33.33% |
Total | 217 | 100.00% | 3 | 100.00% |