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
b0c782a6
Commit
b0c782a6
authored
Jan 18, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Jan 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sn: Forget to check in the _reg file
From: Pat Gefre <pfg@sgi.com> Forget to check in the _reg file
parent
2b889c52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
0 deletions
+70
-0
arch/ia64/sn/io/sn2/pcibr/pcibr_reg.c
arch/ia64/sn/io/sn2/pcibr/pcibr_reg.c
+70
-0
No files found.
arch/ia64/sn/io/sn2/pcibr/pcibr_reg.c
0 → 100644
View file @
b0c782a6
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2003 Silicon Graphics, Inc. All rights reserved.
*/
#include <linux/types.h>
#include <asm/sn/sgi.h>
#include <asm/sn/iograph.h>
#include <asm/sn/addrs.h>
#include <asm/sn/pci/pcibr.h>
#include <asm/sn/pci/pcibr_private.h>
#include <asm/sn/pci/pci_defs.h>
#define IS_IOADDR(ptr) (!(((uint64_t)(ptr) & CAC_BASE) == CAC_BASE))
void
pcireg_intr_enable_bit_clr
(
void
*
ptr
,
uint64_t
bits
)
{
pic_t
*
bridge
;
if
(
IS_IOADDR
(
ptr
)
)
bridge
=
(
pic_t
*
)
ptr
;
else
bridge
=
(
pic_t
*
)((
pcibr_soft_t
)(
ptr
))
->
bs_base
;
bridge
->
p_int_enable
&=
~
bits
;
}
void
pcireg_intr_enable_bit_set
(
void
*
ptr
,
uint64_t
bits
)
{
pic_t
*
bridge
;
if
(
IS_IOADDR
(
ptr
)
)
bridge
=
(
pic_t
*
)
ptr
;
else
bridge
=
(
pic_t
*
)((
pcibr_soft_t
)(
ptr
))
->
bs_base
;
bridge
->
p_int_enable
|=
bits
;
}
void
pcireg_intr_addr_addr_set
(
void
*
ptr
,
int
int_n
,
uint64_t
addr
)
{
pic_t
*
bridge
;
if
(
IS_IOADDR
(
ptr
)
)
bridge
=
(
pic_t
*
)
ptr
;
else
bridge
=
(
pic_t
*
)((
pcibr_soft_t
)(
ptr
))
->
bs_base
;
bridge
->
p_int_addr
[
int_n
]
&=
~
(
0x0000FFFFFFFFFFFF
);
bridge
->
p_int_addr
[
int_n
]
|=
(
addr
&
0x0000FFFFFFFFFFFF
);
}
/*
* Force Interrupt Register Access -- Write Only 0000_01C0 - 0000_01F8
*/
void
pcireg_force_intr_set
(
void
*
ptr
,
int
int_n
)
{
pic_t
*
bridge
;
if
(
IS_IOADDR
(
ptr
)
)
bridge
=
(
pic_t
*
)
ptr
;
else
bridge
=
(
pic_t
*
)((
pcibr_soft_t
)(
ptr
))
->
bs_base
;
bridge
->
p_force_pin
[
int_n
]
=
1
;
}
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