Subject: Re: PCI memory space mapping on RD94/JC94
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Shuichiro URATA <ur@a-r.org>
List: port-arc
Date: 06/24/2001 08:52:53
At Sat, 23 Jun 2001 00:35:33 +0900 (JST),
Izumi Tsutsui wrote:
> 
> Maybe we have to fixup PCI? (with sys/dev/pci/pciconf.c ?)

I think just disabling expansion ROM is enough.
How about this?

*** arc/pci/necpb.c~	Sat Jun 16 15:38:43 2001
--- arc/pci/necpb.c	Sat Jun 23 16:40:59 2001
***************
*** 189,206 ****
--- 189,209 ----
  	csr |= PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE |
  	    PCI_COMMAND_MASTER_ENABLE;
  	necpb_conf_write(&ncp->nc_pc, tag, PCI_COMMAND_STATUS_REG, csr);
+ 	necpb_conf_write(&ncp->nc_pc, tag, PCI_MAPREG_ROM, 0);
  
  	tag = necpb_make_tag(&ncp->nc_pc, 0, 4, 0);
  	csr = necpb_conf_read(&ncp->nc_pc, tag, PCI_COMMAND_STATUS_REG);
  	csr |= PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE |
  	    PCI_COMMAND_MASTER_ENABLE;
  	necpb_conf_write(&ncp->nc_pc, tag, PCI_COMMAND_STATUS_REG, csr);
+ 	necpb_conf_write(&ncp->nc_pc, tag, PCI_MAPREG_ROM, 0);
  
  	tag = necpb_make_tag(&ncp->nc_pc, 0, 5, 0);
  	csr = necpb_conf_read(&ncp->nc_pc, tag, PCI_COMMAND_STATUS_REG);
  	csr |= PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE |
  	    PCI_COMMAND_MASTER_ENABLE;
  	necpb_conf_write(&ncp->nc_pc, tag, PCI_COMMAND_STATUS_REG, csr);
+ 	necpb_conf_write(&ncp->nc_pc, tag, PCI_MAPREG_ROM, 0);
  
  	ncp->nc_initialized = 1;
  }

---
Shuichiro URATA
ur@a-r.org