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
4a85ebdb
Commit
4a85ebdb
authored
Apr 02, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] add EISA port to /proc/ioports
parent
d4232eb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
arch/i386/kernel/traps.c
arch/i386/kernel/traps.c
+14
-1
No files found.
arch/i386/kernel/traps.c
View file @
4a85ebdb
...
...
@@ -25,6 +25,10 @@
#include <linux/interrupt.h>
#include <linux/highmem.h>
#ifdef CONFIG_EISA
#include <linux/ioport.h>
#endif
#ifdef CONFIG_MCA
#include <linux/mca.h>
#include <asm/processor.h>
...
...
@@ -951,11 +955,20 @@ cobalt_init(void)
printk
(
"Cobalt APIC enabled: ID reg %lx
\n
"
,
co_apic_read
(
CO_APIC_ID
));
}
#endif
int
EISA_bus
;
#ifdef CONFIG_EISA
static
struct
resource
eisa_id
=
{
"EISA ID"
,
0xc80
,
0xc83
,
IORESOURCE_BUSY
};
#endif
void
__init
trap_init
(
void
)
{
#ifdef CONFIG_EISA
if
(
isa_readl
(
0x0FFFD9
)
==
'E'
+
(
'I'
<<
8
)
+
(
'S'
<<
16
)
+
(
'A'
<<
24
))
if
(
isa_readl
(
0x0FFFD9
)
==
'E'
+
(
'I'
<<
8
)
+
(
'S'
<<
16
)
+
(
'A'
<<
24
))
{
EISA_bus
=
1
;
if
(
request_resource
(
&
ioport_resource
,
&
eisa_id
)
==
-
EBUSY
)
printk
(
"EISA port was EBUSY :-(
\n
"
);
}
#endif
#ifdef CONFIG_X86_LOCAL_APIC
...
...
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