diff options
Diffstat (limited to 'drivers/pci_indirect.c')
| -rw-r--r-- | drivers/pci_indirect.c | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/drivers/pci_indirect.c b/drivers/pci_indirect.c index 05cfbd9b6..7dc17a7a3 100644 --- a/drivers/pci_indirect.c +++ b/drivers/pci_indirect.c @@ -32,6 +32,17 @@ indirect_##rw##_config_##size(struct pci_controller *hose, 		 \  	cfg_##rw(val, hose->cfg_data + (offset & mask), type, op);	 \  	return 0;    					 		 \  } +#elif defined(CONFIG_E500) +#define INDIRECT_PCI_OP(rw, size, type, op, mask)                        \ +static int                                                               \ +indirect_##rw##_config_##size(struct pci_controller *hose,               \ +			      pci_dev_t dev, int offset, type val)       \ +{                                                                        \ +	*(hose->cfg_addr) = dev | (offset & 0xfc) | 0x80000000;          \ +	sync();                                                          \ +	cfg_##rw(val, hose->cfg_data + (offset & mask), type, op);       \ +	return 0;                                                        \ +}  #else  #define INDIRECT_PCI_OP(rw, size, type, op, mask)			 \  static int								 \ |