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
e01c0d6d
Commit
e01c0d6d
authored
May 25, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Negotiate hypervisor API for PCI services.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
22d6a1cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
arch/sparc64/kernel/pci_sun4v.c
arch/sparc64/kernel/pci_sun4v.c
+18
-0
No files found.
arch/sparc64/kernel/pci_sun4v.c
View file @
e01c0d6d
...
...
@@ -27,6 +27,9 @@
#include "pci_sun4v.h"
static
unsigned
long
vpci_major
=
1
;
static
unsigned
long
vpci_minor
=
1
;
#define PGLIST_NENTS (PAGE_SIZE / sizeof(u64))
struct
iommu_batch
{
...
...
@@ -1162,6 +1165,7 @@ static void pci_sun4v_pbm_init(struct pci_controller_info *p, struct device_node
void
sun4v_pci_init
(
struct
device_node
*
dp
,
char
*
model_name
)
{
static
int
hvapi_negotiated
=
0
;
struct
pci_controller_info
*
p
;
struct
pci_pbm_info
*
pbm
;
struct
iommu
*
iommu
;
...
...
@@ -1170,6 +1174,20 @@ void sun4v_pci_init(struct device_node *dp, char *model_name)
u32
devhandle
;
int
i
;
if
(
!
hvapi_negotiated
++
)
{
int
err
=
sun4v_hvapi_register
(
HV_GRP_PCI
,
vpci_major
,
&
vpci_minor
);
if
(
err
)
{
prom_printf
(
"SUN4V_PCI: Could not register hvapi, "
"err=%d
\n
"
,
err
);
prom_halt
();
}
printk
(
"SUN4V_PCI: Registered hvapi major[%lu] minor[%lu]
\n
"
,
vpci_major
,
vpci_minor
);
}
prop
=
of_find_property
(
dp
,
"reg"
,
NULL
);
regs
=
prop
->
value
;
...
...
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