Deleted Added
full compact
pci_host_generic.c (305136) pci_host_generic.c (308333)
1/*-
2 * Copyright (c) 2015 Ruslan Bukin <br@bsdpad.com>
3 * Copyright (c) 2014 The FreeBSD Foundation
4 * All rights reserved.
5 *
6 * This software was developed by Semihalf under
7 * the sponsorship of the FreeBSD Foundation.
8 *

--- 17 unchanged lines hidden (view full) ---

26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 */
30
31/* Generic ECAM PCIe driver */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2015 Ruslan Bukin <br@bsdpad.com>
3 * Copyright (c) 2014 The FreeBSD Foundation
4 * All rights reserved.
5 *
6 * This software was developed by Semihalf under
7 * the sponsorship of the FreeBSD Foundation.
8 *

--- 17 unchanged lines hidden (view full) ---

26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 */
30
31/* Generic ECAM PCIe driver */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: stable/11/sys/dev/pci/pci_host_generic.c 305136 2016-08-31 17:36:43Z andrew $");
34__FBSDID("$FreeBSD: stable/11/sys/dev/pci/pci_host_generic.c 308333 2016-11-05 10:23:02Z mmel $");
35
36#include "opt_platform.h"
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/malloc.h>
41#include <sys/kernel.h>
42#include <sys/rman.h>

--- 891 unchanged lines hidden (view full) ---

934 free(di, M_DEVBUF);
935 continue;
936 }
937
938 /* Initialize and populate resource list. */
939 resource_list_init(&di->di_rl);
940 ofw_bus_reg_to_rl(dev, node, addr_cells, size_cells,
941 &di->di_rl);
35
36#include "opt_platform.h"
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/malloc.h>
41#include <sys/kernel.h>
42#include <sys/rman.h>

--- 891 unchanged lines hidden (view full) ---

934 free(di, M_DEVBUF);
935 continue;
936 }
937
938 /* Initialize and populate resource list. */
939 resource_list_init(&di->di_rl);
940 ofw_bus_reg_to_rl(dev, node, addr_cells, size_cells,
941 &di->di_rl);
942#ifndef INTRNG
943 ofw_bus_intr_to_rl(dev, node, &di->di_rl, NULL);
942 ofw_bus_intr_to_rl(dev, node, &di->di_rl, NULL);
944#endif
945
946 /* Add newbus device for this FDT node */
947 child = device_add_child(dev, NULL, -1);
948 if (child == NULL) {
949 resource_list_free(&di->di_rl);
950 ofw_bus_gen_destroy_devinfo(&di->di_dinfo);
951 free(di, M_DEVBUF);
952 continue;

--- 19 unchanged lines hidden ---
943
944 /* Add newbus device for this FDT node */
945 child = device_add_child(dev, NULL, -1);
946 if (child == NULL) {
947 resource_list_free(&di->di_rl);
948 ofw_bus_gen_destroy_devinfo(&di->di_dinfo);
949 free(di, M_DEVBUF);
950 continue;

--- 19 unchanged lines hidden ---