patch-2.2.15 linux/arch/alpha/kernel/core_mcpcia.c
Next file: linux/arch/alpha/kernel/core_polaris.c
Previous file: linux/arch/alpha/kernel/core_lca.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Fri Apr 21 12:45:44 2000
- Orig file:
v2.2.14/arch/alpha/kernel/core_mcpcia.c
- Orig date:
Tue Jan 4 21:18:39 2000
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/arch/alpha/kernel/core_mcpcia.c linux/arch/alpha/kernel/core_mcpcia.c
@@ -328,13 +328,16 @@
mcpcia_hoses[h] = hose;
- hose->pci_io_space = MCPCIA_IO(h);
- hose->pci_mem_space = MCPCIA_DENSE(h);
hose->pci_config_space = MCPCIA_CONF(h);
- hose->pci_sparse_space = MCPCIA_SPARSE(h);
hose->pci_hose_index = h;
hose->pci_first_busno = 255;
hose->pci_last_busno = 0;
+
+ /* Tell userland where I/O space is located. */
+ hose->pci_sparse_io_space = MCPCIA_IO(h) - IDENT_ADDR;
+ hose->pci_sparse_mem_space = MCPCIA_SPARSE(h) - IDENT_ADDR;
+ hose->pci_dense_io_space = 0;
+ hose->pci_dense_mem_space = MCPCIA_DENSE(h) - IDENT_ADDR;
}
#if 1
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)