11 #include <linux/capability.h>
13 #include <linux/errno.h>
14 #include <linux/sched.h>
37 hose_tail = &hose->next;
59 for (hose = hose_head; hose; hose = hose->next)
60 if (hose->
index == bus)
66 if (bus == 0 && dfn == 0)
72 switch (which & ~IOBASE_FROM_HOSE) {
76 return hose->sparse_mem_base;
78 return hose->dense_mem_base;
80 return hose->sparse_io_base;
82 return hose->dense_io_base;
84 return hose->bus->number;
92 unsigned long off,
unsigned long len,
void *
buf)
102 unsigned long off,
unsigned long len,
void *
buf)
110 static void *alpha_noop_alloc_coherent(
struct device *
dev,
size_t size,
116 if (!dev || *dev->
dma_mask >= 0xffffffffUL)
126 static void alpha_noop_free_coherent(
struct device *dev,
size_t size,
134 unsigned long offset,
size_t size,
159 static int alpha_noop_mapping_error(
struct device *dev,
dma_addr_t dma_addr)
164 static int alpha_noop_supported(
struct device *dev,
u64 mask)
166 return mask < 0x00ffffff
UL ? 0 : 1;
179 .alloc = alpha_noop_alloc_coherent,
180 .free = alpha_noop_free_coherent,
181 .map_page = alpha_noop_map_page,
182 .map_sg = alpha_noop_map_sg,
183 .mapping_error = alpha_noop_mapping_error,
184 .dma_supported = alpha_noop_supported,
185 .set_dma_mask = alpha_noop_set_mask,