Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c8480a18
Commit
c8480a18
authored
Aug 20, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PCI: added the pci_pretty_name() macro to pci.h as 2 arches already had it.
parent
de9af88e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
13 deletions
+7
-13
arch/alpha/kernel/sys_marvel.c
arch/alpha/kernel/sys_marvel.c
+0
-7
arch/x86_64/kernel/pci-gart.c
arch/x86_64/kernel/pci-gart.c
+0
-6
include/linux/pci.h
include/linux/pci.h
+7
-0
No files found.
arch/alpha/kernel/sys_marvel.c
View file @
c8480a18
...
@@ -33,13 +33,6 @@
...
@@ -33,13 +33,6 @@
# error NR_IRQS < MARVEL_NR_IRQS !!!
# error NR_IRQS < MARVEL_NR_IRQS !!!
#endif
#endif
/* ??? Should probably be generic. */
#ifdef CONFIG_PCI_NAMES
#define pci_pretty_name(x) ((x)->pretty_name)
#else
#define pci_pretty_name(x) ""
#endif
/*
/*
* Interrupt handling.
* Interrupt handling.
...
...
arch/x86_64/kernel/pci-gart.c
View file @
c8480a18
...
@@ -31,12 +31,6 @@
...
@@ -31,12 +31,6 @@
#include <asm/kdebug.h>
#include <asm/kdebug.h>
#include <asm/proto.h>
#include <asm/proto.h>
#ifdef CONFIG_PCI_NAMES
#define pci_pretty_name(dev) ((dev)->pretty_name)
#else
#define pci_pretty_name(dev) ""
#endif
dma_addr_t
bad_dma_address
;
dma_addr_t
bad_dma_address
;
unsigned
long
iommu_bus_base
;
/* GART remapping area (physical) */
unsigned
long
iommu_bus_base
;
/* GART remapping area (physical) */
...
...
include/linux/pci.h
View file @
c8480a18
...
@@ -842,6 +842,13 @@ static inline char *pci_name(struct pci_dev *pdev)
...
@@ -842,6 +842,13 @@ static inline char *pci_name(struct pci_dev *pdev)
return
pdev
->
dev
.
bus_id
;
return
pdev
->
dev
.
bus_id
;
}
}
/* Some archs want to see the pretty pci name, so use this macro */
#ifdef CONFIG_PCI_NAMES
#define pci_pretty_name(dev) ((dev)->pretty_name)
#else
#define pci_pretty_name(dev) ""
#endif
/*
/*
* The world is not perfect and supplies us with broken PCI devices.
* The world is not perfect and supplies us with broken PCI devices.
* For at least a part of these bugs we need a work-around, so both
* For at least a part of these bugs we need a work-around, so both
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment