Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140489042
D8071.id20804.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
655 B
Referenced Files
None
Subscribers
None
D8071.id20804.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/pci.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/pci.h
+++ sys/compat/linuxkpi/common/include/linux/pci.h
@@ -236,11 +236,16 @@
static inline int
pci_resource_flags(struct pci_dev *pdev, int bar)
{
- struct resource_list_entry *rle;
+ struct pci_map *pm;
- if ((rle = _pci_get_bar(pdev, bar)) == NULL)
+ pm = pci_find_bar(pdev->dev.bsddev, PCIR_BAR(bar));
+ if (!pm)
return (0);
- return rle->type;
+
+ if (PCI_BAR_IO(pm->pm_value))
+ return (SYS_RES_IOPORT);
+ else
+ return (SYS_RES_MEMORY);
}
static inline const char *
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 25, 1:49 PM (47 m, 23 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27248517
Default Alt Text
D8071.id20804.diff (655 B)
Attached To
Mode
D8071: use a better method to get BAR type in pci_resource_flags()
Attached
Detach File
Event Timeline
Log In to Comment