isci.c (11d38a5764295585a2472d5e861fa8abe1a11eb2) isci.c (43cd61606b6bfae52bb09856277751103bfa28fd)
1/*-
2 * BSD LICENSE
3 *
4 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

133{
134 int i;
135
136 for (i = 0; i < ISCI_NUM_PCI_BARS; i++)
137 {
138 struct ISCI_PCI_BAR *pci_bar = &isci->pci_bar[i];
139
140 pci_bar->resource_id = PCIR_BAR(i*2);
1/*-
2 * BSD LICENSE
3 *
4 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

133{
134 int i;
135
136 for (i = 0; i < ISCI_NUM_PCI_BARS; i++)
137 {
138 struct ISCI_PCI_BAR *pci_bar = &isci->pci_bar[i];
139
140 pci_bar->resource_id = PCIR_BAR(i*2);
141 pci_bar->resource = bus_alloc_resource(isci->device,
142 SYS_RES_MEMORY, &pci_bar->resource_id, 0, ~0, 1,
141 pci_bar->resource = bus_alloc_resource_any(isci->device,
142 SYS_RES_MEMORY, &pci_bar->resource_id,
143 RF_ACTIVE);
144
145 if(pci_bar->resource == NULL)
146 isci_log_message(0, "ISCI",
147 "unable to allocate pci resource\n");
148 else {
149 pci_bar->bus_tag = rman_get_bustag(pci_bar->resource);
150 pci_bar->bus_handle =

--- 526 unchanged lines hidden ---
143 RF_ACTIVE);
144
145 if(pci_bar->resource == NULL)
146 isci_log_message(0, "ISCI",
147 "unable to allocate pci resource\n");
148 else {
149 pci_bar->bus_tag = rman_get_bustag(pci_bar->resource);
150 pci_bar->bus_handle =

--- 526 unchanged lines hidden ---