* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1319, 2003/06/09 15:30:39-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/atm/fore200e.c
drivers/atm/fore200e.c | 5 -----
1 files changed, 5 deletions(-)
diff -Nru a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c
--- a/drivers/atm/fore200e.c Tue Jun 10 11:22:27 2003
+++ b/drivers/atm/fore200e.c Tue Jun 10 11:22:27 2003
@@ -633,11 +633,6 @@
struct pci_dev* pci_dev = NULL;
int count = index;
- if (pci_present() == 0) {
- printk(FORE200E "no PCI subsystem\n");
- return NULL;
- }
-
do {
pci_dev = pci_find_device(PCI_VENDOR_ID_FORE, PCI_DEVICE_ID_FORE_PCA200E, pci_dev);
if (pci_dev == NULL)
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1318, 2003/06/09 15:29:58-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/atm/ambassador.c
drivers/atm/ambassador.c | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/drivers/atm/ambassador.c b/drivers/atm/ambassador.c
--- a/drivers/atm/ambassador.c Tue Jun 10 11:22:32 2003
+++ b/drivers/atm/ambassador.c Tue Jun 10 11:22:32 2003
@@ -2509,9 +2509,6 @@
PRINTD (DBG_FLOW, "amb_probe");
- if (!pci_present())
- return 0;
-
devs = 0;
pci_dev = NULL;
while ((pci_dev = pci_find_device
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1322, 2003/06/09 15:32:18-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/char/ip2main.c
drivers/char/ip2main.c | 58 +++++++++++++++++++++++--------------------------
1 files changed, 28 insertions(+), 30 deletions(-)
diff -Nru a/drivers/char/ip2main.c b/drivers/char/ip2main.c
--- a/drivers/char/ip2main.c Tue Jun 10 11:22:13 2003
+++ b/drivers/char/ip2main.c Tue Jun 10 11:22:13 2003
@@ -691,41 +691,39 @@
}
}
#else /* LINUX_VERSION_CODE > 2.1.99 */
- if (pci_present()) {
- struct pci_dev *pci_dev_i = NULL;
- pci_dev_i = pci_find_device(PCI_VENDOR_ID_COMPUTONE,
- PCI_DEVICE_ID_COMPUTONE_IP2EX, pci_dev_i);
- if (pci_dev_i != NULL) {
- unsigned int addr;
- unsigned char pci_irq;
+ struct pci_dev *pci_dev_i = NULL;
+ pci_dev_i = pci_find_device(PCI_VENDOR_ID_COMPUTONE,
+ PCI_DEVICE_ID_COMPUTONE_IP2EX, pci_dev_i);
+ if (pci_dev_i != NULL) {
+ unsigned int addr;
+ unsigned char pci_irq;
- ip2config.type[i] = PCI;
- status =
- pci_read_config_dword(pci_dev_i, PCI_BASE_ADDRESS_1, &addr);
- if ( addr & 1 ) {
- ip2config.addr[i]=(USHORT)(addr&0xfffe);
- } else {
- printk( KERN_ERR "IP2: PCI I/O address error\n");
- }
- status =
- pci_read_config_byte(pci_dev_i, PCI_INTERRUPT_LINE, &pci_irq);
+ ip2config.type[i] = PCI;
+ status =
+ pci_read_config_dword(pci_dev_i, PCI_BASE_ADDRESS_1, &addr);
+ if ( addr & 1 ) {
+ ip2config.addr[i]=(USHORT)(addr&0xfffe);
+ } else {
+ printk( KERN_ERR "IP2: PCI I/O address error\n");
+ }
+ status =
+ pci_read_config_byte(pci_dev_i, PCI_INTERRUPT_LINE, &pci_irq);
// If the PCI BIOS assigned it, lets try and use it. If we
// can't acquire it or it screws up, deal with it then.
-// if (!is_valid_irq(pci_irq)) {
-// printk( KERN_ERR "IP2: Bad PCI BIOS IRQ(%d)\n",pci_irq);
-// pci_irq = 0;
-// }
- ip2config.irq[i] = pci_irq;
- } else { // ann error
- ip2config.addr[i] = 0;
- if (status == PCIBIOS_DEVICE_NOT_FOUND) {
- printk( KERN_ERR "IP2: PCI board %d not found\n", i );
- } else {
- pcibios_strerror(status);
- }
- }
+// if (!is_valid_irq(pci_irq)) {
+// printk( KERN_ERR "IP2: Bad PCI BIOS IRQ(%d)\n",pci_irq);
+// pci_irq = 0;
+// }
+ ip2config.irq[i] = pci_irq;
+ } else { // ann error
+ ip2config.addr[i] = 0;
+ if (status == PCIBIOS_DEVICE_NOT_FOUND) {
+ printk( KERN_ERR "IP2: PCI board %d not found\n", i );
+ } else {
+ pcibios_strerror(status);
+ }
}
#endif /* ! 2_0_X */
#else
^ permalink raw reply [flat|nested] 76+ messages in thread
* [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:33 [BK PATCH] " Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1316, 2003/06/09 15:27:00-07:00, greg@kroah.com
PCI: remove pci_present() from arch/sparc/kernel/ebus.c
arch/sparc/kernel/ebus.c | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/arch/sparc/kernel/ebus.c b/arch/sparc/kernel/ebus.c
--- a/arch/sparc/kernel/ebus.c Tue Jun 10 11:22:41 2003
+++ b/arch/sparc/kernel/ebus.c Tue Jun 10 11:22:41 2003
@@ -267,9 +267,6 @@
int reg, nreg;
int num_ebus = 0;
- if (!pci_present())
- return;
-
prom_getstring(prom_root_node, "name", lbuf, sizeof(lbuf));
for (sp = ebus_blacklist; sp->esname != NULL; sp++) {
if (strcmp(lbuf, sp->esname) == 0) {
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1320, 2003/06/09 15:31:07-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/atm/nicstar.c
drivers/atm/nicstar.c | 5 -----
1 files changed, 5 deletions(-)
diff -Nru a/drivers/atm/nicstar.c b/drivers/atm/nicstar.c
--- a/drivers/atm/nicstar.c Tue Jun 10 11:22:23 2003
+++ b/drivers/atm/nicstar.c Tue Jun 10 11:22:23 2003
@@ -283,11 +283,6 @@
struct pci_dev *pcidev;
XPRINTK("nicstar: nicstar_module_init() called.\n");
- if(!pci_present())
- {
- printk("nicstar: no PCI subsystem found.\n");
- return -EIO;
- }
for(i = 0; i < NS_MAX_CARDS; i++)
cards[i] = NULL;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` [PATCH] " Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1317, 2003/06/09 15:29:23-07:00, greg@kroah.com
PCI: remove pci_present() from arch/sparc64/kernel/ebus.c
arch/sparc64/kernel/ebus.c | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/arch/sparc64/kernel/ebus.c b/arch/sparc64/kernel/ebus.c
--- a/arch/sparc64/kernel/ebus.c Tue Jun 10 11:22:37 2003
+++ b/arch/sparc64/kernel/ebus.c Tue Jun 10 11:22:37 2003
@@ -525,9 +525,6 @@
int nd, ebusnd, is_rio;
int num_ebus = 0;
- if (!pci_present())
- return;
-
pdev = find_next_ebus(NULL, &is_rio);
if (!pdev) {
printk("ebus: No EBus's found.\n");
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1321, 2003/06/09 15:31:49-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/char/epca.c
drivers/char/epca.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diff -Nru a/drivers/char/epca.c b/drivers/char/epca.c
--- a/drivers/char/epca.c Tue Jun 10 11:22:18 2003
+++ b/drivers/char/epca.c Tue Jun 10 11:22:18 2003
@@ -1639,16 +1639,9 @@
--------------------------------------------------------------------- */
pci_boards_found = 0;
- if (pci_present())
- {
- if(num_cards < MAXBOARDS)
- pci_boards_found += init_PCI();
- num_cards += pci_boards_found;
- }
- else
- {
- printk(KERN_ERR "<Error> - No PCI BIOS found\n");
- }
+ if(num_cards < MAXBOARDS)
+ pci_boards_found += init_PCI();
+ num_cards += pci_boards_found;
#endif /* ENABLE_PCI */
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1323, 2003/06/09 15:32:51-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/char/isicom.c
drivers/char/isicom.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/drivers/char/isicom.c b/drivers/char/isicom.c
--- a/drivers/char/isicom.c Tue Jun 10 11:22:08 2003
+++ b/drivers/char/isicom.c Tue Jun 10 11:22:08 2003
@@ -1905,7 +1905,7 @@
}
}
- if (pci_present() && (card < BOARD_COUNT)) {
+ if (card < BOARD_COUNT) {
for (idx=0; idx < DEVID_COUNT; idx++) {
dev = NULL;
for (;;){
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 [PATCH] Yet more PCI fixes for 2.5.70 Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1327, 2003/06/09 15:35:14-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/char/specialix.c
drivers/char/specialix.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/drivers/char/specialix.c b/drivers/char/specialix.c
--- a/drivers/char/specialix.c Tue Jun 10 11:21:50 2003
+++ b/drivers/char/specialix.c Tue Jun 10 11:21:50 2003
@@ -2294,7 +2294,7 @@
found++;
#ifdef CONFIG_PCI
- if (pci_present()) {
+ {
struct pci_dev *pdev = NULL;
i=0;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1331, 2003/06/09 15:37:53-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/ide/ide.c
drivers/ide/ide.c | 5 +----
1 files changed, 1 insertion(+), 4 deletions(-)
diff -Nru a/drivers/ide/ide.c b/drivers/ide/ide.c
--- a/drivers/ide/ide.c Tue Jun 10 11:21:31 2003
+++ b/drivers/ide/ide.c Tue Jun 10 11:21:31 2003
@@ -2115,10 +2115,7 @@
static void __init probe_for_hwifs (void)
{
#ifdef CONFIG_BLK_DEV_IDEPCI
- if (pci_present())
- {
- ide_scan_pcibus(ide_scan_direction);
- }
+ ide_scan_pcibus(ide_scan_direction);
#endif /* CONFIG_BLK_DEV_IDEPCI */
#ifdef CONFIG_ETRAX_IDE
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1326, 2003/06/09 15:34:46-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/char/rocket.c
drivers/char/rocket.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff -Nru a/drivers/char/rocket.c b/drivers/char/rocket.c
--- a/drivers/char/rocket.c Tue Jun 10 11:21:54 2003
+++ b/drivers/char/rocket.c Tue Jun 10 11:21:54 2003
@@ -2713,12 +2713,8 @@
}
#ifdef CONFIG_PCI
- if (pci_present()) {
- if (isa_boards_found < NUM_BOARDS)
- pci_boards_found = init_PCI(isa_boards_found);
- } else {
- printk(KERN_INFO "No PCI BIOS found\n");
- }
+ if (isa_boards_found < NUM_BOARDS)
+ pci_boards_found = init_PCI(isa_boards_found);
#endif
max_board = pci_boards_found + isa_boards_found;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1329, 2003/06/09 15:36:48-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/char/sx.c
drivers/char/sx.c | 116 +++++++++++++++++++++++++++---------------------------
1 files changed, 58 insertions(+), 58 deletions(-)
diff -Nru a/drivers/char/sx.c b/drivers/char/sx.c
--- a/drivers/char/sx.c Tue Jun 10 11:21:40 2003
+++ b/drivers/char/sx.c Tue Jun 10 11:21:40 2003
@@ -2460,69 +2460,68 @@
}
#ifdef CONFIG_PCI
- if (pci_present ()) {
#ifndef TWO_ZERO
- while ((pdev = pci_find_device (PCI_VENDOR_ID_SPECIALIX,
- PCI_DEVICE_ID_SPECIALIX_SX_XIO_IO8,
- pdev))) {
- if (pci_enable_device(pdev))
- continue;
+ while ((pdev = pci_find_device (PCI_VENDOR_ID_SPECIALIX,
+ PCI_DEVICE_ID_SPECIALIX_SX_XIO_IO8,
+ pdev))) {
+ if (pci_enable_device(pdev))
+ continue;
#else
- for (i=0;i< SX_NBOARDS;i++) {
- if (pcibios_find_device (PCI_VENDOR_ID_SPECIALIX,
- PCI_DEVICE_ID_SPECIALIX_SX_XIO_IO8, i,
- &pci_bus, &pci_fun)) break;
+ for (i=0;i< SX_NBOARDS;i++) {
+ if (pcibios_find_device (PCI_VENDOR_ID_SPECIALIX,
+ PCI_DEVICE_ID_SPECIALIX_SX_XIO_IO8, i,
+ &pci_bus, &pci_fun))
+ break;
#endif
- /* Specialix has a whole bunch of cards with
- 0x2000 as the device ID. They say its because
- the standard requires it. Stupid standard. */
- /* It seems that reading a word doesn't work reliably on 2.0.
- Also, reading a non-aligned dword doesn't work. So we read the
- whole dword at 0x2c and extract the word at 0x2e (SUBSYSTEM_ID)
- ourselves */
- /* I don't know why the define doesn't work, constant 0x2c does --REW */
- pci_read_config_dword (pdev, 0x2c, &tint);
- tshort = (tint >> 16) & 0xffff;
- sx_dprintk (SX_DEBUG_PROBE, "Got a specialix card: %x.\n", tint);
- /* sx_dprintk (SX_DEBUG_PROBE, "pdev = %d/%d (%x)\n", pdev, tint); */
- if ((tshort != 0x0200) && (tshort != 0x0300)) {
- sx_dprintk (SX_DEBUG_PROBE, "But it's not an SX card (%d)...\n",
- tshort);
- continue;
- }
- board = &boards[found];
+ /* Specialix has a whole bunch of cards with
+ 0x2000 as the device ID. They say its because
+ the standard requires it. Stupid standard. */
+ /* It seems that reading a word doesn't work reliably on 2.0.
+ Also, reading a non-aligned dword doesn't work. So we read the
+ whole dword at 0x2c and extract the word at 0x2e (SUBSYSTEM_ID)
+ ourselves */
+ /* I don't know why the define doesn't work, constant 0x2c does --REW */
+ pci_read_config_dword (pdev, 0x2c, &tint);
+ tshort = (tint >> 16) & 0xffff;
+ sx_dprintk (SX_DEBUG_PROBE, "Got a specialix card: %x.\n", tint);
+ /* sx_dprintk (SX_DEBUG_PROBE, "pdev = %d/%d (%x)\n", pdev, tint); */
+ if ((tshort != 0x0200) && (tshort != 0x0300)) {
+ sx_dprintk (SX_DEBUG_PROBE, "But it's not an SX card (%d)...\n",
+ tshort);
+ continue;
+ }
+ board = &boards[found];
- board->flags &= ~SX_BOARD_TYPE;
- board->flags |= (tshort == 0x200)?SX_PCI_BOARD:
- SX_CFPCI_BOARD;
+ board->flags &= ~SX_BOARD_TYPE;
+ board->flags |= (tshort == 0x200)?SX_PCI_BOARD:
+ SX_CFPCI_BOARD;
- /* CF boards use base address 3.... */
- if (IS_CF_BOARD (board))
- board->hw_base = pci_resource_start (pdev, 3);
- else
- board->hw_base = pci_resource_start (pdev, 2);
- board->base2 =
- board->base = (ulong) ioremap(board->hw_base, WINDOW_LEN (board));
- if (!board->base) {
- printk(KERN_ERR "ioremap failed\n");
- /* XXX handle error */
- }
-
- /* Most of the stuff on the CF board is offset by
- 0x18000 .... */
- if (IS_CF_BOARD (board)) board->base += 0x18000;
-
- board->irq = pdev->irq;
-
- sx_dprintk (SX_DEBUG_PROBE, "Got a specialix card: %x/%lx(%d) %x.\n",
- tint, boards[found].base, board->irq, board->flags);
-
- if (probe_sx (board)) {
- found++;
- fix_sx_pci (pdev, board);
- } else
- iounmap ((char *) (board->base));
- }
+ /* CF boards use base address 3.... */
+ if (IS_CF_BOARD (board))
+ board->hw_base = pci_resource_start (pdev, 3);
+ else
+ board->hw_base = pci_resource_start (pdev, 2);
+ board->base2 =
+ board->base = (ulong) ioremap(board->hw_base, WINDOW_LEN (board));
+ if (!board->base) {
+ printk(KERN_ERR "ioremap failed\n");
+ /* XXX handle error */
+ }
+
+ /* Most of the stuff on the CF board is offset by
+ 0x18000 .... */
+ if (IS_CF_BOARD (board)) board->base += 0x18000;
+
+ board->irq = pdev->irq;
+
+ sx_dprintk (SX_DEBUG_PROBE, "Got a specialix card: %x/%lx(%d) %x.\n",
+ tint, boards[found].base, board->irq, board->flags);
+
+ if (probe_sx (board)) {
+ found++;
+ fix_sx_pci (pdev, board);
+ } else
+ iounmap ((char *) (board->base));
}
#endif
@@ -2648,4 +2647,5 @@
module_init(sx_init);
module_exit(sx_exit);
+
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1328, 2003/06/09 15:36:15-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/char/stallion.c
drivers/char/stallion.c | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/drivers/char/stallion.c b/drivers/char/stallion.c
--- a/drivers/char/stallion.c Tue Jun 10 11:21:45 2003
+++ b/drivers/char/stallion.c Tue Jun 10 11:21:45 2003
@@ -2804,9 +2804,6 @@
printk("stl_findpcibrds()\n");
#endif
- if (! pci_present())
- return(0);
-
for (i = 0; (i < stl_nrpcibrds); i++)
while ((dev = pci_find_device(stl_pcibrds[i].vendid,
stl_pcibrds[i].devid, dev))) {
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1332, 2003/06/09 15:38:24-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/isdn/eicon/Divas_mod.c
drivers/isdn/eicon/Divas_mod.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diff -Nru a/drivers/isdn/eicon/Divas_mod.c b/drivers/isdn/eicon/Divas_mod.c
--- a/drivers/isdn/eicon/Divas_mod.c Tue Jun 10 11:21:26 2003
+++ b/drivers/isdn/eicon/Divas_mod.c Tue Jun 10 11:21:26 2003
@@ -50,17 +50,9 @@
DivasInitDpc();
- if (pci_present())
+ if (DivasCardsDiscover() < 0)
{
- if (DivasCardsDiscover() < 0)
- {
- printk(KERN_WARNING "Divas: Not loaded\n");
- return -ENODEV;
- }
- }
- else
- {
- printk(KERN_WARNING "Divas: No PCI bus present\n");
+ printk(KERN_WARNING "Divas: Not loaded\n");
return -ENODEV;
}
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1330, 2003/06/09 15:37:14-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/i2c/i2c-elektor.c
drivers/i2c/i2c-elektor.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/drivers/i2c/i2c-elektor.c b/drivers/i2c/i2c-elektor.c
--- a/drivers/i2c/i2c-elektor.c Tue Jun 10 11:21:36 2003
+++ b/drivers/i2c/i2c-elektor.c Tue Jun 10 11:21:36 2003
@@ -188,7 +188,7 @@
#ifdef __alpha__
/* check to see we have memory mapped PCF8584 connected to the
Cypress cy82c693 PCI-ISA bridge as on UP2000 board */
- if ((base == 0) && pci_present()) {
+ if (base == 0) {
struct pci_dev *cy693_dev =
pci_find_device(PCI_VENDOR_ID_CONTAQ,
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
0 siblings, 0 replies; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1324, 2003/06/09 15:33:18-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/char/istallion.c
drivers/char/istallion.c | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/drivers/char/istallion.c b/drivers/char/istallion.c
--- a/drivers/char/istallion.c Tue Jun 10 11:22:04 2003
+++ b/drivers/char/istallion.c Tue Jun 10 11:22:04 2003
@@ -4670,9 +4670,6 @@
printk("stli_findpcibrds()\n");
#endif
- if (! pci_present())
- return(0);
-
while ((dev = pci_find_device(PCI_VENDOR_ID_STALLION,
PCI_DEVICE_ID_ECRA, dev))) {
if ((rc = stli_initpcibrd(BRD_ECPPCI, dev)))
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1342, 2003/06/09 15:51:21-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/net/skfp/skfddi.c
drivers/net/skfp/skfddi.c | 4 ----
1 files changed, 4 deletions(-)
diff -Nru a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c
--- a/drivers/net/skfp/skfddi.c Tue Jun 10 11:20:39 2003
+++ b/drivers/net/skfp/skfddi.c Tue Jun 10 11:20:39 2003
@@ -298,10 +298,6 @@
printk("%s\n", boot_msg);
/* Scan for Syskonnect FDDI PCI controllers */
- if (!pci_present()) { /* is PCI BIOS even present? */
- printk("no PCI BIOS present\n");
- return (-ENODEV);
- }
for (i = 0; i < SKFP_MAX_NUM_BOARDS; i++) { // scan for PCI cards
PRINTK(KERN_INFO "Check device %d\n", i);
if ((pdev=pci_find_device(PCI_VENDOR_ID_SK, PCI_DEVICE_ID_SK_FP,
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1341, 2003/06/09 15:50:55-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/net/sk98lin/skge.c
drivers/net/sk98lin/skge.c | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/drivers/net/sk98lin/skge.c b/drivers/net/sk98lin/skge.c
--- a/drivers/net/sk98lin/skge.c Tue Jun 10 11:20:43 2003
+++ b/drivers/net/sk98lin/skge.c Tue Jun 10 11:20:43 2003
@@ -409,9 +409,6 @@
printk("%s\n", BootString);
}
- if (!pci_present()) /* is PCI support present? */
- return -ENODEV;
-
while((pdev = pci_find_device(PCI_VENDOR_ID_SYSKONNECT,
PCI_DEVICE_ID_SYSKONNECT_GE, pdev)) != NULL) {
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1335, 2003/06/09 15:39:57-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/mtd/devices/pmc551.c
drivers/mtd/devices/pmc551.c | 5 -----
1 files changed, 5 deletions(-)
diff -Nru a/drivers/mtd/devices/pmc551.c b/drivers/mtd/devices/pmc551.c
--- a/drivers/mtd/devices/pmc551.c Tue Jun 10 11:21:13 2003
+++ b/drivers/mtd/devices/pmc551.c Tue Jun 10 11:21:13 2003
@@ -681,11 +681,6 @@
printk(KERN_INFO PMC551_VERSION);
- if(!pci_present()) {
- printk(KERN_NOTICE "pmc551: PCI not enabled.\n");
- return -ENODEV;
- }
-
/*
* PCU-bus chipset probe.
*/
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1337, 2003/06/09 15:48:21-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/net/dgrs.c
drivers/net/dgrs.c | 80 +++++++++++++++++++++++++----------------------------
1 files changed, 38 insertions(+), 42 deletions(-)
diff -Nru a/drivers/net/dgrs.c b/drivers/net/dgrs.c
--- a/drivers/net/dgrs.c Tue Jun 10 11:21:04 2003
+++ b/drivers/net/dgrs.c Tue Jun 10 11:21:04 2003
@@ -1356,55 +1356,51 @@
uint irq;
uint plxreg;
uint plxdma;
+ struct pci_dev *pdev = NULL;
/*
* First, check for PCI boards
*/
- if (pci_present())
+ while ((pdev = pci_find_device(SE6_PCI_VENDOR_ID, SE6_PCI_DEVICE_ID, pdev)) != NULL)
{
- struct pci_dev *pdev = NULL;
+ /*
+ * Get and check the bus-master and latency values.
+ * Some PCI BIOSes fail to set the master-enable bit,
+ * and the latency timer must be set to the maximum
+ * value to avoid data corruption that occurs when the
+ * timer expires during a transfer. Yes, it's a bug.
+ */
+ if (pci_enable_device(pdev))
+ continue;
+ pci_set_master(pdev);
+
+ plxreg = pci_resource_start (pdev, 0);
+ io = pci_resource_start (pdev, 1);
+ mem = pci_resource_start (pdev, 2);
+ pci_read_config_dword(pdev, 0x30, &plxdma);
+ irq = pdev->irq;
+ plxdma &= ~15;
+
+ /*
+ * On some BIOSES, the PLX "expansion rom" (used for DMA)
+ * address comes up as "0". This is probably because
+ * the BIOS doesn't see a valid 55 AA ROM signature at
+ * the "ROM" start and zeroes the address. To get
+ * around this problem the SE-6 is configured to ask
+ * for 4 MB of space for the dual port memory. We then
+ * must set its range back to 2 MB, and use the upper
+ * half for DMA register access
+ */
+ OUTL(io + PLX_SPACE0_RANGE, 0xFFE00000L);
+ if (plxdma == 0)
+ plxdma = mem + (2048L * 1024L);
+ pci_write_config_dword(pdev, 0x30, plxdma + 1);
+ pci_read_config_dword(pdev, 0x30, &plxdma);
+ plxdma &= ~15;
- while ((pdev = pci_find_device(SE6_PCI_VENDOR_ID, SE6_PCI_DEVICE_ID, pdev)) != NULL)
- {
- /*
- * Get and check the bus-master and latency values.
- * Some PCI BIOSes fail to set the master-enable bit,
- * and the latency timer must be set to the maximum
- * value to avoid data corruption that occurs when the
- * timer expires during a transfer. Yes, it's a bug.
- */
- if (pci_enable_device(pdev))
- continue;
- pci_set_master(pdev);
+ dgrs_found_device(io, mem, irq, plxreg, plxdma);
- plxreg = pci_resource_start (pdev, 0);
- io = pci_resource_start (pdev, 1);
- mem = pci_resource_start (pdev, 2);
- pci_read_config_dword(pdev, 0x30, &plxdma);
- irq = pdev->irq;
- plxdma &= ~15;
-
- /*
- * On some BIOSES, the PLX "expansion rom" (used for DMA)
- * address comes up as "0". This is probably because
- * the BIOS doesn't see a valid 55 AA ROM signature at
- * the "ROM" start and zeroes the address. To get
- * around this problem the SE-6 is configured to ask
- * for 4 MB of space for the dual port memory. We then
- * must set its range back to 2 MB, and use the upper
- * half for DMA register access
- */
- OUTL(io + PLX_SPACE0_RANGE, 0xFFE00000L);
- if (plxdma == 0)
- plxdma = mem + (2048L * 1024L);
- pci_write_config_dword(pdev, 0x30, plxdma + 1);
- pci_read_config_dword(pdev, 0x30, &plxdma);
- plxdma &= ~15;
-
- dgrs_found_device(io, mem, irq, plxreg, plxdma);
-
- cards_found++;
- }
+ cards_found++;
}
/*
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1338, 2003/06/09 15:49:08-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/net/fc/iph5526.c
drivers/net/fc/iph5526.c | 6 +-----
1 files changed, 1 insertion(+), 5 deletions(-)
diff -Nru a/drivers/net/fc/iph5526.c b/drivers/net/fc/iph5526.c
--- a/drivers/net/fc/iph5526.c Tue Jun 10 11:20:59 2003
+++ b/drivers/net/fc/iph5526.c Tue Jun 10 11:20:59 2003
@@ -232,7 +232,7 @@
int __init iph5526_probe(struct net_device *dev)
{
- if (pci_present() && (iph5526_probe_pci(dev) == 0))
+ if (iph5526_probe_pci(dev) == 0)
return 0;
return -ENODEV;
}
@@ -3720,10 +3720,6 @@
unsigned long timeout;
tmpt->proc_name = "iph5526";
- if (pci_present() == 0) {
- printk("iph5526: PCI not present\n");
- return 0;
- }
for (i = 0; i <= MAX_FC_CARDS; i++)
fc[i] = NULL;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1334, 2003/06/09 15:39:26-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/media/radio/radio-maestro.c
drivers/media/radio/radio-maestro.c | 2 --
1 files changed, 2 deletions(-)
diff -Nru a/drivers/media/radio/radio-maestro.c b/drivers/media/radio/radio-maestro.c
--- a/drivers/media/radio/radio-maestro.c Tue Jun 10 11:21:17 2003
+++ b/drivers/media/radio/radio-maestro.c Tue Jun 10 11:21:17 2003
@@ -285,8 +285,6 @@
{
register __u16 found=0;
struct pci_dev *pcidev = NULL;
- if(!pci_present())
- return -ENODEV;
while(!found && (pcidev = pci_find_device(PCI_VENDOR_ESS,
PCI_DEVICE_ID_ESS_ESS1968,
pcidev)))
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1336, 2003/06/09 15:40:32-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/net/acenic.c
drivers/net/acenic.c | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/drivers/net/acenic.c b/drivers/net/acenic.c
--- a/drivers/net/acenic.c Tue Jun 10 11:21:08 2003
+++ b/drivers/net/acenic.c Tue Jun 10 11:21:08 2003
@@ -618,9 +618,6 @@
return -ENODEV;
probed++;
- if (!pci_present()) /* is PCI support present? */
- return -ENODEV;
-
version_disp = 0;
while ((pdev = pci_find_class(PCI_CLASS_NETWORK_ETHERNET<<8, pdev))) {
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1339, 2003/06/09 15:50:05-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/net/hp100.c
drivers/net/hp100.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff -Nru a/drivers/net/hp100.c b/drivers/net/hp100.c
--- a/drivers/net/hp100.c Tue Jun 10 11:20:54 2003
+++ b/drivers/net/hp100.c Tue Jun 10 11:20:54 2003
@@ -405,7 +405,7 @@
/* First: scan PCI bus(es) */
#ifdef CONFIG_PCI
- if (pci_present()) {
+ {
int pci_index;
struct pci_dev *pci_dev = NULL;
int pci_id_index;
@@ -2973,8 +2973,10 @@
{
int i, cards;
- if (hp100_port == 0 && !EISA_bus && !pci_present())
+#ifndef CONFIG_PCI
+ if (hp100_port == 0 && !EISA_bus)
printk("hp100: You should not use auto-probing with insmod!\n");
+#endif
/* Loop on all possible base addresses */
i = -1;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1343, 2003/06/09 15:51:45-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/net/tc35815.c
drivers/net/tc35815.c | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/drivers/net/tc35815.c b/drivers/net/tc35815.c
--- a/drivers/net/tc35815.c Tue Jun 10 11:20:33 2003
+++ b/drivers/net/tc35815.c Tue Jun 10 11:20:33 2003
@@ -488,9 +488,6 @@
return -ENODEV;
called++;
- if (!pci_present())
- return -ENODEV;
-
if (pdev) {
unsigned int pci_memaddr;
unsigned int pci_irq_line;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1333, 2003/06/09 15:38:57-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/isdn/hysdn/hysdn_init.c
drivers/isdn/hysdn/hysdn_init.c | 4 ----
1 files changed, 4 deletions(-)
diff -Nru a/drivers/isdn/hysdn/hysdn_init.c b/drivers/isdn/hysdn/hysdn_init.c
--- a/drivers/isdn/hysdn/hysdn_init.c Tue Jun 10 11:21:22 2003
+++ b/drivers/isdn/hysdn/hysdn_init.c Tue Jun 10 11:21:22 2003
@@ -203,10 +203,6 @@
printk(KERN_NOTICE "HYSDN: module Rev: %s loaded\n", hysdn_getrev(tmp));
strcpy(tmp, hysdn_net_revision);
printk(KERN_NOTICE "HYSDN: network interface Rev: %s \n", hysdn_getrev(tmp));
- if (!pci_present()) {
- printk(KERN_ERR "HYSDN: no PCI bus present, module not loaded\n");
- return (-1);
- }
search_cards();
printk(KERN_INFO "HYSDN: %d card(s) found.\n", cardmax);
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1340, 2003/06/09 15:50:31-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/net/saa9730.c
drivers/net/saa9730.c | 39 +++++++++++++++++++--------------------
1 files changed, 19 insertions(+), 20 deletions(-)
diff -Nru a/drivers/net/saa9730.c b/drivers/net/saa9730.c
--- a/drivers/net/saa9730.c Tue Jun 10 11:20:50 2003
+++ b/drivers/net/saa9730.c Tue Jun 10 11:20:50 2003
@@ -1050,31 +1050,30 @@
static int __init saa9730_probe(void)
{
struct net_device *dev = NULL;
+ struct pci_dev *pdev = NULL;
- if (pci_present()) {
- struct pci_dev *pdev = NULL;
- if (lan_saa9730_debug > 1)
- printk
- ("saa9730.c: PCI bios is present, checking for devices...\n");
+ if (lan_saa9730_debug > 1)
+ printk
+ ("saa9730.c: PCI bios is present, checking for devices...\n");
- while ((pdev = pci_find_device(PCI_VENDOR_ID_PHILIPS,
- PCI_DEVICE_ID_PHILIPS_SAA9730,
- pdev))) {
- unsigned int pci_ioaddr;
+ while ((pdev = pci_find_device(PCI_VENDOR_ID_PHILIPS,
+ PCI_DEVICE_ID_PHILIPS_SAA9730,
+ pdev))) {
+ unsigned int pci_ioaddr;
- pci_irq_line = pdev->irq;
- /* LAN base address in located at BAR 1. */
+ pci_irq_line = pdev->irq;
+ /* LAN base address in located at BAR 1. */
- pci_ioaddr = pci_resource_start(pdev, 1);
- pci_set_master(pdev);
+ pci_ioaddr = pci_resource_start(pdev, 1);
+ pci_set_master(pdev);
- printk("Found SAA9730 (PCI) at %#x, irq %d.\n",
- pci_ioaddr, pci_irq_line);
- if (!lan_saa9730_init
- (dev, pci_ioaddr, pci_irq_line)) return 0;
- else
- printk("Lan init failed.\n");
- }
+ printk("Found SAA9730 (PCI) at %#x, irq %d.\n",
+ pci_ioaddr, pci_irq_line);
+ if (!lan_saa9730_init
+ (dev, pci_ioaddr, pci_irq_line))
+ return 0;
+ else
+ printk("Lan init failed.\n");
}
return -ENODEV;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1348, 2003/06/09 15:54:51-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/pci/proc.c
drivers/pci/proc.c | 22 ++++++++++------------
1 files changed, 10 insertions(+), 12 deletions(-)
diff -Nru a/drivers/pci/proc.c b/drivers/pci/proc.c
--- a/drivers/pci/proc.c Tue Jun 10 11:20:02 2003
+++ b/drivers/pci/proc.c Tue Jun 10 11:20:02 2003
@@ -579,19 +579,17 @@
static int __init pci_proc_init(void)
{
- if (pci_present()) {
- struct proc_dir_entry *entry;
- struct pci_dev *dev = NULL;
- proc_bus_pci_dir = proc_mkdir("pci", proc_bus);
- entry = create_proc_entry("devices", 0, proc_bus_pci_dir);
- if (entry)
- entry->proc_fops = &proc_bus_pci_dev_operations;
- proc_initialized = 1;
- while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
- pci_proc_attach_device(dev);
- }
- legacy_proc_init();
+ struct proc_dir_entry *entry;
+ struct pci_dev *dev = NULL;
+ proc_bus_pci_dir = proc_mkdir("pci", proc_bus);
+ entry = create_proc_entry("devices", 0, proc_bus_pci_dir);
+ if (entry)
+ entry->proc_fops = &proc_bus_pci_dev_operations;
+ proc_initialized = 1;
+ while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+ pci_proc_attach_device(dev);
}
+ legacy_proc_init();
return 0;
}
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1345, 2003/06/09 15:52:51-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/net/wan/lmc/lmc_main.c
drivers/net/wan/lmc/lmc_main.c | 8 --------
drivers/net/wan/lmc/lmc_ver.h | 2 --
2 files changed, 10 deletions(-)
diff -Nru a/drivers/net/wan/lmc/lmc_main.c b/drivers/net/wan/lmc/lmc_main.c
--- a/drivers/net/wan/lmc/lmc_main.c Tue Jun 10 11:20:20 2003
+++ b/drivers/net/wan/lmc/lmc_main.c Tue Jun 10 11:20:20 2003
@@ -1034,14 +1034,6 @@
u8 intcf = 0;
struct pci_dev *pdev = NULL;
- /* The card is only available on PCI, so if we don't have a
- * PCI bus, we are in trouble.
- */
-
- if (!pci_present()) {
-/* printk ("%s: We really want a pci bios!\n", dev->name);*/
- return -1;
- }
/* Loop basically until we don't find anymore. */
while ((pdev = pci_find_class (PCI_CLASS_NETWORK_ETHERNET << 8, pdev))) {
if (pci_enable_device(pdev))
diff -Nru a/drivers/net/wan/lmc/lmc_ver.h b/drivers/net/wan/lmc/lmc_ver.h
--- a/drivers/net/wan/lmc/lmc_ver.h Tue Jun 10 11:20:20 2003
+++ b/drivers/net/wan/lmc/lmc_ver.h Tue Jun 10 11:20:20 2003
@@ -69,12 +69,10 @@
#if LINUX_VERSION_CODE < 0x20155 /* basically 2.2 plus */
#define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb((skb), FREE_WRITE)
-#define LMC_PCI_PRESENT() pcibios_present()
#else /* Mostly 2.0 kernels */
#define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb(skb)
-#define LMC_PCI_PRESENT() pci_present()
#endif
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1347, 2003/06/09 15:54:20-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/net/wan/sdladrv.c
drivers/net/wan/sdladrv.c | 8 +-------
1 files changed, 1 insertion(+), 7 deletions(-)
diff -Nru a/drivers/net/wan/sdladrv.c b/drivers/net/wan/sdladrv.c
--- a/drivers/net/wan/sdladrv.c Tue Jun 10 11:20:07 2003
+++ b/drivers/net/wan/sdladrv.c Tue Jun 10 11:20:07 2003
@@ -1905,13 +1905,7 @@
struct pci_dev *pci_dev;
-#ifdef CONFIG_PCI
- if(!pci_present())
- {
- printk(KERN_INFO "%s: PCI BIOS not present!\n", modname);
- return 0;
- }
-#else
+#ifndef CONFIG_PCI
printk(KERN_INFO "%s: Linux not compiled for PCI usage!\n", modname);
return 0;
#endif
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1353, 2003/06/09 16:02:30-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/atp870u.c
drivers/scsi/atp870u.c | 4 ----
1 files changed, 4 deletions(-)
diff -Nru a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c
--- a/drivers/scsi/atp870u.c Tue Jun 10 11:19:37 2003
+++ b/drivers/scsi/atp870u.c Tue Jun 10 11:19:37 2003
@@ -2321,10 +2321,6 @@
};
printk(KERN_INFO "aec671x_detect: \n");
- if (!pci_present()) {
- printk(KERN_INFO " NO PCI SUPPORT.\n");
- return count;
- }
tpnt->proc_name = "atp870u";
h = 0;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1352, 2003/06/09 16:02:02-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/aic7xxx_old.c
drivers/scsi/aic7xxx_old.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
diff -Nru a/drivers/scsi/aic7xxx_old.c b/drivers/scsi/aic7xxx_old.c
--- a/drivers/scsi/aic7xxx_old.c Tue Jun 10 11:19:42 2003
+++ b/drivers/scsi/aic7xxx_old.c Tue Jun 10 11:19:42 2003
@@ -9033,7 +9033,6 @@
/*
* PCI-bus probe.
*/
- if (pci_present())
{
struct
{
@@ -9692,7 +9691,7 @@
}
} /* while(pdev=....) */
} /* for PCI_DEVICES */
- } /* PCI BIOS present */
+ }
#endif /* CONFIG_PCI */
#if defined(__i386__) || defined(__alpha__)
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1350, 2003/06/09 16:01:11-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/3w-xxxx.c
drivers/scsi/3w-xxxx.c | 6 ------
1 files changed, 6 deletions(-)
diff -Nru a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c
--- a/drivers/scsi/3w-xxxx.c Tue Jun 10 11:19:52 2003
+++ b/drivers/scsi/3w-xxxx.c Tue Jun 10 11:19:52 2003
@@ -2379,12 +2379,6 @@
printk(KERN_WARNING "3ware Storage Controller device driver for Linux v%s.\n", tw_driver_version);
- /* Check if the kernel has PCI interface compiled in */
- if (!pci_present()) {
- printk(KERN_WARNING "3w-xxxx: tw_scsi_detect(): No pci interface present.\n");
- return 0;
- }
-
ret = tw_findcards(tw_host);
return ret;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1349, 2003/06/09 15:59:43-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/pci/syscall.c
drivers/pci/syscall.c | 2 --
1 files changed, 2 deletions(-)
diff -Nru a/drivers/pci/syscall.c b/drivers/pci/syscall.c
--- a/drivers/pci/syscall.c Tue Jun 10 11:19:57 2003
+++ b/drivers/pci/syscall.c Tue Jun 10 11:19:57 2003
@@ -98,8 +98,6 @@
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
- if (!pci_present())
- return -ENOSYS;
dev = pci_find_slot(bus, dfn);
if (!dev)
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1354, 2003/06/09 16:03:01-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/cpqfcTSinit.c
drivers/scsi/cpqfcTSinit.c | 6 ------
1 files changed, 6 deletions(-)
diff -Nru a/drivers/scsi/cpqfcTSinit.c b/drivers/scsi/cpqfcTSinit.c
--- a/drivers/scsi/cpqfcTSinit.c Tue Jun 10 11:19:31 2003
+++ b/drivers/scsi/cpqfcTSinit.c Tue Jun 10 11:19:31 2003
@@ -298,12 +298,6 @@
ScsiHostTemplate->proc_name = "cpqfcTS";
#endif
- if( pci_present() == 0) // no PCI busses?
- {
- printk( " no PCI bus?@#!\n");
- return NumberOfAdapters;
- }
-
for( i=0; i < HBA_TYPES; i++)
{
// look for all HBAs of each type
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1344, 2003/06/09 15:52:15-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/net/tulip/de4x5.c
drivers/net/tulip/de4x5.c | 6 ------
1 files changed, 6 deletions(-)
diff -Nru a/drivers/net/tulip/de4x5.c b/drivers/net/tulip/de4x5.c
--- a/drivers/net/tulip/de4x5.c Tue Jun 10 11:20:28 2003
+++ b/drivers/net/tulip/de4x5.c Tue Jun 10 11:20:28 2003
@@ -2182,11 +2182,6 @@
if (lastPCI == NO_MORE_PCI) return;
- if (!pci_present()) {
- lastPCI = NO_MORE_PCI;
- return; /* No PCI bus in this machine! */
- }
-
lp->bus = PCI;
lp->bus_num = 0;
@@ -5863,7 +5858,6 @@
if (EISA_signature(name, EISA_ID)) j++;
}
#endif
- if (!pci_present()) return j;
for (i=0; (pdev=pci_find_class(class, pdev))!= NULL; i++) {
vendor = pdev->vendor;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1346, 2003/06/09 15:53:52-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/net/wan/sbni.c
drivers/net/wan/sbni.c | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/drivers/net/wan/sbni.c b/drivers/net/wan/sbni.c
--- a/drivers/net/wan/sbni.c Tue Jun 10 11:20:14 2003
+++ b/drivers/net/wan/sbni.c Tue Jun 10 11:20:14 2003
@@ -263,9 +263,6 @@
{
struct pci_dev *pdev = NULL;
- if( !pci_present( ) )
- return -ENODEV;
-
while( (pdev = pci_find_class( PCI_CLASS_NETWORK_OTHER << 8, pdev ))
!= NULL ) {
int pci_irq_line;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1351, 2003/06/09 16:01:36-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/BusLogic.c
drivers/scsi/BusLogic.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -Nru a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c
--- a/drivers/scsi/BusLogic.c Tue Jun 10 11:19:48 2003
+++ b/drivers/scsi/BusLogic.c Tue Jun 10 11:19:48 2003
@@ -1183,7 +1183,7 @@
If a PCI BIOS is present, interrogate it for MultiMaster and FlashPoint
Host Adapters; otherwise, default to the standard ISA MultiMaster probe.
*/
- if (!BusLogic_ProbeOptions.NoProbePCI && pci_present())
+ if (!BusLogic_ProbeOptions.NoProbePCI)
{
if (BusLogic_ProbeOptions.MultiMasterFirst)
{
@@ -5133,3 +5133,4 @@
.use_clustering = ENABLE_CLUSTERING,
};
#include "scsi_module.c"
+
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1363, 2003/06/09 16:08:18-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/qlogicisp.c
drivers/scsi/qlogicisp.c | 5 -----
1 files changed, 5 deletions(-)
diff -Nru a/drivers/scsi/qlogicisp.c b/drivers/scsi/qlogicisp.c
--- a/drivers/scsi/qlogicisp.c Tue Jun 10 11:18:43 2003
+++ b/drivers/scsi/qlogicisp.c Tue Jun 10 11:18:43 2003
@@ -666,11 +666,6 @@
tmpt->proc_name = "isp1020";
- if (pci_present() == 0) {
- printk("qlogicisp : PCI not present\n");
- return 0;
- }
-
while ((pdev = pci_find_device(PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_ISP1020, pdev)))
{
if (pci_enable_device(pdev))
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1361, 2003/06/09 16:07:27-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/qla1280.c
drivers/scsi/qla1280.c | 6 ------
1 files changed, 6 deletions(-)
diff -Nru a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c
--- a/drivers/scsi/qla1280.c Tue Jun 10 11:18:53 2003
+++ b/drivers/scsi/qla1280.c Tue Jun 10 11:18:53 2003
@@ -360,7 +360,6 @@
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0)
#define pci_set_dma_mask(dev, mask) dev->dma_mask = mask;
-#define pci_present() pcibios_present()
#define pci_enable_device(pdev) 0
#define pci_find_subsys(id, dev, sid, sdev, pdev) pci_find_device(id,dev,pdev)
#define scsi_set_pci_device(host, pdev)
@@ -1008,11 +1007,6 @@
"arguments to\n"
"qla1280: insmod or else it might trash certain memory areas.\n");
#endif
-
- if (!pci_present()) {
- printk(KERN_INFO "scsi: PCI not present\n");
- return 0;
- }
bdp = &ql1280_board_tbl[0];
qla1280_hostlist = NULL;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1356, 2003/06/09 16:04:04-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/eata.c
drivers/scsi/eata.c | 6 ------
1 files changed, 6 deletions(-)
diff -Nru a/drivers/scsi/eata.c b/drivers/scsi/eata.c
--- a/drivers/scsi/eata.c Tue Jun 10 11:19:19 2003
+++ b/drivers/scsi/eata.c Tue Jun 10 11:19:19 2003
@@ -959,8 +959,6 @@
unsigned int addr;
struct pci_dev *dev = NULL;
- if (!pci_present()) return NULL;
-
while((dev = pci_find_class(PCI_CLASS_STORAGE_SCSI << 8, dev))) {
addr = pci_resource_start (dev, 0);
@@ -983,8 +981,6 @@
struct pci_dev *dev = NULL;
- if (!pci_present()) return;
-
while((dev = pci_find_class(PCI_CLASS_STORAGE_SCSI << 8, dev))) {
#if defined(DEBUG_PCI_DETECT)
@@ -1409,8 +1405,6 @@
unsigned int addr, k;
struct pci_dev *dev = NULL;
-
- if (!pci_present()) return;
for (k = 0; k < MAX_PCI; k++) {
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1364, 2003/06/09 16:08:46-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/sym53c8xx.c
drivers/scsi/sym53c8xx.c | 8 --------
1 files changed, 8 deletions(-)
diff -Nru a/drivers/scsi/sym53c8xx.c b/drivers/scsi/sym53c8xx.c
--- a/drivers/scsi/sym53c8xx.c Tue Jun 10 11:18:39 2003
+++ b/drivers/scsi/sym53c8xx.c Tue Jun 10 11:18:39 2003
@@ -493,8 +493,6 @@
#define PciDeviceFn(d) ((d)&0xff)
#define __PciDev(busn, devfn) (((busn)<<8)+(devfn))
-#define pci_present pcibios_present
-
#define pci_read_config_byte(d, w, v) \
pcibios_read_config_byte(PciBusNumber(d), PciDeviceFn(d), w, v)
#define pci_read_config_word(d, w, v) \
@@ -12903,12 +12901,6 @@
#ifdef SCSI_NCR_NVRAM_SUPPORT
ncr_nvram nvram0, nvram, *nvp;
#endif
-
- /*
- ** PCI is required.
- */
- if (!pci_present())
- return 0;
/*
** Initialize driver general stuff.
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1365, 2003/06/09 16:09:16-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/sym53c8xx_2/sym_glue.c
drivers/scsi/sym53c8xx_2/sym_glue.c | 6 ------
1 files changed, 6 deletions(-)
diff -Nru a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c
--- a/drivers/scsi/sym53c8xx_2/sym_glue.c Tue Jun 10 11:18:34 2003
+++ b/drivers/scsi/sym53c8xx_2/sym_glue.c Tue Jun 10 11:18:34 2003
@@ -2694,12 +2694,6 @@
#endif
/*
- * PCI is required.
- */
- if (!pci_present())
- return 0;
-
- /*
* Initialize driver general stuff.
*/
#ifdef SYM_LINUX_BOOT_COMMAND_LINE_SUPPORT
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1358, 2003/06/09 16:05:08-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/inia100.c
drivers/scsi/inia100.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/drivers/scsi/inia100.c b/drivers/scsi/inia100.c
--- a/drivers/scsi/inia100.c Tue Jun 10 11:19:09 2003
+++ b/drivers/scsi/inia100.c Tue Jun 10 11:19:09 2003
@@ -218,7 +218,7 @@
/*
* PCI-bus probe.
*/
- if (pci_present()) {
+ {
/*
* Note: I removed the struct pci_device_list stuff since this
* driver only cares about one device ID. If that changes in
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1359, 2003/06/09 16:05:39-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/pci2000.c
drivers/scsi/pci2000.c | 7 -------
1 files changed, 7 deletions(-)
diff -Nru a/drivers/scsi/pci2000.c b/drivers/scsi/pci2000.c
--- a/drivers/scsi/pci2000.c Tue Jun 10 11:19:03 2003
+++ b/drivers/scsi/pci2000.c Tue Jun 10 11:19:03 2003
@@ -668,13 +668,6 @@
UCHAR *consistent;
dma_addr_t consistentDma;
-
- if ( !pci_present () )
- {
- printk ("pci2000: PCI BIOS not present\n");
- return 0;
- }
-
while ( (pdev = pci_find_device (VENDOR_PSI, DEVICE_ROY_1, pdev)) != NULL )
{
if (pci_enable_device(pdev))
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1357, 2003/06/09 16:04:35-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/gdth.c
drivers/scsi/gdth.c | 4 +---
1 files changed, 1 insertion(+), 3 deletions(-)
diff -Nru a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c
--- a/drivers/scsi/gdth.c Tue Jun 10 11:19:14 2003
+++ b/drivers/scsi/gdth.c Tue Jun 10 11:19:14 2003
@@ -4460,9 +4460,7 @@
}
/* scanning for PCI controllers */
-#if LINUX_VERSION_CODE >= 0x2015C
- if (pci_present())
-#else
+#if LINUX_VERSION_CODE < 0x2015C
if (pcibios_present())
#endif
{
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1360, 2003/06/09 16:06:09-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/pci2220i.c
drivers/scsi/pci2220i.c | 6 ------
1 files changed, 6 deletions(-)
diff -Nru a/drivers/scsi/pci2220i.c b/drivers/scsi/pci2220i.c
--- a/drivers/scsi/pci2220i.c Tue Jun 10 11:18:58 2003
+++ b/drivers/scsi/pci2220i.c Tue Jun 10 11:18:58 2003
@@ -2534,12 +2534,6 @@
UCHAR device;
struct pci_dev *pcidev = NULL;
- if ( !pci_present () )
- {
- printk ("pci2220i: PCI BIOS not present\n");
- return 0;
- }
-
while ( (pcidev = pci_find_device (VENDOR_PSI, DEVICE_DALE_1, pcidev)) != NULL )
{
if (pci_enable_device(pcidev))
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1366, 2003/06/09 16:09:41-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/sym53c8xx_comm.h
drivers/scsi/sym53c8xx_comm.h | 8 --------
1 files changed, 8 deletions(-)
diff -Nru a/drivers/scsi/sym53c8xx_comm.h b/drivers/scsi/sym53c8xx_comm.h
--- a/drivers/scsi/sym53c8xx_comm.h Tue Jun 10 11:18:29 2003
+++ b/drivers/scsi/sym53c8xx_comm.h Tue Jun 10 11:18:29 2003
@@ -319,8 +319,6 @@
#define PciDeviceFn(d) ((d)&0xff)
#define __PciDev(busn, devfn) (((busn)<<8)+(devfn))
-#define pci_present pcibios_present
-
#define pci_read_config_byte(d, w, v) \
pcibios_read_config_byte(PciBusNumber(d), PciDeviceFn(d), w, v)
#define pci_read_config_word(d, w, v) \
@@ -2530,12 +2528,6 @@
#ifdef SCSI_NCR_NVRAM_SUPPORT
ncr_nvram nvram0, nvram, *nvp;
#endif
-
- /*
- ** PCI is required.
- */
- if (!pci_present())
- return 0;
#ifdef SCSI_NCR_DEBUG_INFO_SUPPORT
ncr_debug = driver_setup.debug;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1355, 2003/06/09 16:03:33-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/dmx3191d.c
drivers/scsi/dmx3191d.c | 6 +-----
1 files changed, 1 insertion(+), 5 deletions(-)
diff -Nru a/drivers/scsi/dmx3191d.c b/drivers/scsi/dmx3191d.c
--- a/drivers/scsi/dmx3191d.c Tue Jun 10 11:19:26 2003
+++ b/drivers/scsi/dmx3191d.c Tue Jun 10 11:19:26 2003
@@ -58,11 +58,6 @@
struct Scsi_Host *instance = NULL;
struct pci_dev *pdev = NULL;
- if (!pci_present()) {
- printk(KERN_WARNING "dmx3191: PCI support not enabled\n");
- return 0;
- }
-
tmpl->proc_name = DMX3191D_DRIVER_NAME;
while ((pdev = pci_find_device(PCI_VENDOR_ID_DOMEX,
@@ -139,3 +134,4 @@
.use_clustering = DISABLE_CLUSTERING,
};
#include "scsi_module.c"
+
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1362, 2003/06/09 16:07:53-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/qlogicfc.c
drivers/scsi/qlogicfc.c | 5 -----
1 files changed, 5 deletions(-)
diff -Nru a/drivers/scsi/qlogicfc.c b/drivers/scsi/qlogicfc.c
--- a/drivers/scsi/qlogicfc.c Tue Jun 10 11:18:48 2003
+++ b/drivers/scsi/qlogicfc.c Tue Jun 10 11:18:48 2003
@@ -711,11 +711,6 @@
tmpt->proc_name = "isp2x00";
- if (pci_present() == 0) {
- printk(KERN_INFO "qlogicfc : PCI not present\n");
- return 0;
- }
-
for (i=0; i<2; i++){
pdev = NULL;
while ((pdev = pci_find_device(PCI_VENDOR_ID_QLOGIC, device_ids[i], pdev))) {
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1374, 2003/06/09 16:18:56-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/es1370.c
sound/oss/es1370.c | 2 --
1 files changed, 2 deletions(-)
diff -Nru a/sound/oss/es1370.c b/sound/oss/es1370.c
--- a/sound/oss/es1370.c Tue Jun 10 11:17:49 2003
+++ b/sound/oss/es1370.c Tue Jun 10 11:17:49 2003
@@ -2739,8 +2739,6 @@
static int __init init_es1370(void)
{
- if (!pci_present()) /* No PCI bus in this machine! */
- return -ENODEV;
printk(KERN_INFO "es1370: version v0.38 time " __TIME__ " " __DATE__ "\n");
return pci_module_init(&es1370_driver);
}
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1377, 2003/06/09 16:20:11-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/i810_audio.c
sound/oss/i810_audio.c | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/sound/oss/i810_audio.c b/sound/oss/i810_audio.c
--- a/sound/oss/i810_audio.c Tue Jun 10 11:17:31 2003
+++ b/sound/oss/i810_audio.c Tue Jun 10 11:17:31 2003
@@ -3449,9 +3449,6 @@
static int __init i810_init_module (void)
{
- if (!pci_present()) /* No PCI bus in this machine! */
- return -ENODEV;
-
printk(KERN_INFO "Intel 810 + AC97 Audio, version "
DRIVER_VERSION ", " __TIME__ " " __DATE__ "\n");
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1368, 2003/06/09 16:11:04-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/telephony/ixj.c
drivers/telephony/ixj.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff -Nru a/drivers/telephony/ixj.c b/drivers/telephony/ixj.c
--- a/drivers/telephony/ixj.c Tue Jun 10 11:18:19 2003
+++ b/drivers/telephony/ixj.c Tue Jun 10 11:18:19 2003
@@ -7821,9 +7821,6 @@
IXJ *j = NULL;
int result;
- if(!pci_present())
- return 0;
-
for (i = 0; i < IXJMAX - *cnt; i++) {
pci = pci_find_device(0x15E2, 0x0500, pci);
if (!pci)
@@ -7869,10 +7866,8 @@
if ((probe = ixj_probe_isa(&cnt)) < 0) {
return probe;
}
- if (pci_present()) {
- if ((probe = ixj_probe_pci(&cnt)) < 0) {
- return probe;
- }
+ if ((probe = ixj_probe_pci(&cnt)) < 0) {
+ return probe;
}
printk("%s\n", ixj_c_rcsid);
create_proc_read_entry ("ixj", 0, NULL, ixj_read_proc, NULL);
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1373, 2003/06/09 16:18:27-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/cs46xx.c
sound/oss/cs46xx.c | 5 -----
1 files changed, 5 deletions(-)
diff -Nru a/sound/oss/cs46xx.c b/sound/oss/cs46xx.c
--- a/sound/oss/cs46xx.c Tue Jun 10 11:17:55 2003
+++ b/sound/oss/cs46xx.c Tue Jun 10 11:17:55 2003
@@ -5725,11 +5725,6 @@
int rtn = 0;
CS_DBGOUT(CS_INIT | CS_FUNCTION, 2, printk(KERN_INFO
"cs46xx: cs46xx_init_module()+ \n"));
- if (!pci_present()) { /* No PCI bus in this machine! */
- CS_DBGOUT(CS_INIT | CS_FUNCTION, 2, printk(KERN_INFO
- "cs46xx: cs46xx_init_module()- no pci bus found\n"));
- return -ENODEV;
- }
rtn = pci_module_init(&cs46xx_pci_driver);
if(rtn == -ENODEV)
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1378, 2003/06/09 16:20:35-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/ite8172.c
sound/oss/ite8172.c | 2 --
1 files changed, 2 deletions(-)
diff -Nru a/sound/oss/ite8172.c b/sound/oss/ite8172.c
--- a/sound/oss/ite8172.c Tue Jun 10 11:17:26 2003
+++ b/sound/oss/ite8172.c Tue Jun 10 11:17:26 2003
@@ -1940,8 +1940,6 @@
static int __init init_it8172(void)
{
- if (!pci_present()) /* No PCI bus in this machine! */
- return -ENODEV;
printk("version v0.26 time " __TIME__ " " __DATE__ "\n");
return pci_module_init(&it8172_driver);
}
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1367, 2003/06/09 16:10:13-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/scsi/tmscsim.c
drivers/scsi/tmscsim.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/drivers/scsi/tmscsim.c b/drivers/scsi/tmscsim.c
--- a/drivers/scsi/tmscsim.c Tue Jun 10 11:18:24 2003
+++ b/drivers/scsi/tmscsim.c Tue Jun 10 11:18:24 2003
@@ -394,7 +394,7 @@
# define PCI_WRITE_CONFIG_WORD(pd, rv, bv) pci_write_config_word (pd, rv, bv)
# define PCI_READ_CONFIG_WORD(pd, rv, bv) pci_read_config_word (pd, rv, bv)
# define PCI_BUS_DEV pdev->bus->number, pdev->devfn
-# define PCI_PRESENT pci_present ()
+# define PCI_PRESENT (1)
# define PCI_SET_MASTER pci_set_master (pdev)
# define PCI_FIND_DEVICE(vend, id) (pdev = pci_find_device (vend, id, pdev))
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,10)
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1370, 2003/06/09 16:13:31-07:00, greg@kroah.com
PCI: remove pci_present() from include/asm-sparc64/parport.h
include/asm-sparc64/parport.h | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/include/asm-sparc64/parport.h b/include/asm-sparc64/parport.h
--- a/include/asm-sparc64/parport.h Tue Jun 10 11:18:10 2003
+++ b/include/asm-sparc64/parport.h Tue Jun 10 11:18:10 2003
@@ -121,9 +121,6 @@
struct linux_ebus_device *edev;
int count = 0;
- if (!pci_present())
- return 0;
-
for_each_ebus(ebus) {
for_each_ebusdev(edev, ebus) {
if (ebus_ecpp_p(edev)) {
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1369, 2003/06/09 16:12:47-07:00, greg@kroah.com
PCI: remove pci_present() from drivers/video/pm2fb.c
drivers/video/pm2fb.c | 4 ----
1 files changed, 4 deletions(-)
diff -Nru a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c
--- a/drivers/video/pm2fb.c Tue Jun 10 11:18:15 2003
+++ b/drivers/video/pm2fb.c Tue Jun 10 11:18:15 2003
@@ -1186,10 +1186,6 @@
#endif
memset(pci, 0, sizeof(struct pm2pci_par));
- if (!pci_present()) {
- DPRINTK("no PCI bus found.\n");
- return 0;
- }
DPRINTK("scanning PCI bus for known chipsets...\n");
while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1371, 2003/06/09 16:14:28-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/cmpci.c
sound/oss/cmpci.c | 4 ----
1 files changed, 4 deletions(-)
diff -Nru a/sound/oss/cmpci.c b/sound/oss/cmpci.c
--- a/sound/oss/cmpci.c Tue Jun 10 11:18:04 2003
+++ b/sound/oss/cmpci.c Tue Jun 10 11:18:04 2003
@@ -3139,10 +3139,6 @@
struct pci_dev *pcidev = NULL;
int index = 0;
-#ifdef CONFIG_PCI
- if (!pci_present()) /* No PCI bus in this machine! */
-#endif
- return -ENODEV;
printk(KERN_INFO "cmpci: version $Revision: 5.64 $ time " __TIME__ " " __DATE__ "\n");
while (index < NR_DEVICE && (
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1372, 2003/06/09 16:14:56-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/cs4281/cs4281m.c
sound/oss/cs4281/cs4281m.c | 5 -----
1 files changed, 5 deletions(-)
diff -Nru a/sound/oss/cs4281/cs4281m.c b/sound/oss/cs4281/cs4281m.c
--- a/sound/oss/cs4281/cs4281m.c Tue Jun 10 11:17:59 2003
+++ b/sound/oss/cs4281/cs4281m.c Tue Jun 10 11:17:59 2003
@@ -4484,11 +4484,6 @@
int rtn = 0;
CS_DBGOUT(CS_INIT | CS_FUNCTION, 2, printk(KERN_INFO
"cs4281: cs4281_init_module()+ \n"));
- if (!pci_present()) { /* No PCI bus in this machine! */
- CS_DBGOUT(CS_INIT | CS_FUNCTION, 2, printk(KERN_INFO
- "cs4281: cs4281_init_module()- no pci bus found\n"));
- return -ENODEV;
- }
printk(KERN_INFO "cs4281: version v%d.%02d.%d time " __TIME__ " "
__DATE__ "\n", CS4281_MAJOR_VERSION, CS4281_MINOR_VERSION,
CS4281_ARCH);
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1376, 2003/06/09 16:19:46-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/esssolo1.c
sound/oss/esssolo1.c | 2 --
1 files changed, 2 deletions(-)
diff -Nru a/sound/oss/esssolo1.c b/sound/oss/esssolo1.c
--- a/sound/oss/esssolo1.c Tue Jun 10 11:17:37 2003
+++ b/sound/oss/esssolo1.c Tue Jun 10 11:17:37 2003
@@ -2459,8 +2459,6 @@
static int __init init_solo1(void)
{
- if (!pci_present()) /* No PCI bus in this machine! */
- return -ENODEV;
printk(KERN_INFO "solo1: version v0.20 time " __TIME__ " " __DATE__ "\n");
if (!pci_register_driver(&solo1_driver)) {
pci_unregister_driver(&solo1_driver);
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1375, 2003/06/09 16:19:20-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/es1371.c
sound/oss/es1371.c | 2 --
1 files changed, 2 deletions(-)
diff -Nru a/sound/oss/es1371.c b/sound/oss/es1371.c
--- a/sound/oss/es1371.c Tue Jun 10 11:17:42 2003
+++ b/sound/oss/es1371.c Tue Jun 10 11:17:42 2003
@@ -3043,8 +3043,6 @@
static int __init init_es1371(void)
{
- if (!pci_present()) /* No PCI bus in this machine! */
- return -ENODEV;
printk(KERN_INFO PFX "version v0.32 time " __TIME__ " " __DATE__ "\n");
return pci_module_init(&es1371_driver);
}
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1387, 2003/06/10 10:30:44-07:00, greg@kroah.com
[PATCH] PCI: remove pci_for_each_bus() usage from arch/ia64/hp/common/sba_iommu.c
arch/ia64/hp/common/sba_iommu.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -Nru a/arch/ia64/hp/common/sba_iommu.c b/arch/ia64/hp/common/sba_iommu.c
--- a/arch/ia64/hp/common/sba_iommu.c Tue Jun 10 11:15:47 2003
+++ b/arch/ia64/hp/common/sba_iommu.c Tue Jun 10 11:15:47 2003
@@ -1939,8 +1939,8 @@
#ifdef CONFIG_PCI
{
- struct pci_bus *b;
- pci_for_each_bus(b)
+ struct pci_bus *b = NULL;
+ while ((b = pci_find_next_bus(b)) != NULL)
sba_connect_bus(b);
}
#endif
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1382, 2003/06/09 16:22:20-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/skeleton.c
sound/oss/skeleton.c | 4 ----
1 files changed, 4 deletions(-)
diff -Nru a/sound/oss/skeleton.c b/sound/oss/skeleton.c
--- a/sound/oss/skeleton.c Tue Jun 10 11:16:46 2003
+++ b/sound/oss/skeleton.c Tue Jun 10 11:16:46 2003
@@ -159,10 +159,6 @@
struct pci_dev *pcidev=NULL;
int count=0;
- if(!pci_present())
- return -ENODEV;
-
-
while((pcidev = pci_find_device(PCI_VENDOR_MYIDENT, PCI_DEVICE_ID_MYIDENT_MYCARD1, pcidev))!=NULL)
{
if (pci_enable_device(pcidev))
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1385, 2003/06/09 16:56:37-07:00, willy@debian.org
[PATCH] PCI: domain support for sysfs
arch/alpha/Kconfig | 4 ++++
arch/alpha/kernel/pci.c | 8 --------
arch/ia64/Kconfig | 4 ++++
arch/ia64/hp/common/sba_iommu.c | 2 +-
arch/ia64/pci/pci.c | 4 ++--
arch/ppc/Kconfig | 4 ++++
arch/ppc/kernel/pci.c | 10 ----------
arch/ppc64/Kconfig | 4 ++++
arch/ppc64/kernel/pci.c | 6 +++---
arch/sparc64/Kconfig | 4 ++++
arch/sparc64/kernel/pci.c | 6 +++---
drivers/pci/probe.c | 3 ++-
drivers/pci/proc.c | 2 +-
include/asm-alpha/pci.h | 5 ++---
include/asm-arm/pci.h | 8 --------
include/asm-h8300/pci.h | 3 ---
include/asm-i386/pci.h | 6 ------
include/asm-ia64/pci.h | 5 +----
include/asm-m68k/pci.h | 3 ---
include/asm-mips/pci.h | 3 ---
include/asm-mips64/pci.h | 5 -----
include/asm-parisc/pci.h | 3 ---
include/asm-ppc/pci-bridge.h | 2 +-
include/asm-ppc/pci.h | 2 +-
include/asm-ppc64/pci.h | 3 +--
include/asm-sh/pci.h | 3 ---
include/asm-sparc/pci.h | 3 ---
include/asm-sparc64/pci.h | 2 +-
include/asm-v850/rte_cb.h | 1 -
include/asm-x86_64/pci.h | 6 ------
include/linux/pci.h | 10 ++++++++++
31 files changed, 49 insertions(+), 85 deletions(-)
diff -Nru a/arch/alpha/Kconfig b/arch/alpha/Kconfig
--- a/arch/alpha/Kconfig Tue Jun 10 11:16:11 2003
+++ b/arch/alpha/Kconfig Tue Jun 10 11:16:11 2003
@@ -295,6 +295,10 @@
information about which PCI hardware does work under Linux and which
doesn't.
+config PCI_DOMAINS
+ bool
+ default PCI
+
config ALPHA_CORE_AGP
bool
depends on ALPHA_GENERIC || ALPHA_TITAN || ALPHA_MARVEL
diff -Nru a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c
--- a/arch/alpha/kernel/pci.c Tue Jun 10 11:16:11 2003
+++ b/arch/alpha/kernel/pci.c Tue Jun 10 11:16:11 2003
@@ -484,11 +484,3 @@
return -EOPNOTSUPP;
}
-
-/* Return the index of the PCI controller for device PDEV. */
-int
-pci_controller_num(struct pci_dev *pdev)
-{
- struct pci_controller *hose = pdev->sysdata;
- return (hose ? (int) hose->index : -ENXIO);
-}
diff -Nru a/arch/ia64/Kconfig b/arch/ia64/Kconfig
--- a/arch/ia64/Kconfig Tue Jun 10 11:16:11 2003
+++ b/arch/ia64/Kconfig Tue Jun 10 11:16:11 2003
@@ -543,6 +543,10 @@
information about which PCI hardware does work under Linux and which
doesn't.
+config PCI_DOMAINS
+ bool
+ default PCI
+
source "drivers/pci/Kconfig"
config HOTPLUG
diff -Nru a/arch/ia64/hp/common/sba_iommu.c b/arch/ia64/hp/common/sba_iommu.c
--- a/arch/ia64/hp/common/sba_iommu.c Tue Jun 10 11:16:11 2003
+++ b/arch/ia64/hp/common/sba_iommu.c Tue Jun 10 11:16:11 2003
@@ -1889,7 +1889,7 @@
handle = parent;
} while (ACPI_SUCCESS(status));
- printk(KERN_WARNING "No IOC for PCI Bus %02x:%02x in ACPI\n", PCI_SEGMENT(bus), bus->number);
+ printk(KERN_WARNING "No IOC for PCI Bus %04x:%02x in ACPI\n", pci_domain_nr(bus), bus->number);
}
static int __init
diff -Nru a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c
--- a/arch/ia64/pci/pci.c Tue Jun 10 11:16:11 2003
+++ b/arch/ia64/pci/pci.c Tue Jun 10 11:16:11 2003
@@ -87,14 +87,14 @@
static int
pci_sal_read (struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value)
{
- return __pci_sal_read(PCI_SEGMENT(bus), bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn),
+ return __pci_sal_read(pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn),
where, size, value);
}
static int
pci_sal_write (struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value)
{
- return __pci_sal_write(PCI_SEGMENT(bus), bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn),
+ return __pci_sal_write(pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn),
where, size, value);
}
diff -Nru a/arch/ppc/Kconfig b/arch/ppc/Kconfig
--- a/arch/ppc/Kconfig Tue Jun 10 11:16:11 2003
+++ b/arch/ppc/Kconfig Tue Jun 10 11:16:11 2003
@@ -773,6 +773,10 @@
your box. If you say Y here, the kernel will include drivers and
infrastructure code to support PCI bus devices.
+config PCI_DOMAINS
+ bool
+ default PCI
+
config PC_KEYBOARD
bool "PC PS/2 style Keyboard"
depends on 4xx || 8260
diff -Nru a/arch/ppc/kernel/pci.c b/arch/ppc/kernel/pci.c
--- a/arch/ppc/kernel/pci.c Tue Jun 10 11:16:11 2003
+++ b/arch/ppc/kernel/pci.c Tue Jun 10 11:16:11 2003
@@ -1483,16 +1483,6 @@
}
/*
- * Return the index of the PCI controller for device pdev.
- */
-int pci_controller_num(struct pci_dev *dev)
-{
- struct pci_controller *hose = (struct pci_controller *) dev->sysdata;
-
- return hose->index;
-}
-
-/*
* Platform support for /proc/bus/pci/X/Y mmap()s,
* modelled on the sparc64 implementation by Dave Miller.
* -- paulus.
diff -Nru a/arch/ppc64/Kconfig b/arch/ppc64/Kconfig
--- a/arch/ppc64/Kconfig Tue Jun 10 11:16:11 2003
+++ b/arch/ppc64/Kconfig Tue Jun 10 11:16:11 2003
@@ -171,6 +171,10 @@
your box. If you say Y here, the kernel will include drivers and
infrastructure code to support PCI bus devices.
+config PCI_DOMAINS
+ bool
+ default PCI
+
# only elf supported, a.out is not -- Cort
config KCORE_ELF
bool
diff -Nru a/arch/ppc64/kernel/pci.c b/arch/ppc64/kernel/pci.c
--- a/arch/ppc64/kernel/pci.c Tue Jun 10 11:16:11 2003
+++ b/arch/ppc64/kernel/pci.c Tue Jun 10 11:16:11 2003
@@ -371,11 +371,11 @@
}
/*
- * Return the index of the PCI controller for device pdev.
+ * Return the domain number for this bus.
*/
-int pci_controller_num(struct pci_dev *dev)
+int pci_domain_nr(struct pci_bus *bus)
{
- struct pci_controller *hose = PCI_GET_PHB_PTR(dev);
+ struct pci_controller *hose = PCI_GET_PHB_PTR(bus);
return hose->global_number;
}
diff -Nru a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig
--- a/arch/sparc64/Kconfig Tue Jun 10 11:16:11 2003
+++ b/arch/sparc64/Kconfig Tue Jun 10 11:16:11 2003
@@ -318,6 +318,10 @@
information about which PCI hardware does work under Linux and which
doesn't.
+config PCI_DOMAINS
+ bool
+ default PCI
+
config RTC
tristate
depends on PCI
diff -Nru a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c
--- a/arch/sparc64/kernel/pci.c Tue Jun 10 11:16:11 2003
+++ b/arch/sparc64/kernel/pci.c Tue Jun 10 11:16:11 2003
@@ -802,11 +802,11 @@
return 0;
}
-/* Return the index of the PCI controller for device PDEV. */
+/* Return the domain nuber for this pci bus */
-int pci_controller_num(struct pci_dev *pdev)
+int pci_domain_nr(struct pci_bus *bus)
{
- struct pcidev_cookie *cookie = pdev->sysdata;
+ struct pcidev_cookie *cookie = bus->sysdata;
int ret;
if (cookie != NULL) {
diff -Nru a/drivers/pci/probe.c b/drivers/pci/probe.c
--- a/drivers/pci/probe.c Tue Jun 10 11:16:11 2003
+++ b/drivers/pci/probe.c Tue Jun 10 11:16:11 2003
@@ -529,7 +529,8 @@
pci_name_device(dev);
/* now put in global tree */
- strcpy(dev->dev.bus_id,dev->slot_name);
+ sprintf(dev->dev.bus_id, "%04x:%s", pci_domain_nr(bus),
+ dev->slot_name);
dev->dev.dma_mask = &dev->dma_mask;
return dev;
diff -Nru a/drivers/pci/proc.c b/drivers/pci/proc.c
--- a/drivers/pci/proc.c Tue Jun 10 11:16:11 2003
+++ b/drivers/pci/proc.c Tue Jun 10 11:16:11 2003
@@ -210,7 +210,7 @@
switch (cmd) {
case PCIIOC_CONTROLLER:
- ret = pci_controller_num(dev);
+ ret = pci_domain_nr(dev->bus);
break;
#ifdef HAVE_PCI_MMAP
diff -Nru a/include/asm-alpha/pci.h b/include/asm-alpha/pci.h
--- a/include/asm-alpha/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-alpha/pci.h Tue Jun 10 11:16:11 2003
@@ -188,12 +188,11 @@
/* Nothing to do. */
}
-/* Return the index of the PCI controller for device PDEV. */
-extern int pci_controller_num(struct pci_dev *pdev);
-
extern void
pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region,
struct resource *res);
+
+#define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index
#endif /* __KERNEL__ */
diff -Nru a/include/asm-arm/pci.h b/include/asm-arm/pci.h
--- a/include/asm-arm/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-arm/pci.h Tue Jun 10 11:16:11 2003
@@ -128,14 +128,6 @@
*/
#define pci_dac_dma_supported(pci_dev, mask) (0)
-/*
- * Return the index of the PCI controller for device PDEV.
- */
-static inline int pci_controller_num(struct pci_dev *dev)
-{
- return 0;
-}
-
#if defined(CONFIG_SA1111) && !defined(CONFIG_PCI)
/*
diff -Nru a/include/asm-h8300/pci.h b/include/asm-h8300/pci.h
--- a/include/asm-h8300/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-h8300/pci.h Tue Jun 10 11:16:11 2003
@@ -19,7 +19,4 @@
/* We don't do dynamic PCI IRQ allocation */
}
-/* Return the index of the PCI controller for device PDEV. */
-#define pci_controller_num(PDEV) (0)
-
#endif /* _ASM_H8300_PCI_H */
diff -Nru a/include/asm-i386/pci.h b/include/asm-i386/pci.h
--- a/include/asm-i386/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-i386/pci.h Tue Jun 10 11:16:11 2003
@@ -90,12 +90,6 @@
#define sg_dma_address(sg) ((sg)->dma_address)
#define sg_dma_len(sg) ((sg)->length)
-/* Return the index of the PCI controller for device. */
-static inline int pci_controller_num(struct pci_dev *dev)
-{
- return 0;
-}
-
#define HAVE_PCI_MMAP
extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
enum pci_mmap_state mmap_state, int write_combine);
diff -Nru a/include/asm-ia64/pci.h b/include/asm-ia64/pci.h
--- a/include/asm-ia64/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-ia64/pci.h Tue Jun 10 11:16:11 2003
@@ -70,9 +70,6 @@
#define pci_dac_dma_to_offset(dev,dma_addr) ((dma_addr) & ~PAGE_MASK)
#define pci_dac_dma_sync_single(dev,dma_addr,len,dir) do { mb(); } while (0)
-/* Return the index of the PCI controller for device PDEV. */
-#define pci_controller_num(PDEV) (0)
-
#define sg_dma_len(sg) ((sg)->dma_length)
#define sg_dma_address(sg) ((sg)->dma_address)
@@ -95,7 +92,7 @@
};
#define PCI_CONTROLLER(busdev) ((struct pci_controller *) busdev->sysdata)
-#define PCI_SEGMENT(busdev) (PCI_CONTROLLER(busdev)->segment)
+#define pci_domain_nr(busdev) (PCI_CONTROLLER(busdev)->segment)
/* generic pci stuff */
#include <asm-generic/pci.h>
diff -Nru a/include/asm-m68k/pci.h b/include/asm-m68k/pci.h
--- a/include/asm-m68k/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-m68k/pci.h Tue Jun 10 11:16:11 2003
@@ -45,9 +45,6 @@
/* We don't do dynamic PCI IRQ allocation */
}
-/* Return the index of the PCI controller for device PDEV. */
-#define pci_controller_num(PDEV) (0)
-
/* The PCI address space does equal the physical memory
* address space. The networking and block device layers use
* this boolean for bounce buffer decisions.
diff -Nru a/include/asm-mips/pci.h b/include/asm-mips/pci.h
--- a/include/asm-mips/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-mips/pci.h Tue Jun 10 11:16:11 2003
@@ -237,9 +237,6 @@
}
-/* Return the index of the PCI controller for device. */
-#define pci_controller_num(pdev) (0)
-
/*
* These macros should be used after a pci_map_sg call has been done
* to get bus addresses of each of the SG entries and their lengths.
diff -Nru a/include/asm-mips64/pci.h b/include/asm-mips64/pci.h
--- a/include/asm-mips64/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-mips64/pci.h Tue Jun 10 11:16:11 2003
@@ -256,11 +256,6 @@
}
/*
- * Return the index of the PCI controller for device.
- */
-#define pci_controller_num(pdev) (0)
-
-/*
* These macros should be used after a pci_map_sg call has been done
* to get bus addresses of each of the SG entries and their lengths.
* You should only work with the number of sg entries pci_map_sg
diff -Nru a/include/asm-parisc/pci.h b/include/asm-parisc/pci.h
--- a/include/asm-parisc/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-parisc/pci.h Tue Jun 10 11:16:11 2003
@@ -180,9 +180,6 @@
/* Don't support DAC yet. */
#define pci_dac_dma_supported(pci_dev, mask) (0)
-/* Return the index of the PCI controller for device PDEV. */
-#define pci_controller_num(PDEV) (0)
-
/* export the pci_ DMA API in terms of the dma_ one */
#include <asm-generic/pci-dma-compat.h>
diff -Nru a/include/asm-ppc/pci-bridge.h b/include/asm-ppc/pci-bridge.h
--- a/include/asm-ppc/pci-bridge.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-ppc/pci-bridge.h Tue Jun 10 11:16:11 2003
@@ -39,7 +39,7 @@
* Structure of a PCI controller (host bridge)
*/
struct pci_controller {
- int index; /* used for pci_controller_num */
+ int index; /* PCI domain number */
struct pci_controller *next;
struct pci_bus *bus;
void *arch_data;
diff -Nru a/include/asm-ppc/pci.h b/include/asm-ppc/pci.h
--- a/include/asm-ppc/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-ppc/pci.h Tue Jun 10 11:16:11 2003
@@ -266,7 +266,7 @@
}
/* Return the index of the PCI controller for device PDEV. */
-extern int pci_controller_num(struct pci_dev *pdev);
+#define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index
/* Map a range of PCI memory or I/O space for a device into user space */
int pci_mmap_page_range(struct pci_dev *pdev, struct vm_area_struct *vma,
diff -Nru a/include/asm-ppc64/pci.h b/include/asm-ppc64/pci.h
--- a/include/asm-ppc64/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-ppc64/pci.h Tue Jun 10 11:16:11 2003
@@ -86,8 +86,7 @@
return 1;
}
-/* Return the index of the PCI controller for device PDEV. */
-extern int pci_controller_num(struct pci_dev *pdev);
+extern int pci_domain_nr(struct pci_bus *bus);
struct vm_area_struct;
/* Map a range of PCI memory or I/O space for a device into user space */
diff -Nru a/include/asm-sh/pci.h b/include/asm-sh/pci.h
--- a/include/asm-sh/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-sh/pci.h Tue Jun 10 11:16:11 2003
@@ -226,9 +226,6 @@
*/
#define pci_dac_dma_supported(pci_dev, mask) (0)
-/* Return the index of the PCI controller for device PDEV. */
-#define pci_controller_num(PDEV) (0)
-
/* These macros should be used after a pci_map_sg call has been done
* to get bus addresses of each of the SG entries and their lengths.
* You should only work with the number of sg entries pci_map_sg
diff -Nru a/include/asm-sparc/pci.h b/include/asm-sparc/pci.h
--- a/include/asm-sparc/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-sparc/pci.h Tue Jun 10 11:16:11 2003
@@ -132,9 +132,6 @@
#define pci_dac_dma_supported(dev, mask) (0)
-/* Return the index of the PCI controller for device PDEV. */
-#define pci_controller_num(PDEV) (0)
-
#endif /* __KERNEL__ */
/* generic pci stuff */
diff -Nru a/include/asm-sparc64/pci.h b/include/asm-sparc64/pci.h
--- a/include/asm-sparc64/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-sparc64/pci.h Tue Jun 10 11:16:11 2003
@@ -189,7 +189,7 @@
/* Return the index of the PCI controller for device PDEV. */
-extern int pci_controller_num(struct pci_dev *pdev);
+extern int pci_domain_nr(struct pci_bus *bus);
/* Platform support for /proc/bus/pci/X/Y mmap()s. */
diff -Nru a/include/asm-v850/rte_cb.h b/include/asm-v850/rte_cb.h
--- a/include/asm-v850/rte_cb.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-v850/rte_cb.h Tue Jun 10 11:16:11 2003
@@ -54,7 +54,6 @@
instead, perversely enough, this becomes always true! */
#define pci_dma_supported(dev, mask) 1
#define pci_dac_dma_supported(dev, mask) 0
-#define pci_controller_num(dev) 0
#define pcibios_assign_all_busses() 1
diff -Nru a/include/asm-x86_64/pci.h b/include/asm-x86_64/pci.h
--- a/include/asm-x86_64/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/asm-x86_64/pci.h Tue Jun 10 11:16:11 2003
@@ -270,12 +270,6 @@
#define sg_dma_address(sg) ((sg)->dma_address)
#define sg_dma_len(sg) ((sg)->length)
-/* Return the index of the PCI controller for device. */
-static inline int pci_controller_num(struct pci_dev *dev)
-{
- return 0;
-}
-
#define HAVE_PCI_MMAP
extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
enum pci_mmap_state mmap_state, int write_combine);
diff -Nru a/include/linux/pci.h b/include/linux/pci.h
--- a/include/linux/pci.h Tue Jun 10 11:16:11 2003
+++ b/include/linux/pci.h Tue Jun 10 11:16:11 2003
@@ -805,5 +805,15 @@
#define PCIPCI_VSFX 16
#define PCIPCI_ALIMAGIK 32
+/*
+ * PCI domain support. Sometimes called PCI segment (eg by ACPI),
+ * a PCI domain is defined to be a set of PCI busses which share
+ * configuration space.
+ */
+
+#ifndef CONFIG_PCI_DOMAINS
+#define pci_domain_nr(bus) 0
+#endif
+
#endif /* __KERNEL__ */
#endif /* LINUX_PCI_H */
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1388, 2003/06/10 10:30:57-07:00, greg@kroah.com
[PATCH] PCI: remove pci_for_each_bus() usage from drivers/pci/pci.c
drivers/pci/pci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -Nru a/drivers/pci/pci.c b/drivers/pci/pci.c
--- a/drivers/pci/pci.c Tue Jun 10 11:15:38 2003
+++ b/drivers/pci/pci.c Tue Jun 10 11:15:38 2003
@@ -55,11 +55,11 @@
unsigned char __devinit
pci_max_busnr(void)
{
- struct pci_bus* bus;
+ struct pci_bus *bus = NULL;
unsigned char max, n;
max = 0;
- pci_for_each_bus(bus) {
+ while ((bus = pci_find_next_bus(bus)) != NULL) {
n = pci_bus_max_busnr(bus);
if(n > max)
max = n;
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1380, 2003/06/09 16:21:33-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/nec_vrc5477.c
sound/oss/nec_vrc5477.c | 2 --
1 files changed, 2 deletions(-)
diff -Nru a/sound/oss/nec_vrc5477.c b/sound/oss/nec_vrc5477.c
--- a/sound/oss/nec_vrc5477.c Tue Jun 10 11:17:06 2003
+++ b/sound/oss/nec_vrc5477.c Tue Jun 10 11:17:06 2003
@@ -2002,8 +2002,6 @@
static int __init init_vrc5477_ac97(void)
{
- if (!pci_present()) /* No PCI bus in this machine! */
- return -ENODEV;
printk("Vrc5477 AC97 driver: version v0.2 time " __TIME__ " " __DATE__ " by Jun Sun\n");
return pci_module_init(&vrc5477_ac97_driver);
}
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1384, 2003/06/09 16:23:14-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/trident.c
sound/oss/trident.c | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/sound/oss/trident.c b/sound/oss/trident.c
--- a/sound/oss/trident.c Tue Jun 10 11:16:21 2003
+++ b/sound/oss/trident.c Tue Jun 10 11:16:21 2003
@@ -4385,9 +4385,6 @@
static int __init trident_init_module (void)
{
- if (!pci_present()) /* No PCI bus in this machine! */
- return -ENODEV;
-
printk(KERN_INFO "Trident 4DWave/SiS 7018/ALi 5451,Tvia CyberPro "
"5050 PCI Audio, version " DRIVER_VERSION ", "
__TIME__ " " __DATE__ "\n");
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1390, 2003/06/10 10:51:23-07:00, david-b@pacbell.net
[PATCH] PCI: pci pool, poison more like slab code
This adds a new poisoning mode, distinguishing memory
that's uninitialized from memory that's freed. The
slab code has been doing this for a while now.
drivers/pci/pool.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff -Nru a/drivers/pci/pool.c b/drivers/pci/pool.c
--- a/drivers/pci/pool.c Tue Jun 10 11:15:19 2003
+++ b/drivers/pci/pool.c Tue Jun 10 11:15:19 2003
@@ -29,7 +29,8 @@
};
#define POOL_TIMEOUT_JIFFIES ((100 /* msec */ * HZ) / 1000)
-#define POOL_POISON_BYTE 0xa7
+#define POOL_POISON_FREED 0xa7 /* !inuse */
+#define POOL_POISON_ALLOCATED 0xa9 /* !initted */
static DECLARE_MUTEX (pools_lock);
@@ -172,7 +173,7 @@
if (page->vaddr) {
memset (page->bitmap, 0xff, mapsize); // bit set == free
#ifdef CONFIG_DEBUG_SLAB
- memset (page->vaddr, POOL_POISON_BYTE, pool->allocation);
+ memset (page->vaddr, POOL_POISON_FREED, pool->allocation);
#endif
list_add (&page->page_list, &pool->page_list);
page->in_use = 0;
@@ -201,7 +202,7 @@
dma_addr_t dma = page->dma;
#ifdef CONFIG_DEBUG_SLAB
- memset (page->vaddr, POOL_POISON_BYTE, pool->allocation);
+ memset (page->vaddr, POOL_POISON_FREED, pool->allocation);
#endif
pci_free_consistent (pool->dev, pool->allocation, page->vaddr, dma);
list_del (&page->page_list);
@@ -309,6 +310,9 @@
page->in_use++;
retval = offset + page->vaddr;
*handle = offset + page->dma;
+#ifdef CONFIG_DEBUG_SLAB
+ memset (retval, POOL_POISON_ALLOCATED, pool->size);
+#endif
done:
spin_unlock_irqrestore (&pool->lock, flags);
return retval;
@@ -378,7 +382,7 @@
pool->name, (unsigned long long)dma);
return;
}
- memset (vaddr, POOL_POISON_BYTE, pool->size);
+ memset (vaddr, POOL_POISON_FREED, pool->size);
#endif
spin_lock_irqsave (&pool->lock, flags);
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1386, 2003/06/10 10:30:30-07:00, greg@kroah.com
[PATCH] PCI: add pci_find_next_bus() function to prevent people from walking pci bus lists themselves.
drivers/pci/search.c | 25 ++++++++++++++++++++++---
include/linux/pci.h | 1 +
2 files changed, 23 insertions(+), 3 deletions(-)
diff -Nru a/drivers/pci/search.c b/drivers/pci/search.c
--- a/drivers/pci/search.c Tue Jun 10 11:15:57 2003
+++ b/drivers/pci/search.c Tue Jun 10 11:15:57 2003
@@ -29,10 +29,10 @@
struct pci_bus *
pci_find_bus(unsigned char busnr)
{
- struct pci_bus* bus;
+ struct pci_bus* bus = NULL;
struct pci_bus* tmp_bus;
- pci_for_each_bus(bus) {
+ while ((bus = pci_find_next_bus(bus)) != NULL) {
tmp_bus = pci_do_find_bus(bus, busnr);
if(tmp_bus)
return tmp_bus;
@@ -41,6 +41,26 @@
}
/**
+ * pci_find_next_bus - begin or continue searching for a PCI bus
+ * @from: Previous PCI bus found, or %NULL for new search.
+ *
+ * Iterates through the list of known PCI busses. A new search is
+ * initiated by passing %NULL to the @from argument. Otherwise if
+ * @from is not %NULL, searches continue from next device on the
+ * global list.
+ */
+struct pci_bus *
+pci_find_next_bus(const struct pci_bus *from)
+{
+ struct list_head *n = from ? from->node.next : pci_root_buses.next;
+ struct pci_bus *b = NULL;
+
+ if (n != &pci_root_buses)
+ b = pci_bus_b(n);
+ return b;
+}
+
+/**
* pci_find_slot - locate PCI device from a given PCI slot
* @bus: number of PCI bus on which desired PCI device resides
* @devfn: encodes number of PCI slot in which the desired PCI
@@ -96,7 +116,6 @@
}
return NULL;
}
-
/**
* pci_find_device - begin or continue searching for a PCI device by vendor/device id
diff -Nru a/include/linux/pci.h b/include/linux/pci.h
--- a/include/linux/pci.h Tue Jun 10 11:15:57 2003
+++ b/include/linux/pci.h Tue Jun 10 11:15:57 2003
@@ -568,6 +568,7 @@
struct pci_dev *pci_find_class (unsigned int class, const struct pci_dev *from);
struct pci_dev *pci_find_slot (unsigned int bus, unsigned int devfn);
int pci_find_capability (struct pci_dev *dev, int cap);
+struct pci_bus * pci_find_next_bus(const struct pci_bus *from);
int pci_bus_read_config_byte (struct pci_bus *bus, unsigned int devfn, int where, u8 *val);
int pci_bus_read_config_word (struct pci_bus *bus, unsigned int devfn, int where, u16 *val);
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1381, 2003/06/09 16:21:56-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/rme96xx.c
sound/oss/rme96xx.c | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/sound/oss/rme96xx.c b/sound/oss/rme96xx.c
--- a/sound/oss/rme96xx.c Tue Jun 10 11:16:56 2003
+++ b/sound/oss/rme96xx.c Tue Jun 10 11:16:56 2003
@@ -1093,9 +1093,6 @@
static int __init init_rme96xx(void)
{
-
- if (!pci_present()) /* No PCI bus in this machine! */
- return -ENODEV;
printk(KERN_INFO RME_MESS" version "RMEVERSION" time " __TIME__ " " __DATE__ "\n");
devices = ((devices-1) & RME96xx_MASK_DEVS) + 1;
printk(KERN_INFO RME_MESS" reserving %d dsp device(s)\n",devices);
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1383, 2003/06/09 16:22:44-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/sonicvibes.c
sound/oss/sonicvibes.c | 2 --
1 files changed, 2 deletions(-)
diff -Nru a/sound/oss/sonicvibes.c b/sound/oss/sonicvibes.c
--- a/sound/oss/sonicvibes.c Tue Jun 10 11:16:35 2003
+++ b/sound/oss/sonicvibes.c Tue Jun 10 11:16:35 2003
@@ -2723,8 +2723,6 @@
static int __init init_sonicvibes(void)
{
- if (!pci_present()) /* No PCI bus in this machine! */
- return -ENODEV;
printk(KERN_INFO "sv: version v0.31 time " __TIME__ " " __DATE__ "\n");
#if 0
if (!(wavetable_mem = __get_free_pages(GFP_KERNEL, 20-PAGE_SHIFT)))
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1389, 2003/06/10 10:32:40-07:00, greg@kroah.com
[PATCH] PCI: remove pci_for_each_bus() macro as there are now no more users of it.
include/linux/pci.h | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/include/linux/pci.h b/include/linux/pci.h
--- a/include/linux/pci.h Tue Jun 10 11:15:28 2003
+++ b/include/linux/pci.h Tue Jun 10 11:15:28 2003
@@ -525,9 +525,6 @@
extern struct list_head pci_root_buses; /* list of all known PCI buses */
extern struct list_head pci_devices; /* list of all devices */
-#define pci_for_each_bus(bus) \
- for(bus = pci_bus_b(pci_root_buses.next); bus != pci_bus_b(&pci_root_buses); bus = pci_bus_b(bus->node.next))
-
int pci_present(void);
void pcibios_fixup_bus(struct pci_bus *);
int pcibios_enable_device(struct pci_dev *, int mask);
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1379, 2003/06/09 16:21:01-07:00, greg@kroah.com
PCI: remove pci_present() from sound/oss/maestro3.c
sound/oss/maestro3.c | 3 ---
1 files changed, 3 deletions(-)
diff -Nru a/sound/oss/maestro3.c b/sound/oss/maestro3.c
--- a/sound/oss/maestro3.c Tue Jun 10 11:17:16 2003
+++ b/sound/oss/maestro3.c Tue Jun 10 11:17:16 2003
@@ -2936,9 +2936,6 @@
static int __init m3_init_module(void)
{
- if (!pci_present()) /* No PCI bus in this machine! */
- return -ENODEV;
-
printk(KERN_INFO PFX "version " DRIVER_VERSION " built at " __TIME__ " " __DATE__ "\n");
if (register_reboot_notifier(&m3_reboot_nb)) {
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
0 siblings, 0 replies; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1392, 2003/06/10 10:53:28-07:00, greg@kroah.com
[PATCH] PCI: remove some pci_bus_b() calls in drivers/pci/power.c
drivers/pci/power.c | 18 ++++++------------
1 files changed, 6 insertions(+), 12 deletions(-)
diff -Nru a/drivers/pci/power.c b/drivers/pci/power.c
--- a/drivers/pci/power.c Tue Jun 10 11:14:55 2003
+++ b/drivers/pci/power.c Tue Jun 10 11:14:55 2003
@@ -97,12 +97,10 @@
static int pci_pm_save_state(u32 state)
{
- struct list_head *list;
- struct pci_bus *bus;
+ struct pci_bus *bus = NULL;
int error = 0;
- list_for_each(list, &pci_root_buses) {
- bus = pci_bus_b(list);
+ while ((bus = pci_find_next_bus(bus)) != NULL) {
error = pci_pm_save_state_bus(bus,state);
if (!error)
error = pci_pm_save_state_device(bus->self,state);
@@ -112,11 +110,9 @@
static int pci_pm_suspend(u32 state)
{
- struct list_head *list;
- struct pci_bus *bus;
+ struct pci_bus *bus = NULL;
- list_for_each(list, &pci_root_buses) {
- bus = pci_bus_b(list);
+ while ((bus = pci_find_next_bus(bus)) != NULL) {
pci_pm_suspend_bus(bus,state);
pci_pm_suspend_device(bus->self,state);
}
@@ -125,11 +121,9 @@
static int pci_pm_resume(void)
{
- struct list_head *list;
- struct pci_bus *bus;
+ struct pci_bus *bus = NULL;
- list_for_each(list, &pci_root_buses) {
- bus = pci_bus_b(list);
+ while ((bus = pci_find_next_bus(bus)) != NULL) {
pci_pm_resume_device(bus->self);
pci_pm_resume_bus(bus);
}
^ permalink raw reply [flat|nested] 76+ messages in thread
* Re: [PATCH] Yet more PCI fixes for 2.5.70
2003-06-10 18:49 ` Greg KH
@ 2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
0 siblings, 1 reply; 76+ messages in thread
From: Greg KH @ 2003-06-10 18:49 UTC (permalink / raw)
To: linux-kernel
ChangeSet 1.1391, 2003/06/10 10:53:11-07:00, greg@kroah.com
[PATCH] PCI: remove pci_bus_b() call in arch/i386/pci/common.c
arch/i386/pci/common.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff -Nru a/arch/i386/pci/common.c b/arch/i386/pci/common.c
--- a/arch/i386/pci/common.c Tue Jun 10 11:15:05 2003
+++ b/arch/i386/pci/common.c Tue Jun 10 11:15:05 2003
@@ -104,11 +104,9 @@
struct pci_bus * __devinit pcibios_scan_root(int busnum)
{
- struct list_head *list;
- struct pci_bus *bus;
+ struct pci_bus *bus = NULL;
- list_for_each(list, &pci_root_buses) {
- bus = pci_bus_b(list);
+ while ((bus = pci_find_next_bus(bus)) != NULL) {
if (bus->number == busnum) {
/* Already scanned */
return bus;
^ permalink raw reply [flat|nested] 76+ messages in thread
end of thread, other threads:[~2003-06-10 21:42 UTC | newest]
Thread overview: 76+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-10 18:49 [PATCH] Yet more PCI fixes for 2.5.70 Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2003-06-10 18:33 [BK PATCH] " Greg KH
2003-06-10 18:49 ` [PATCH] " Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
2003-06-10 18:49 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox