[coreboot] [commit] r5957 - in trunk/src/southbridge: amd/amd8132 amd/amd8151 amd/cs5530 broadcom/bcm21000 broadcom/bcm5780 broadcom/bcm5785 sis/sis966 ti/pci1x2x ti/pcixx12
repository service
svn at coreboot.org
Sun Oct 17 21:30:59 CEST 2010
Author: uwe
Date: Sun Oct 17 21:30:58 2010
New Revision: 5957
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5957
Log:
Add more missing GPL-headers, fix inconsistencies in others.
Signed-off-by: Uwe Hermann <uwe at hermann-uwe.de>
Acked-by: Uwe Hermann <uwe at hermann-uwe.de>
Modified:
trunk/src/southbridge/amd/amd8132/amd8132_bridge.c
trunk/src/southbridge/amd/amd8151/amd8151_agp3.c
trunk/src/southbridge/amd/cs5530/cs5530_vga.c
trunk/src/southbridge/broadcom/bcm21000/bcm21000_pcie.c
trunk/src/southbridge/broadcom/bcm5780/bcm5780_nic.c
trunk/src/southbridge/broadcom/bcm5780/bcm5780_pcie.c
trunk/src/southbridge/broadcom/bcm5780/bcm5780_pcix.c
trunk/src/southbridge/broadcom/bcm5785/bcm5785.c
trunk/src/southbridge/broadcom/bcm5785/bcm5785.h
trunk/src/southbridge/broadcom/bcm5785/bcm5785_early_setup.c
trunk/src/southbridge/broadcom/bcm5785/bcm5785_early_smbus.c
trunk/src/southbridge/broadcom/bcm5785/bcm5785_enable_rom.c
trunk/src/southbridge/broadcom/bcm5785/bcm5785_ide.c
trunk/src/southbridge/broadcom/bcm5785/bcm5785_lpc.c
trunk/src/southbridge/broadcom/bcm5785/bcm5785_reset.c
trunk/src/southbridge/broadcom/bcm5785/bcm5785_sata.c
trunk/src/southbridge/broadcom/bcm5785/bcm5785_sb_pci_main.c
trunk/src/southbridge/broadcom/bcm5785/bcm5785_smbus.h
trunk/src/southbridge/broadcom/bcm5785/bcm5785_usb.c
trunk/src/southbridge/broadcom/bcm5785/bootblock.c
trunk/src/southbridge/broadcom/bcm5785/chip.h
trunk/src/southbridge/sis/sis966/sis761.c
trunk/src/southbridge/ti/pci1x2x/pci1x2x.c
trunk/src/southbridge/ti/pcixx12/chip.h
trunk/src/southbridge/ti/pcixx12/pcixx12.c
Modified: trunk/src/southbridge/amd/amd8132/amd8132_bridge.c
==============================================================================
--- trunk/src/southbridge/amd/amd8132/amd8132_bridge.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/amd/amd8132/amd8132_bridge.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,8 +1,7 @@
/*
* This file is part of the coreboot project.
*
- * Copyright (C) 2005 Advanced Micro Devices, Inc.
- * Copyright (C) 2010 Advanced Micro Devices, Inc.
+ * Copyright (C) 2005,2010 Advanced Micro Devices, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,10 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-/*
- * Description: Amd 8132 support by yhlu
- */
-
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
Modified: trunk/src/southbridge/amd/amd8151/amd8151_agp3.c
==============================================================================
--- trunk/src/southbridge/amd/amd8151/amd8151_agp3.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/amd/amd8151/amd8151_agp3.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,8 +1,23 @@
/*
- * Copyright 2003 Tyan
+ * This file is part of the coreboot project.
*
- * Author: Yinghai Lu
+ * Copyright (C) 2003 Tyan Computer
+ * Written by Yinghai Lu <yhlu at tyan.com> for Tyan Computer.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
Modified: trunk/src/southbridge/amd/cs5530/cs5530_vga.c
==============================================================================
--- trunk/src/southbridge/amd/cs5530/cs5530_vga.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/amd/cs5530/cs5530_vga.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,4 +1,6 @@
/*
+ * This file is part of the coreboot project.
+ *
* Copyright (C) 2007 Juergen Beisert <juergen at kreuzholzen.de>
*
* This program is free software; you can redistribute it and/or modify
Modified: trunk/src/southbridge/broadcom/bcm21000/bcm21000_pcie.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm21000/bcm21000_pcie.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm21000/bcm21000_pcie.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,8 +1,9 @@
/*
* This file is part of the coreboot project.
*
-* Copyright (C) 2009 University of Heidelberg
- * Written by Mondrian Nuessle <nuessle at uni-heidelberg.de> for University of Heidelberg
+ * Copyright (C) 2009 University of Heidelberg
+ * Written by Mondrian Nuessle <nuessle at uni-heidelberg.de> for
+ * University of Heidelberg.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,7 +20,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
@@ -28,7 +28,6 @@
static void pcie_init(struct device *dev)
{
-
/* Enable pci error detecting */
uint32_t dword;
uint32_t msicap;
@@ -61,7 +60,6 @@
.ops_pci = &lops_pci,
};
-
static const struct pci_driver pcie_driver1 __pci_driver = {
.ops = &pcie_ops,
.vendor = PCI_VENDOR_ID_SERVERWORKS,
@@ -79,4 +77,3 @@
.vendor = PCI_VENDOR_ID_SERVERWORKS,
.device = PCI_DEVICE_ID_SERVERWORKS_BCM21000_EXB2,
};
-
Modified: trunk/src/southbridge/broadcom/bcm5780/bcm5780_nic.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5780/bcm5780_nic.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5780/bcm5780_nic.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,6 +1,21 @@
/*
- * Copyright 2005 AMD
- * by yinghai.lu at amd.com
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <console/console.h>
@@ -9,10 +24,8 @@
#include <device/pci_ids.h>
#include <device/pci_ops.h>
-
static void nic_init(struct device *dev)
{
-
#if CONFIG_PCI_ROM_RUN == 1
pci_dev_init(dev);// it will init option rom
#endif
@@ -37,11 +50,13 @@
.scan_bus = 0,
.ops_pci = &lops_pci,
};
+
static const struct pci_driver nic_driver __pci_driver = {
.ops = &nic_ops,
.vendor = PCI_VENDOR_ID_BROADCOM,
.device = PCI_DEVICE_ID_BROADCOM_BCM5780_NIC,
};
+
static const struct pci_driver nic1_driver __pci_driver = {
.ops = &nic_ops,
.vendor = PCI_VENDOR_ID_BROADCOM,
Modified: trunk/src/southbridge/broadcom/bcm5780/bcm5780_pcie.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5780/bcm5780_pcie.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5780/bcm5780_pcie.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,6 +1,21 @@
/*
- * Copyright 2005 AMD
- * by yinghai.lu at amd.com
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <console/console.h>
@@ -43,4 +58,3 @@
.vendor = PCI_VENDOR_ID_SERVERWORKS,
.device = PCI_DEVICE_ID_SERVERWORKS_BCM5780_PCIE,
};
-
Modified: trunk/src/southbridge/broadcom/bcm5780/bcm5780_pcix.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5780/bcm5780_pcix.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5780/bcm5780_pcix.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,6 +1,21 @@
/*
- * Copyright 2005 AMD
- * by yinghai.lu at amd.com
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <console/console.h>
@@ -14,6 +29,7 @@
pci_write_config32(dev, 0x40,
((device & 0xffff) << 16) | (vendor & 0xffff));
}
+
static struct pci_operations lops_pci = {
.set_subsystem = lpci_set_subsystem,
};
@@ -34,4 +50,3 @@
.vendor = PCI_VENDOR_ID_SERVERWORKS,
.device = PCI_DEVICE_ID_SERVERWORKS_BCM5780_PXB,
};
-
Modified: trunk/src/southbridge/broadcom/bcm5785/bcm5785.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/bcm5785.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/bcm5785.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,7 +1,23 @@
/*
- * Copyright 2005 AMD
- * by yinghai.lu at amd.com
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
Modified: trunk/src/southbridge/broadcom/bcm5785/bcm5785.h
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/bcm5785.h Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/bcm5785.h Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,3 +1,23 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
#ifndef BCM5785_H
#define BCM5785_H
Modified: trunk/src/southbridge/broadcom/bcm5785/bcm5785_early_setup.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/bcm5785_early_setup.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/bcm5785_early_setup.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,6 +1,21 @@
/*
- * Copyright 2005 AMD
- * by yinghai.lu at amd.com
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <reset.h>
@@ -9,7 +24,6 @@
static void bcm5785_enable_lpc(void)
{
-
uint8_t byte;
device_t dev;
@@ -119,8 +133,6 @@
#endif
}
-
-
static void bcm5785_enable_msg(void)
{
device_t dev;
@@ -145,7 +157,6 @@
if(dword != dword_old ) {
pci_write_config32(dev, 0x6c, dword);
}
-
}
static void bcm5785_early_setup(void)
Modified: trunk/src/southbridge/broadcom/bcm5785/bcm5785_early_smbus.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/bcm5785_early_smbus.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/bcm5785_early_smbus.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,6 +1,21 @@
/*
- * Copyright 2005 AMD
- * by yinghai.lu at amd.com
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "bcm5785_smbus.h"
Modified: trunk/src/southbridge/broadcom/bcm5785/bcm5785_enable_rom.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/bcm5785_enable_rom.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/bcm5785_enable_rom.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,3 +1,23 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
static void bcm5785_enable_rom(void)
{
unsigned char byte;
Modified: trunk/src/southbridge/broadcom/bcm5785/bcm5785_ide.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/bcm5785_ide.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/bcm5785_ide.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,6 +1,21 @@
/*
- * Copyright 2005 AMD
- * by yinghai.lu at amd.com
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <console/console.h>
@@ -50,4 +65,3 @@
.vendor = PCI_VENDOR_ID_SERVERWORKS,
.device = PCI_DEVICE_ID_SERVERWORKS_BCM5785_IDE,
};
-
Modified: trunk/src/southbridge/broadcom/bcm5785/bcm5785_lpc.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/bcm5785_lpc.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/bcm5785_lpc.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,6 +1,21 @@
/*
- * Copyright 2005 AMD
- * by yinghai.lu at amd.com
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <console/console.h>
@@ -18,13 +33,11 @@
static void lpc_init(device_t dev)
{
-
/* Initialize the real time clock */
rtc_init(0);
/* Initialize isa dma */
isa_dma_init();
-
}
static void bcm5785_lpc_read_resources(device_t dev)
@@ -54,10 +67,9 @@
}
/**
- * @brief Enable resources for children devices
- *
- * @param dev the device whos children's resources are to be enabled
+ * Enable resources for children devices.
*
+ * @param dev The device whos children's resources are to be enabled.
*/
static void bcm5785_lpc_enable_childrens_resources(device_t dev)
{
@@ -128,9 +140,9 @@
// .enable = bcm5785_enable,
.ops_pci = &lops_pci,
};
+
static const struct pci_driver lpc_driver __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_SERVERWORKS,
.device = PCI_DEVICE_ID_SERVERWORKS_BCM5785_LPC,
};
-
Modified: trunk/src/southbridge/broadcom/bcm5785/bcm5785_reset.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/bcm5785_reset.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/bcm5785_reset.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,6 +1,21 @@
/*
- * Copyright 2005 AMD
- * by yinghai.lu at amd.com
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <arch/io.h>
@@ -39,4 +54,3 @@
outb((0 <<3)|(0<<2)|(1<<1), 0xcf9);
outb((0 <<3)|(1<<2)|(1<<1), 0xcf9);
}
-
Modified: trunk/src/southbridge/broadcom/bcm5785/bcm5785_sata.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/bcm5785_sata.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/bcm5785_sata.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,6 +1,21 @@
/*
- * Copyright 2005 AMD
- * by yinghai.lu at amd.com
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <console/console.h>
@@ -63,6 +78,7 @@
pci_write_config32(dev, 0x40,
((device & 0xffff) << 16) | (vendor & 0xffff));
}
+
static struct pci_operations lops_pci = {
.set_subsystem = lpci_set_subsystem,
};
@@ -82,4 +98,3 @@
.vendor = PCI_VENDOR_ID_SERVERWORKS,
.device = PCI_DEVICE_ID_SERVERWORKS_BCM5785_SATA,
};
-
Modified: trunk/src/southbridge/broadcom/bcm5785/bcm5785_sb_pci_main.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/bcm5785_sb_pci_main.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/bcm5785_sb_pci_main.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,6 +1,21 @@
/*
- * Copyright 2005 AMD
- * by yinghai.lu at amd.com
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <console/console.h>
@@ -89,6 +104,7 @@
return do_smbus_send_byte(res->base, device, val);
}
+
static int lsmbus_read_byte(device_t dev, uint8_t address)
{
unsigned device;
@@ -102,6 +118,7 @@
return do_smbus_read_byte(res->base, device, address);
}
+
static int lsmbus_write_byte(device_t dev, uint8_t address, uint8_t val)
{
unsigned device;
@@ -115,6 +132,7 @@
return do_smbus_write_byte(res->base, device, address, val);
}
+
static struct smbus_bus_operations lops_smbus_bus = {
.recv_byte = lsmbus_recv_byte,
.send_byte = lsmbus_send_byte,
@@ -142,9 +160,9 @@
.ops_pci = &lops_pci,
.ops_smbus_bus = &lops_smbus_bus,
};
+
static const struct pci_driver sb_driver __pci_driver = {
.ops = &sb_ops,
.vendor = PCI_VENDOR_ID_SERVERWORKS,
.device = PCI_DEVICE_ID_SERVERWORKS_BCM5785_SB_PCI_MAIN,
};
-
Modified: trunk/src/southbridge/broadcom/bcm5785/bcm5785_smbus.h
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/bcm5785_smbus.h Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/bcm5785_smbus.h Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,7 +1,23 @@
/*
- * Copyright 2005 AMD
- * by yinghai.lu at amd.com
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
#include <device/smbus_def.h>
#define SMBHSTSTAT 0x0
@@ -90,8 +106,8 @@
byte = inb(smbus_io_base + SMBHSTCMD);
return byte;
-
}
+
static int do_smbus_send_byte(unsigned smbus_io_base, unsigned device, unsigned char val)
{
uint8_t byte;
@@ -117,10 +133,8 @@
}
return 0;
-
}
-
static int do_smbus_read_byte(unsigned smbus_io_base, unsigned device, unsigned address)
{
uint8_t byte;
@@ -150,6 +164,7 @@
return byte;
}
+
static int do_smbus_write_byte(unsigned smbus_io_base, unsigned device, unsigned address, unsigned char val)
{
uint8_t byte;
@@ -178,7 +193,4 @@
}
return 0;
-
}
-
-
Modified: trunk/src/southbridge/broadcom/bcm5785/bcm5785_usb.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/bcm5785_usb.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/bcm5785_usb.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,6 +1,21 @@
/*
- * Copyright 2005 AMD
- * by yinghai.lu at amd.com
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <console/console.h>
@@ -27,6 +42,7 @@
pci_write_config32(dev, 0x40,
((device & 0xffff) << 16) | (vendor & 0xffff));
}
+
static struct pci_operations lops_pci = {
.set_subsystem = lpci_set_subsystem,
};
@@ -46,4 +62,3 @@
.vendor = PCI_VENDOR_ID_SERVERWORKS,
.device = PCI_DEVICE_ID_SERVERWORKS_BCM5785_USB,
};
-
Modified: trunk/src/southbridge/broadcom/bcm5785/bootblock.c
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/bootblock.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/bootblock.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,3 +1,23 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
#include "bcm5785_enable_rom.c"
static void bootblock_southbridge_init(void) {
Modified: trunk/src/southbridge/broadcom/bcm5785/chip.h
==============================================================================
--- trunk/src/southbridge/broadcom/bcm5785/chip.h Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/broadcom/bcm5785/chip.h Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,3 +1,23 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2005 AMD
+ * Written by Yinghai Lu <yinghai.lu at amd.com> for AMD.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
#ifndef BCM5785_CHIP_H
#define BCM5785_CHIP_H
Modified: trunk/src/southbridge/sis/sis966/sis761.c
==============================================================================
--- trunk/src/southbridge/sis/sis966/sis761.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/sis/sis966/sis761.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,6 +1,9 @@
/*
* This file is part of the coreboot project.
*
+ * Copyright (C) 2007 Silicon Integrated Systems Corp. (SiS)
+ * Written by Morgan Tsai <my_tsai at sis.com> for SiS.
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
@@ -14,7 +17,9 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
+ */
+
+/*
* Turn off machine check triggers when reading
* pci space where there are no devices.
* This is necessary when scaning the bus for
@@ -24,9 +29,6 @@
*
* - Athlon64 workarounds by Stefan Reinauer
* - "reset once" logic by Yinghai Lu
- * Copyright (C) 2007 Silicon Integrated Systems Corp. (SiS)
- * Written by Morgan Tsai <my_tsai at sis.com> for SiS.
- *
*/
#include <console/console.h>
Modified: trunk/src/southbridge/ti/pci1x2x/pci1x2x.c
==============================================================================
--- trunk/src/southbridge/ti/pci1x2x/pci1x2x.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/ti/pci1x2x/pci1x2x.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
Modified: trunk/src/southbridge/ti/pcixx12/chip.h
==============================================================================
--- trunk/src/southbridge/ti/pcixx12/chip.h Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/ti/pcixx12/chip.h Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,7 +1,7 @@
/*
* This file is part of the coreboot project.
*
- * (C) Copyright 2008 coresystems GmbH
+ * Copyright (C) 2008 coresystems GmbH
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,8 +14,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
- * MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _SOUTHBRIDGE_TI_PCIXX12
Modified: trunk/src/southbridge/ti/pcixx12/pcixx12.c
==============================================================================
--- trunk/src/southbridge/ti/pcixx12/pcixx12.c Sun Oct 17 21:13:18 2010 (r5956)
+++ trunk/src/southbridge/ti/pcixx12/pcixx12.c Sun Oct 17 21:30:58 2010 (r5957)
@@ -1,7 +1,7 @@
/*
* This file is part of the coreboot project.
*
- * (C) Copyright 2008 coresystems GmbH
+ * Copyright (C) 2008 coresystems GmbH
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,8 +14,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
- * MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <arch/io.h>
More information about the coreboot
mailing list