History

[PATCH] PCI: return max reserved busnr

Change the semantics of this call to return the max reserved bus number instead of just the max assigned bus number.

Kristen Accardi committed 20 years ago

Commit b82db5c1 parent b64c05e2 files · +4 −2Browse files

Unified · Split

2 files
  1. drivers/pci/pci.c +3 −2
  2. include/linux/pci.h +1 −0
drivers/pci/pci.c+3−2
@@ -19,7 +19,6 @@ · 18 unmodified lines
1919 #include <asm/dma.h> /* isa_dma_bridge_buggy */
2020 #include "pci.h"
2121
22−#if 0
2322
2423 /**
2524 * pci_bus_max_busnr - returns maximum PCI bus number of given bus' children
@@ -34,7 +33,7 @@ pci_bus_max_busnr(struct pci_bus* bus) · 8 unmodified lines
3433 struct list_head *tmp;
3534 unsigned char max, n;
3635
37− max = bus->number;
36+ max = bus->subordinate;
3837 list_for_each(tmp, &bus->children) {
3938 n = pci_bus_max_busnr(pci_bus_b(tmp));
4039 if(n > max)
@@ -42,7 +41,9 @@ pci_bus_max_busnr(struct pci_bus* bus) · 1 unmodified line
4241 }
4342 return max;
4443 }
44+EXPORT_SYMBOL_GPL(pci_bus_max_busnr);
4545
46+#if 0
4647 /**
4748 * pci_max_busnr - returns maximum PCI bus number
4849 *
include/linux/pci.h+1−0
@@ -516,6 +516,7 @@ int pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max, int pass · 515 unmodified lines
516516 void pci_walk_bus(struct pci_bus *top, void (*cb)(struct pci_dev *, void *),
517517 void *userdata);
518518 int pci_cfg_space_size(struct pci_dev *dev);
519+unsigned char pci_bus_max_busnr(struct pci_bus* bus);
519520
520521 /* kmem_cache style wrapper around pci_alloc_consistent() */
521522

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t