-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 60627 b: refs/heads/master c: 5516b54 h: refs/heads/master i: 60625: 4ac6493 60623: 9d593fd v: v3
- Loading branch information
Kumar Gala
committed
Jun 29, 2007
1 parent
3883b34
commit b9932c6
Showing
9 changed files
with
65 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 6a506238b33efd93e60c1585d654b37e292183de | ||
refs/heads/master: 5516b540e98de6f7474a4e7149470ad6a0bbc54a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Contains common pci routines for ALL ppc platform | ||
* | ||
* 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 (at your option) any later version. | ||
*/ | ||
|
||
#undef DEBUG | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/pci.h> | ||
#include <linux/string.h> | ||
#include <linux/init.h> | ||
#include <linux/bootmem.h> | ||
#include <linux/mm.h> | ||
#include <linux/list.h> | ||
#include <linux/syscalls.h> | ||
#include <linux/irq.h> | ||
#include <linux/vmalloc.h> | ||
|
||
#include <asm/processor.h> | ||
#include <asm/io.h> | ||
#include <asm/prom.h> | ||
#include <asm/pci-bridge.h> | ||
#include <asm/byteorder.h> | ||
#include <asm/machdep.h> | ||
#include <asm/ppc-pci.h> | ||
#include <asm/firmware.h> | ||
|
||
#ifdef DEBUG | ||
#include <asm/udbg.h> | ||
#define DBG(fmt...) printk(fmt) | ||
#else | ||
#define DBG(fmt...) | ||
#endif | ||
|
||
/* | ||
* Return the domain number for this bus. | ||
*/ | ||
int pci_domain_nr(struct pci_bus *bus) | ||
{ | ||
if (firmware_has_feature(FW_FEATURE_ISERIES)) | ||
return 0; | ||
else { | ||
struct pci_controller *hose = pci_bus_to_host(bus); | ||
|
||
return hose->global_number; | ||
} | ||
} | ||
|
||
EXPORT_SYMBOL(pci_domain_nr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters