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
3a054682
Commit
3a054682
authored
Jan 05, 2003
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Move IRQ sense/polarity definitions from open_pic.h to irq.h
parent
b431af20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
include/asm-ppc/irq.h
include/asm-ppc/irq.h
+13
-0
include/asm-ppc/open_pic.h
include/asm-ppc/open_pic.h
+0
-13
No files found.
include/asm-ppc/irq.h
View file @
3a054682
...
@@ -10,6 +10,19 @@ extern void disable_irq(unsigned int);
...
@@ -10,6 +10,19 @@ extern void disable_irq(unsigned int);
extern
void
disable_irq_nosync
(
unsigned
int
);
extern
void
disable_irq_nosync
(
unsigned
int
);
extern
void
enable_irq
(
unsigned
int
);
extern
void
enable_irq
(
unsigned
int
);
/*
* These constants are used for passing information about interrupt
* signal polarity and level/edge sensing to the low-level PIC chip
* drivers.
*/
#define IRQ_SENSE_MASK 0x1
#define IRQ_SENSE_LEVEL 0x1
/* interrupt on active level */
#define IRQ_SENSE_EDGE 0x0
/* interrupt triggered by edge */
#define IRQ_POLARITY_MASK 0x2
#define IRQ_POLARITY_POSITIVE 0x2
/* high level or low->high edge */
#define IRQ_POLARITY_NEGATIVE 0x0
/* low level or high->low edge */
#if defined(CONFIG_40x)
#if defined(CONFIG_40x)
#include <asm/ibm4xx.h>
#include <asm/ibm4xx.h>
...
...
include/asm-ppc/open_pic.h
View file @
3a054682
...
@@ -25,19 +25,6 @@
...
@@ -25,19 +25,6 @@
#define OPENPIC_VEC_IPI 72
/* and up */
#define OPENPIC_VEC_IPI 72
/* and up */
#define OPENPIC_VEC_SPURIOUS 127
#define OPENPIC_VEC_SPURIOUS 127
/*
* For the OpenPIC_InitSenses table, we include both the sense
* and polarity in one number and mask out the value we want
* later on. -- Tom
*/
#define IRQ_SENSE_MASK 0x1
#define IRQ_SENSE_LEVEL 0x1
#define IRQ_SENSE_EDGE 0x0
#define IRQ_POLARITY_MASK 0x2
#define IRQ_POLARITY_POSITIVE 0x2
#define IRQ_POLARITY_NEGATIVE 0x0
/* OpenPIC IRQ controller structure */
/* OpenPIC IRQ controller structure */
extern
struct
hw_interrupt_type
open_pic
;
extern
struct
hw_interrupt_type
open_pic
;
...
...
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