#include <linux/delay.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/ioport.h>
#include <linux/slab.h>
#include <asm/byteorder.h>
#include <asm/pdc.h>
#include <asm/pdcpat.h>
#include <asm/page.h>
#include <asm/ropes.h>
#include <asm/hardware.h>
#include <asm/parisc-device.h>
#include <asm/io.h>
Go to the source code of this file.
|
#define | DBG(x...) |
|
#define | DBG_PORT(x...) |
|
#define | DBG_CFG(x...) |
|
#define | DBG_PAT(x...) |
|
#define | MODULE_NAME "LBA" |
|
#define | LBA_PORT_BASE (PCI_F_EXTEND | 0xfee00000UL) |
|
#define | LBA_FLAG_SKIP_PROBE 0x10 |
|
#define | LBA_SKIP_PROBE(d) ((d)->flags & LBA_FLAG_SKIP_PROBE) |
|
#define | LBA_DEV(d) ((struct lba_device *) (d)) |
|
#define | LBA_MAX_NUM_BUSES 8 |
|
#define | READ_U8(addr) __raw_readb(addr) |
|
#define | READ_U16(addr) __raw_readw(addr) |
|
#define | READ_U32(addr) __raw_readl(addr) |
|
#define | WRITE_U8(value, addr) __raw_writeb(value, addr) |
|
#define | WRITE_U16(value, addr) __raw_writew(value, addr) |
|
#define | WRITE_U32(value, addr) __raw_writel(value, addr) |
|
#define | READ_REG8(addr) readb(addr) |
|
#define | READ_REG16(addr) readw(addr) |
|
#define | READ_REG32(addr) readl(addr) |
|
#define | READ_REG64(addr) readq(addr) |
|
#define | WRITE_REG8(value, addr) writeb(value, addr) |
|
#define | WRITE_REG16(value, addr) writew(value, addr) |
|
#define | WRITE_REG32(value, addr) writel(value, addr) |
|
#define | LBA_CFG_TOK(bus, dfn) ((u32) ((bus)<<16 | (dfn)<<8)) |
|
#define | LBA_CFG_BUS(tok) ((u8) ((tok)>>16)) |
|
#define | LBA_CFG_DEV(tok) ((u8) ((tok)>>11) & 0x1f) |
|
#define | LBA_CFG_FUNC(tok) ((u8) ((tok)>>8 ) & 0x7) |
|
#define | ROPES_PER_IOC 8 |
|
#define | LBA_NUM(x) ((((unsigned long) x) >> 13) & (ROPES_PER_IOC-1)) |
|
#define | LBA_CFG_SETUP(d, tok) |
|
#define | LBA_CFG_PROBE(d, tok) |
|
#define | LBA_MASTER_ABORT_ERROR 0xc |
|
#define | LBA_FATAL_ERROR 0x10 |
|
#define | LBA_CFG_MASTER_ABORT_CHECK(d, base, tok, error) |
|
#define | LBA_CFG_TR4_ADDR_SETUP(d, addr) WRITE_REG32(((addr) & ~3), (d)->hba.base_addr + LBA_PCI_CFG_ADDR); |
|
#define | LBA_CFG_ADDR_SETUP(d, addr) |
|
#define | LBA_CFG_RESTORE(d, base) |
|
#define | truncate_pat_collision(r, n) (0) |
|
#define | LBA_PORT_IN(size, mask) |
|
#define | LBA_PORT_OUT(size, mask) |
|
#define | lba_pat_port_ops lba_astro_port_ops |
|
#define | lba_pat_resources(pa_dev, lba_dev) |
|
#define LBA_CFG_ADDR_SETUP |
( |
|
d, |
|
|
|
addr |
|
) |
| |
#define LBA_CFG_BUS |
( |
|
tok | ) |
((u8) ((tok)>>16)) |
#define LBA_CFG_DEV |
( |
|
tok | ) |
((u8) ((tok)>>11) & 0x1f) |
#define LBA_CFG_FUNC |
( |
|
tok | ) |
((u8) ((tok)>>8 ) & 0x7) |
#define LBA_CFG_MASTER_ABORT_CHECK |
( |
|
d, |
|
|
|
base, |
|
|
|
tok, |
|
|
|
error |
|
) |
| |
Value:
\
if ((error_status & 0x1f) != 0) { \
\
error = 1; \
\
} \
} \
}
Definition at line 264 of file lba_pci.c.
#define LBA_CFG_PROBE |
( |
|
d, |
|
|
|
tok |
|
) |
| |
#define LBA_CFG_RESTORE |
( |
|
d, |
|
|
|
base |
|
) |
| |
#define LBA_CFG_SETUP |
( |
|
d, |
|
|
|
tok |
|
) |
| |
Value:{ \
\
\
\
\
\
\
\
\
\
\
}
Definition at line 206 of file lba_pci.c.
#define LBA_CFG_TOK |
( |
|
bus, |
|
|
|
dfn |
|
) |
| ((u32) ((bus)<<16 | (dfn)<<8)) |
#define LBA_FATAL_ERROR 0x10 |
#define LBA_FLAG_SKIP_PROBE 0x10 |
#define LBA_MASTER_ABORT_ERROR 0xc |
#define LBA_MAX_NUM_BUSES 8 |
#define lba_pat_port_ops lba_astro_port_ops |
#define lba_pat_resources |
( |
|
pa_dev, |
|
|
|
lba_dev |
|
) |
| |
Value:
{ \
DBG_PORT(" 0x%x\n", t); \
return (t); \
}
Definition at line 766 of file lba_pci.c.
Value:
{ \
DBG_PORT(
"%s(0x%p, 0x%x, 0x%x)\n", __func__,
d,
addr,
val); \
}
Definition at line 807 of file lba_pci.c.
#define MODULE_NAME "LBA" |
#define truncate_pat_collision |
( |
|
r, |
|
|
|
n |
|
) |
| (0) |
sba_directed_lmmio - return first directed LMMIO range routed to rope : The parisc device. : resource PCI host controller wants start/end fields assigned.
For the given parisc PCI controller, determine if any direct ranges are routed down the corresponding rope.
Definition at line 2033 of file sba_iommu.c.
sba_distributed_lmmio - return portion of distributed LMMIO range : The parisc device. : resource PCI host controller wants start/end fields assigned.
For the given parisc PCI controller, return portion of distributed LMMIO range. The distributed LMMIO is always present and it's just a question of the base address and size of the range.
Definition at line 2076 of file sba_iommu.c.