Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 427
b: refs/heads/master
c: 92a11f9
h: refs/heads/master
i:
  425: e460de6
  423: c9d787e
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Apr 25, 2005
1 parent 0f43f07 commit aef3d15
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9090e001f28de4bccae232f1b78e78fad5132ecb
refs/heads/master: 92a11f9e7cb876e6cf9080e4a1642142cb9221b2
2 changes: 1 addition & 1 deletion trunk/arch/ppc/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ pci_bus_to_hose(int bus)
return NULL;
}

void*
void __iomem *
pci_bus_io_base(unsigned int bus)
{
struct pci_controller *hose;
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/ppc/platforms/4xx/ebony.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,8 @@ ebony_setup_hose(void)
hose->io_space.end = EBONY_PCI_UPPER_IO;
hose->mem_space.start = EBONY_PCI_LOWER_MEM;
hose->mem_space.end = EBONY_PCI_UPPER_MEM;
isa_io_base =
(unsigned long)ioremap64(EBONY_PCI_IO_BASE, EBONY_PCI_IO_SIZE);
hose->io_base_virt = (void *)isa_io_base;
hose->io_base_virt = ioremap64(EBONY_PCI_IO_BASE, EBONY_PCI_IO_SIZE);
isa_io_base = (unsigned long)hose->io_base_virt;

setup_indirect_pci(hose,
EBONY_PCI_CFGA_PLB32,
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/ppc/platforms/4xx/luan.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,8 @@ luan_setup_hose(struct pci_controller *hose,
hose->io_space.end = LUAN_PCIX_UPPER_IO;
hose->mem_space.start = lower_mem;
hose->mem_space.end = upper_mem;
isa_io_base =
(unsigned long)ioremap64(pcix_io_base, PCIX_IO_SIZE);
hose->io_base_virt = (void *)isa_io_base;
hose->io_base_virt = ioremap64(pcix_io_base, PCIX_IO_SIZE);
isa_io_base = (unsigned long) hose->io_base_virt;

setup_indirect_pci(hose, cfga, cfgd);
hose->set_cfg_type = 1;
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/ppc/platforms/4xx/ocotea.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,8 @@ ocotea_setup_hose(void)
hose->io_space.end = OCOTEA_PCI_UPPER_IO;
hose->mem_space.start = OCOTEA_PCI_LOWER_MEM;
hose->mem_space.end = OCOTEA_PCI_UPPER_MEM;
isa_io_base =
(unsigned long)ioremap64(OCOTEA_PCI_IO_BASE, OCOTEA_PCI_IO_SIZE);
hose->io_base_virt = (void *)isa_io_base;
hose->io_base_virt = ioremap64(OCOTEA_PCI_IO_BASE, OCOTEA_PCI_IO_SIZE);
isa_io_base = (unsigned long) hose->io_base_virt;

setup_indirect_pci(hose,
OCOTEA_PCI_CFGA_PLB32,
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/ppc/syslib/m8260_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,9 @@ void __init m8260_find_bridges(void)
m8260_setup_pci(hose);
hose->pci_mem_offset = MPC826x_PCI_MEM_OFFSET;

isa_io_base =
(unsigned long) ioremap(MPC826x_PCI_IO_BASE,
hose->io_base_virt = ioremap(MPC826x_PCI_IO_BASE,
MPC826x_PCI_IO_SIZE);
hose->io_base_virt = (void *) isa_io_base;
isa_io_base = (unsigned long) hose->io_base_virt;

/* setup resources */
pci_init_resource(&hose->mem_resources[0],
Expand Down
8 changes: 3 additions & 5 deletions trunk/arch/ppc/syslib/mpc52xx_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,11 @@ mpc52xx_find_bridges(void)

hose->pci_mem_offset = MPC52xx_PCI_MEM_OFFSET;

isa_io_base =
(unsigned long) ioremap(MPC52xx_PCI_IO_BASE,
MPC52xx_PCI_IO_SIZE);
hose->io_base_virt = (void *) isa_io_base;
hose->io_base_virt = ioremap(MPC52xx_PCI_IO_BASE, MPC52xx_PCI_IO_SIZE);
isa_io_base = (unsigned long) hose->io_base_virt;

hose->cfg_addr = &pci_regs->car;
hose->cfg_data = (void __iomem *) isa_io_base;
hose->cfg_data = hose->io_base_virt;

/* Setup resources */
pci_init_resource(&hose->mem_resources[0],
Expand Down
12 changes: 5 additions & 7 deletions trunk/arch/ppc/syslib/ppc85xx_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,16 +280,14 @@ mpc85xx_setup_hose(void)
hose_a->io_space.end = MPC85XX_PCI1_UPPER_IO;
hose_a->io_base_phys = MPC85XX_PCI1_IO_BASE;
#ifdef CONFIG_85xx_PCI2
isa_io_base =
(unsigned long) ioremap(MPC85XX_PCI1_IO_BASE,
hose_a->io_base_virt = ioremap(MPC85XX_PCI1_IO_BASE,
MPC85XX_PCI1_IO_SIZE +
MPC85XX_PCI2_IO_SIZE);
#else
isa_io_base =
(unsigned long) ioremap(MPC85XX_PCI1_IO_BASE,
hose_a->io_base_virt = ioremap(MPC85XX_PCI1_IO_BASE,
MPC85XX_PCI1_IO_SIZE);
#endif
hose_a->io_base_virt = (void *) isa_io_base;
isa_io_base = (unsigned long)hose_a->io_base_virt;

/* setup resources */
pci_init_resource(&hose_a->mem_resources[0],
Expand Down Expand Up @@ -329,8 +327,8 @@ mpc85xx_setup_hose(void)
hose_b->io_space.start = MPC85XX_PCI2_LOWER_IO;
hose_b->io_space.end = MPC85XX_PCI2_UPPER_IO;
hose_b->io_base_phys = MPC85XX_PCI2_IO_BASE;
hose_b->io_base_virt = (void *) isa_io_base + MPC85XX_PCI1_IO_SIZE;

hose_b->io_base_virt = hose_a->io_base_virt + MPC85XX_PCI1_IO_SIZE;
/* setup resources */
pci_init_resource(&hose_b->mem_resources[0],
MPC85XX_PCI2_LOWER_MEM,
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/asm-ppc/pci-bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct pci_controller;
* pci_io_base returns the memory address at which you can access
* the I/O space for PCI bus number `bus' (or NULL on error).
*/
extern void *pci_bus_io_base(unsigned int bus);
extern void __iomem *pci_bus_io_base(unsigned int bus);
extern unsigned long pci_bus_io_base_phys(unsigned int bus);
extern unsigned long pci_bus_mem_base_phys(unsigned int bus);

Expand Down Expand Up @@ -48,7 +48,7 @@ struct pci_controller {
int last_busno;
int bus_offset;

void *io_base_virt;
void __iomem *io_base_virt;
unsigned long io_base_phys;

/* Some machines (PReP) have a non 1:1 mapping of
Expand Down

0 comments on commit aef3d15

Please sign in to comment.