Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148106734
D55772.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
920 B
Referenced Files
None
Subscribers
None
D55772.diff
View Options
diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c
--- a/usr.sbin/pciconf/pciconf.c
+++ b/usr.sbin/pciconf/pciconf.c
@@ -339,13 +339,9 @@
}
static void
-print_bus_range(int fd, struct pci_conf *p, int secreg, int subreg)
+print_bus_range(struct pci_conf *p)
{
- uint8_t secbus, subbus;
-
- secbus = read_config(fd, &p->pc_sel, secreg, 1);
- subbus = read_config(fd, &p->pc_sel, subreg, 1);
- printf(" bus range = %u-%u\n", secbus, subbus);
+ printf(" bus range = %u-%u\n", p->pc_secbus, p->pc_subbus);
}
static void
@@ -511,11 +507,11 @@
switch (p->pc_hdr & PCIM_HDRTYPE) {
case PCIM_HDRTYPE_BRIDGE:
- print_bus_range(fd, p, PCIR_SECBUS_1, PCIR_SUBBUS_1);
+ print_bus_range(p);
print_bridge_windows(fd, p);
break;
case PCIM_HDRTYPE_CARDBUS:
- print_bus_range(fd, p, PCIR_SECBUS_2, PCIR_SUBBUS_2);
+ print_bus_range(p);
print_cardbus_windows(fd, p);
break;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 16, 8:00 PM (8 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29499626
Default Alt Text
D55772.diff (920 B)
Attached To
Mode
D55772: pciconf: Use the exported values of bus numbers for PCI bridges
Attached
Detach File
Event Timeline
Log In to Comment