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
db142755
Commit
db142755
authored
Jan 16, 2003
by
Richard Henderson
Committed by
Richard Henderson
Jan 16, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ALPHA] Correct io.h exports and inlining for marvel and titan.
parent
e62c31e2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
32 deletions
+38
-32
arch/alpha/kernel/Makefile
arch/alpha/kernel/Makefile
+1
-1
arch/alpha/kernel/core_marvel.c
arch/alpha/kernel/core_marvel.c
+12
-6
arch/alpha/kernel/core_titan.c
arch/alpha/kernel/core_titan.c
+2
-0
include/asm-alpha/core_marvel.h
include/asm-alpha/core_marvel.h
+23
-25
No files found.
arch/alpha/kernel/Makefile
View file @
db142755
...
...
@@ -6,7 +6,7 @@ EXTRA_TARGETS := head.o
EXTRA_AFLAGS
:=
$(CFLAGS)
export-objs
:=
alpha_ksyms.o core_titan.o
export-objs
:=
alpha_ksyms.o core_
marvel.o core_
titan.o
obj-y
:=
entry.o traps.o process.o init_task.o osf_sys.o irq.o
\
irq_alpha.o signal.o setup.o ptrace.o time.o semaphore.o
\
...
...
arch/alpha/kernel/core_marvel.c
View file @
db142755
...
...
@@ -5,6 +5,12 @@
*/
#include <linux/config.h>
#define __EXTERN_INLINE inline
#include <asm/io.h>
#include <asm/core_marvel.h>
#undef __EXTERN_INLINE
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/pci.h>
...
...
@@ -13,6 +19,7 @@
#include <linux/vmalloc.h>
#include <linux/mc146818rtc.h>
#include <linux/rtc.h>
#include <linux/module.h>
#include <asm/ptrace.h>
#include <asm/system.h>
...
...
@@ -23,12 +30,7 @@
#include <asm/tlbflush.h>
#include <asm/rtc.h>
#define __EXTERN_INLINE inline
#include <asm/io.h>
#include <asm/core_marvel.h>
#undef __EXTERN_INLINE
#include <linux/bootmem.h>
/* this must be *after* io.h / core_marvel.h */
#include <linux/bootmem.h>
#include "proto.h"
#include "pci_impl.h"
...
...
@@ -726,6 +728,10 @@ marvel_iounmap(unsigned long addr)
return
vfree
((
void
*
)(
PAGE_MASK
&
addr
));
}
#ifndef CONFIG_ALPHA_GENERIC
EXPORT_SYMBOL
(
marvel_ioremap
);
EXPORT_SYMBOL
(
marvel_iounmap
);
#endif
/*
* SRMCons support
...
...
arch/alpha/kernel/core_titan.c
View file @
db142755
...
...
@@ -567,8 +567,10 @@ titan_iounmap(unsigned long addr)
vfree
((
void
*
)(
PAGE_MASK
&
addr
));
}
#ifndef CONFIG_ALPHA_GENERIC
EXPORT_SYMBOL
(
titan_ioremap
);
EXPORT_SYMBOL
(
titan_iounmap
);
#endif
/*
* AGP GART Support.
...
...
include/asm-alpha/core_marvel.h
View file @
db142755
...
...
@@ -374,8 +374,10 @@ __EXTERN_INLINE u8 marvel_inb(unsigned long addr)
{
FIXUP_IOADDR
(
addr
);
if
(
!
marvel_is_ioaddr
(
addr
))
{
if
(
__marvel_is_port_kbd
(
addr
))
return
(
u8
)
0
;
if
(
__marvel_is_port_rtc
(
addr
))
return
__marvel_rtc_inb
(
addr
);
if
(
__marvel_is_port_kbd
(
addr
))
return
(
u8
)
0
;
if
(
__marvel_is_port_rtc
(
addr
))
return
__marvel_rtc_inb
(
addr
);
IOBUG_FILTER_IOADDR
(
addr
,
(
"Bad IO addr %lx - reading -1
\n
"
,
addr
));
return
(
u8
)
-
1
;
...
...
@@ -533,12 +535,12 @@ __EXTERN_INLINE void marvel_writeq(u64 q, unsigned long addr)
#ifdef __WANT_IO_DEF
#define __inb(p)
alpha_mv.mv
_inb((unsigned long)(p))
#define __inw(p)
alpha_mv.mv
_inw((unsigned long)(p))
#define __inl(p)
alpha_mv.mv
_inl((unsigned long)(p))
#define __outb(x,p)
alpha_mv.mv
_outb((x),(unsigned long)(p))
#define __outw(x,p)
alpha_mv.mv
_outw((x),(unsigned long)(p))
#define __outl(x,p)
alpha_mv.mv
_outl((x),(unsigned long)(p))
#define __inb(p)
marvel
_inb((unsigned long)(p))
#define __inw(p)
marvel
_inw((unsigned long)(p))
#define __inl(p)
marvel
_inl((unsigned long)(p))
#define __outb(x,p)
marvel
_outb((x),(unsigned long)(p))
#define __outw(x,p)
marvel
_outw((x),(unsigned long)(p))
#define __outl(x,p)
marvel
_outl((x),(unsigned long)(p))
#define __readb(a) marvel_readb((unsigned long)(a))
#define __readw(a) marvel_readw((unsigned long)(a))
#define __readl(a) marvel_readl((unsigned long)(a))
...
...
@@ -547,25 +549,21 @@ __EXTERN_INLINE void marvel_writeq(u64 q, unsigned long addr)
#define __writew(x,a) marvel_writew((x),(unsigned long)(a))
#define __writel(x,a) marvel_writel((x),(unsigned long)(a))
#define __writeq(x,a) marvel_writeq((x),(unsigned long)(a))
#define __ioremap(a,s)
alpha_mv.mv
_ioremap((unsigned long)(a),(s))
#define __iounmap(a)
alpha_mv.mv
_iounmap((unsigned long)(a))
#define __ioremap(a,s)
marvel
_ioremap((unsigned long)(a),(s))
#define __iounmap(a)
marvel
_iounmap((unsigned long)(a))
#define __is_ioaddr(a) marvel_is_ioaddr((unsigned long)(a))
#define inb(port) __inb((port))
#define inw(port) __inw((port))
#define inl(port) __inl((port))
#define outb(v, port) __outb((v),(port))
#define outw(v, port) __outw((v),(port))
#define outl(v, port) __outl((v),(port))
#define __raw_readb(a) __readb((unsigned long)(a))
#define __raw_readw(a) __readw((unsigned long)(a))
#define __raw_readl(a) __readl((unsigned long)(a))
#define __raw_readq(a) __readq((unsigned long)(a))
#define __raw_writeb(v,a) __writeb((v),(unsigned long)(a))
#define __raw_writew(v,a) __writew((v),(unsigned long)(a))
#define __raw_writel(v,a) __writel((v),(unsigned long)(a))
#define __raw_writeq(v,a) __writeq((v),(unsigned long)(a))
/* Disable direct inlining of these calls with the debug checks present. */
#if 0
#define __raw_readb(a) __readb(a)
#define __raw_readw(a) __readw(a)
#define __raw_readl(a) __readl(a)
#define __raw_readq(a) __readq(a)
#define __raw_writeb(v,a) __writeb(v,a)
#define __raw_writew(v,a) __writew(v,a)
#define __raw_writel(v,a) __writel(v,a)
#define __raw_writeq(v,a) __writeq(v,a)
#endif
#endif
/* __WANT_IO_DEF */
...
...
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