PCI_REG
#define PCIC_WRITE(x,v) writel((v), PCI_REG(x))
#define PCIC_READ(x) readl(PCI_REG(x))
*data = pci_read_reg(chan, PCI_REG(reg));
pci_write_reg(chan, *data, PCI_REG(reg));