diff options
| author | Wolfgang Denk <wd@denx.de> | 2008-05-20 16:00:29 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2008-05-21 00:14:08 +0200 | 
| commit | 53677ef18e25c97ac613349087c5cb33ae5a2741 (patch) | |
| tree | f947d34d6efaee2401ea0e4c6104ef2f6a0f7ad0 /drivers/pci/pci_indirect.c | |
| parent | 727f63334676e760877d43bfb8f0e9331ac8b101 (diff) | |
| download | olio-uboot-2014.01-53677ef18e25c97ac613349087c5cb33ae5a2741.tar.xz olio-uboot-2014.01-53677ef18e25c97ac613349087c5cb33ae5a2741.zip | |
Big white-space cleanup.
This commit gets rid of a huge amount of silly white-space issues.
Especially, all sequences of SPACEs followed by TAB characters get
removed (unless they appear in print statements).
Also remove all embedded "vim:" and "vi:" statements which hide
indentation problems.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'drivers/pci/pci_indirect.c')
| -rw-r--r-- | drivers/pci/pci_indirect.c | 24 | 
1 files changed, 12 insertions, 12 deletions
| diff --git a/drivers/pci/pci_indirect.c b/drivers/pci/pci_indirect.c index a8220fb41..55517a8fe 100644 --- a/drivers/pci/pci_indirect.c +++ b/drivers/pci/pci_indirect.c @@ -33,17 +33,17 @@ extern void		out_le32 (volatile unsigned *addr, unsigned int val);  #if defined(CONFIG_MPC8260)  #define INDIRECT_PCI_OP(rw, size, type, op, mask)			 \  static int								 \ -indirect_##rw##_config_##size(struct pci_controller *hose, 		 \ +indirect_##rw##_config_##size(struct pci_controller *hose,		 \  			      pci_dev_t dev, int offset, type val)	 \  {									 \  	u32 b, d,f;							 \  	b = PCI_BUS(dev); d = PCI_DEV(dev); f = PCI_FUNC(dev);		 \  	b = b - hose->first_busno;					 \  	dev = PCI_BDF(b, d, f);						 \ -	out_le32(hose->cfg_addr, dev | (offset & 0xfc) | 0x80000000); 	 \ +	out_le32(hose->cfg_addr, dev | (offset & 0xfc) | 0x80000000);	 \  	sync();								 \  	cfg_##rw(val, hose->cfg_data + (offset & mask), type, op);	 \ -	return 0;    					 		 \ +	return 0;							 \  }  #elif defined(CONFIG_E500) || defined(CONFIG_MPC86xx)  #define INDIRECT_PCI_OP(rw, size, type, op, mask)                        \ @@ -63,7 +63,7 @@ indirect_##rw##_config_##size(struct pci_controller *hose,               \  #elif defined(CONFIG_440GX) || defined(CONFIG_440EP) || defined(CONFIG_440GR) || defined(CONFIG_440SPE)  #define INDIRECT_PCI_OP(rw, size, type, op, mask)			 \  static int								 \ -indirect_##rw##_config_##size(struct pci_controller *hose, 		 \ +indirect_##rw##_config_##size(struct pci_controller *hose,		 \  			      pci_dev_t dev, int offset, type val)	 \  {									 \  	u32 b, d,f;							 \ @@ -75,36 +75,36 @@ indirect_##rw##_config_##size(struct pci_controller *hose, 		 \  	else                                                             \  		out_le32(hose->cfg_addr, dev | (offset & 0xfc) | 0x80000000); \  	cfg_##rw(val, hose->cfg_data + (offset & mask), type, op);	 \ -	return 0;    					 		 \ +	return 0;							 \  }  #else  #define INDIRECT_PCI_OP(rw, size, type, op, mask)			 \  static int								 \ -indirect_##rw##_config_##size(struct pci_controller *hose, 		 \ +indirect_##rw##_config_##size(struct pci_controller *hose,		 \  			      pci_dev_t dev, int offset, type val)	 \  {									 \  	u32 b, d,f;							 \  	b = PCI_BUS(dev); d = PCI_DEV(dev); f = PCI_FUNC(dev);		 \  	b = b - hose->first_busno;					 \  	dev = PCI_BDF(b, d, f);						 \ -	out_le32(hose->cfg_addr, dev | (offset & 0xfc) | 0x80000000); 	 \ +	out_le32(hose->cfg_addr, dev | (offset & 0xfc) | 0x80000000);	 \  	cfg_##rw(val, hose->cfg_data + (offset & mask), type, op);	 \ -	return 0;    					 		 \ +	return 0;							 \  }  #endif  #define INDIRECT_PCI_OP_ERRATA6(rw, size, type, op, mask)		 \  static int								 \ -indirect_##rw##_config_##size(struct pci_controller *hose, 		 \ +indirect_##rw##_config_##size(struct pci_controller *hose,		 \  			      pci_dev_t dev, int offset, type val)	 \  {									 \  	unsigned int msr = mfmsr();					 \  	mtmsr(msr & ~(MSR_EE | MSR_CE));				 \ -	out_le32(hose->cfg_addr, dev | (offset & 0xfc) | 0x80000000); 	 \ +	out_le32(hose->cfg_addr, dev | (offset & 0xfc) | 0x80000000);	 \  	cfg_##rw(val, hose->cfg_data + (offset & mask), type, op);	 \ -	out_le32(hose->cfg_addr, 0x00000000); 				 \ +	out_le32(hose->cfg_addr, 0x00000000);				 \  	mtmsr(msr);							 \ -	return 0;    					 		 \ +	return 0;							 \  }  INDIRECT_PCI_OP(read, byte, u8 *, in_8, 3) |