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
7478d7b8
Commit
7478d7b8
authored
Feb 20, 2004
by
Yoshinori Sato
Committed by
Benjamin Herrenschmidt
Feb 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] H8/300 include cleanup
- duplicate define marge. - unused define delete. - reduced code size.
parent
c9a89dec
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
12 deletions
+4
-12
include/asm-h8300/aki3068net/machine-depend.h
include/asm-h8300/aki3068net/machine-depend.h
+0
-6
include/asm-h8300/h8300_ne.h
include/asm-h8300/h8300_ne.h
+1
-0
include/asm-h8300/h8max/machine-depend.h
include/asm-h8300/h8max/machine-depend.h
+0
-3
include/asm-h8300/system.h
include/asm-h8300/system.h
+3
-3
No files found.
include/asm-h8300/aki3068net/machine-depend.h
View file @
7478d7b8
...
...
@@ -2,7 +2,6 @@
/* TIMER rate define */
#ifdef H8300_TIMER_DEFINE
#include <linux/config.h>
#define H8300_TIMER_COUNT_DATA 20000*10/8192
#define H8300_TIMER_FREQ 20000*1000/8192
#endif
...
...
@@ -12,13 +11,8 @@
#define NE2000_ADDR 0x200000
#define NE2000_IRQ 5
#define NE2000_IRQ_VECTOR (12 + NE2000_IRQ)
#define NE2000_BYTE volatile unsigned short
#define IER 0xfee015
#define ISR 0xfee016
#define IRQ_MASK (1 << NE2000_IRQ)
#define WCRL 0xfee023
#define MAR0A 0xffff20
#define ETCR0A 0xffff24
...
...
include/asm-h8300/h8300_ne.h
View file @
7478d7b8
...
...
@@ -13,6 +13,7 @@
#define H8300_NE_DEFINE
#include <asm/machine-depend.h>
#define NE2000_IRQ_VECTOR (12 + NE2000_IRQ)
#undef H8300_NE_DEFINE
/****************************************************************************/
...
...
include/asm-h8300/h8max/machine-depend.h
View file @
7478d7b8
...
...
@@ -14,9 +14,6 @@
#define NE2000_IRQ_VECTOR (12 + NE2000_IRQ)
#define NE2000_BYTE volatile unsigned short
#define IER 0xfee015
#define ISR 0xfee016
#define IRQ_MASK (1 << NE2000_IRQ)
/* sorry quick hack */
#if defined(outb)
# undef outb
...
...
include/asm-h8300/system.h
View file @
7478d7b8
...
...
@@ -57,14 +57,14 @@ asmlinkage void resume(void);
#define __cli() asm volatile ("orc #0x80,ccr")
#define __save_flags(x) \
asm volatile ("stc ccr,
r0l\n\tmov.l er0,%0":"=r" (x) : : "er0"
)
asm volatile ("stc ccr,
%w0":"=r" (x)
)
#define __restore_flags(x) \
asm volatile ("
mov.l %0,er0\n\tldc r0l,ccr": :"r" (x) : "er0"
)
asm volatile ("
ldc %w0,ccr": :"r" (x)
)
#define irqs_disabled() \
({ \
unsigned
long
flags; \
unsigned
char
flags; \
__save_flags(flags); \
((flags & 0x80) == 0x80); \
})
...
...
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