summaryrefslogtreecommitdiffstats
path: root/hw/net
ModeNameSize
-rw-r--r--Kconfig1867logstatsplainblame
-rw-r--r--Makefile.objs2417logstatsplainblame
-rw-r--r--allwinner_emac.c15699logstatsplainblame
-rw-r--r--cadence_gem.c56715logstatsplainblame
d---------can258logstatsplain
-rw-r--r--dp8393x.c31854logstatsplainblame
-rw-r--r--e1000.c61162logstatsplainblame
-rw-r--r--e1000_regs.h66658logstatsplainblame
-rw-r--r--e1000e.c21858logstatsplainblame
-rw-r--r--e1000e_core.c102880logstatsplainblame
-rw-r--r--e1000e_core.h4025logstatsplainblame
-rw-r--r--e1000x_common.c8114logstatsplainblame
-rw-r--r--e1000x_common.h8093logstatsplainblame
-rw-r--r--eepro100.c70491logstatsplainblame
-rw-r--r--etraxfs_eth.c18018logstatsplainblame
d---------fsl_etsec217logstatsplain
-rw-r--r--ftgmac100.c39581logstatsplainblame
-rw-r--r--i82596.c20994logstatsplainblame
-rw-r--r--i82596.h1804logstatsplainblame
-rw-r--r--imx_fec.c38972logstatsplainblame
-rw-r--r--lan9118.c40570logstatsplainblame
-rw-r--r--lance.c5215logstatsplainblame
-rw-r--r--lasi_i82596.c5390logstatsplainblame
-rw-r--r--mcf_fec.c18702logstatsplainblame
-rw-r--r--milkymist-minimac2.c14473logstatsplainblame
-rw-r--r--mipsnet.c8013logstatsplainblame
-rw-r--r--ne2000-isa.c4908logstatsplainblame
-rw-r--r--ne2000-pci.c4368logstatsplainblame
-rw-r--r--ne2000.c21044logstatsplainblame
-rw-r--r--ne2000.h1031logstatsplainblame
-rw-r--r--net_rx_pkt.c17279logstatsplainblame
-rw-r--r--net_rx_pkt.h8366logstatsplainblame
-rw-r--r--net_tx_pkt.c17652logstatsplainblame
-rw-r--r--net_tx_pkt.h4186logstatsplainblame
-rw-r--r--opencores_eth.c20523logstatsplainblame
-rw-r--r--pcnet-pci.c9057logstatsplainblame
-rw-r--r--pcnet.c55658logstatsplainblame
-rw-r--r--pcnet.h2083logstatsplainblame
d---------rocker523logstatsplain
-rw-r--r--rtl8139.c99803logstatsplainblame
-rw-r--r--smc91c111.c23134logstatsplainblame
-rw-r--r--spapr_llan.c27414logstatsplainblame
-rw-r--r--stellaris_enet.c15390logstatsplainblame
-rw-r--r--sungem.c43574logstatsplainblame
-rw-r--r--sunhme.c28861logstatsplainblame
-rw-r--r--trace-events29599logstatsplainblame
-rw-r--r--tulip.c27340logstatsplainblame
-rw-r--r--tulip.h7356logstatsplainblame
-rw-r--r--vhost_net-stub.c1747logstatsplainblame
-rw-r--r--vhost_net.c12315logstatsplainblame
-rw-r--r--virtio-net.c103152logstatsplainblame
-rw-r--r--vmware_utils.h3989logstatsplainblame
-rw-r--r--vmxnet3.c78354logstatsplainblame
-rw-r--r--vmxnet3.h25635logstatsplainblame
-rw-r--r--vmxnet3_defs.h3404logstatsplainblame
-rw-r--r--vmxnet_debug.h5792logstatsplainblame
-rw-r--r--xen_nic.c13280logstatsplainblame
-rw-r--r--xgmac.c14840logstatsplainblame
-rw-r--r--xilinx_axienet.c29060logstatsplainblame
-rw-r--r--xilinx_ethlite.c8251logstatsplainblame
ios_init);
-
void __devinit pcibios_fixup_bus(struct pci_bus *bus)
{
struct pci_dev *dev = bus->self;
int i;
-#if 1
- if(dev) {
- for(i=0; i<3; i++) {
+ if (dev) {
+ for (i= 0; i < 3; i++) {
bus->resource[i] =
&dev->resource[PCI_BRIDGE_RESOURCES+i];
bus->resource[i]->name = bus->name;
@@ -514,23 +216,13 @@ void __devinit pcibios_fixup_bus(struct pci_bus *bus)
/* For now, propagate host limits to the bus;
* we'll adjust them later. */
-
-#if 1
bus->resource[0]->end = 64*1024 - 1 ;
bus->resource[1]->end = PCIBIOS_MIN_MEM+(256*1024*1024)-1;
bus->resource[0]->start = PCIBIOS_MIN_IO;
bus->resource[1]->start = PCIBIOS_MIN_MEM;
-#else
- bus->resource[0]->end = 0;
- bus->resource[1]->end = 0;
- bus->resource[0]->start =0;
- bus->resource[1]->start = 0;
-#endif
+
/* Turn off downstream PF memory address range by default */
bus->resource[2]->start = 1024*1024;
bus->resource[2]->end = bus->resource[2]->start - 1;
}
-#endif
-
}
-
diff --git a/arch/sh/drivers/pci/pci-sh5.h b/arch/sh/drivers/pci/pci-sh5.h
index c71159dd04b9..7cff3fc04d30 100644
--- a/arch/sh/drivers/pci/pci-sh5.h
+++ b/arch/sh/drivers/pci/pci-sh5.h
@@ -6,6 +6,8 @@
*
* Definitions for the SH5 PCI hardware.
*/
+#ifndef __PCI_SH5_H
+#define __PCI_SH5_H
/* Product ID */
#define PCISH5_PID 0x350d
@@ -73,13 +75,12 @@
#define PCISH5_ICR_CSR_MBAR0 0x014 /* First Memory base address register */
#define PCISH5_ICR_CSR_MBAR1 0x018 /* Second Memory base address register */
-
-
/* Base address of registers */
#define SH5PCI_ICR_BASE (PHYS_PCI_BLOCK + 0x00040000)
#define SH5PCI_IO_BASE (PHYS_PCI_BLOCK + 0x00800000)
/* #define SH5PCI_VCR_BASE (P2SEG_PCICB_BLOCK + P2SEG) */
+extern unsigned long pcicr_virt;
/* Register selection macro */
#define PCISH5_ICR_REG(x) ( pcicr_virt + (PCISH5_ICR_##x))
/* #define PCISH5_VCR_REG(x) ( SH5PCI_VCR_BASE (PCISH5_VCR_##x)) */
@@ -104,4 +105,9 @@
#define PCISH5_MEM_SIZCONV(x) (((x / 0x40000) - 1) << 18)
#define PCISH5_IO_SIZCONV(x) (((x / 0x40000) - 1) << 18)
+extern struct pci_ops sh5_pci_ops;
+
+/* arch/sh/drivers/pci/pci-sh5.c */
+int sh5pci_init(unsigned long memStart, unsigned long memSize);
+#endif /* __PCI_SH5_H */
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c
index ccaba368ac9b..49b435c3a57a 100644
--- a/arch/sh/drivers/pci/pci.c
+++ b/arch/sh/drivers/pci/pci.c
@@ -71,7 +71,7 @@ subsys_initcall(pcibios_init);
* Called after each bus is probed, but before its children
* are examined.
*/
-void __devinit pcibios_fixup_bus(struct pci_bus *bus)
+void __devinit __weak pcibios_fixup_bus(struct pci_bus *bus)
{
pci_read_bridge_bases(bus);
}