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
nexedi
linux
Commits
63eceba1
Commit
63eceba1
authored
Jul 24, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Use domain in naming PCI buses.
parent
9073380e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
arch/sparc64/kernel/pci.c
arch/sparc64/kernel/pci.c
+6
-0
include/asm-sparc64/pci.h
include/asm-sparc64/pci.h
+1
-7
No files found.
arch/sparc64/kernel/pci.c
View file @
63eceba1
...
...
@@ -798,6 +798,12 @@ int pci_domain_nr(struct pci_bus *pbus)
return
ret
;
}
int
pci_name_bus
(
char
*
name
,
struct
pci_bus
*
bus
)
{
sprintf
(
name
,
"%04x:%02x"
,
pci_domain_nr
(
bus
),
bus
->
number
);
return
0
;
}
int
pcibios_prep_mwi
(
struct
pci_dev
*
dev
)
{
/* We set correct PCI_CACHE_LINE_SIZE register values for every
...
...
include/asm-sparc64/pci.h
View file @
63eceba1
...
...
@@ -190,13 +190,7 @@ pci_dac_dma_sync_single(struct pci_dev *pdev, dma64_addr_t dma_addr, size_t len,
/* Return the index of the PCI controller for device PDEV. */
extern
int
pci_domain_nr
(
struct
pci_bus
*
bus
);
/* Set the name of the bus as it appears in /proc/bus/pci */
static
inline
int
pci_name_bus
(
char
*
name
,
struct
pci_bus
*
bus
)
{
sprintf
(
name
,
"%02x"
,
bus
->
number
);
return
0
;
}
extern
int
pci_name_bus
(
char
*
name
,
struct
pci_bus
*
bus
);
/* Platform support for /proc/bus/pci/X/Y mmap()s. */
...
...
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