25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: bus_pci.c,v 1.10 2005/03/18 23:20:52 debug Exp $ |
* $Id: bus_pci.c,v 1.12 2005/09/27 23:18:32 debug Exp $ |
29 |
* |
* |
30 |
* This is a generic PCI bus device, used by even lower level devices. |
* This is a generic PCI bus device, used by even lower level devices. |
31 |
* For example, the "gt" device used in Cobalt machines contains a PCI |
* For example, the "gt" device used in Cobalt machines contains a PCI |
43 |
|
|
44 |
#include "bus_pci.h" |
#include "bus_pci.h" |
45 |
|
|
46 |
|
/* #define debug fatal */ |
47 |
|
|
48 |
|
|
49 |
/* |
/* |
50 |
* bus_pci_access(): |
* bus_pci_access(): |
155 |
{ |
{ |
156 |
struct pci_device *new_device; |
struct pci_device *new_device; |
157 |
|
|
158 |
|
if (pci_data == NULL) { |
159 |
|
fatal("bus_pci_add(): pci_data == NULL!\n"); |
160 |
|
exit(1); |
161 |
|
} |
162 |
|
|
163 |
/* Make sure this bus/device/function number isn't already in use: */ |
/* Make sure this bus/device/function number isn't already in use: */ |
164 |
new_device = pci_data->first_device; |
new_device = pci_data->first_device; |
165 |
while (new_device != NULL) { |
while (new_device != NULL) { |