|
#define | cris_iops ((struct cris_io_operations*)NULL) |
|
#define | virt_to_bus virt_to_phys |
|
#define | bus_to_virt phys_to_virt |
|
#define | PCI_SPACE(x) 0 |
|
#define | readb_relaxed(addr) readb(addr) |
|
#define | readw_relaxed(addr) readw(addr) |
|
#define | readl_relaxed(addr) readl(addr) |
|
#define | __raw_readb readb |
|
#define | __raw_readw readw |
|
#define | __raw_readl readl |
|
#define | __raw_writeb writeb |
|
#define | __raw_writew writew |
|
#define | __raw_writel writel |
|
#define | mmiowb() |
|
#define | memset_io(a, b, c) memset((void *)(a),(b),(c)) |
|
#define | memcpy_fromio(a, b, c) memcpy((a),(void *)(b),(c)) |
|
#define | memcpy_toio(a, b, c) memcpy((void *)(a),(b),(c)) |
|
#define | IO_SPACE_LIMIT 0xffff |
|
#define | inb(port) (cris_iops ? cris_iops->read_io(port,NULL,1,1) : 0) |
|
#define | inw(port) (cris_iops ? cris_iops->read_io(port,NULL,2,1) : 0) |
|
#define | inl(port) (cris_iops ? cris_iops->read_io(port,NULL,4,1) : 0) |
|
#define | insb(port, addr, count) (cris_iops ? cris_iops->read_io(port,addr,1,count) : 0) |
|
#define | insw(port, addr, count) (cris_iops ? cris_iops->read_io(port,addr,2,count) : 0) |
|
#define | insl(port, addr, count) (cris_iops ? cris_iops->read_io(port,addr,4,count) : 0) |
|
#define | outb(data, port) if (cris_iops) cris_iops->write_io(port,(void*)(unsigned)data,1,1) |
|
#define | outw(data, port) if (cris_iops) cris_iops->write_io(port,(void*)(unsigned)data,2,1) |
|
#define | outl(data, port) if (cris_iops) cris_iops->write_io(port,(void*)(unsigned)data,4,1) |
|
#define | outsb(port, addr, count) if(cris_iops) cris_iops->write_io(port,(void*)addr,1,count) |
|
#define | outsw(port, addr, count) if(cris_iops) cris_iops->write_io(port,(void*)addr,2,count) |
|
#define | outsl(port, addr, count) if(cris_iops) cris_iops->write_io(port,(void*)addr,3,count) |
|
#define | xlate_dev_mem_ptr(p) __va(p) |
|
#define | xlate_dev_kmem_ptr(p) p |
|