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
1972ddad
Commit
1972ddad
authored
Dec 26, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-voyager.bkbits.net/mca-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
0812e18a
d334942b
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
22 additions
and
107 deletions
+22
-107
arch/i386/kernel/i386_ksyms.c
arch/i386/kernel/i386_ksyms.c
+0
-1
arch/i386/kernel/mca.c
arch/i386/kernel/mca.c
+5
-2
arch/i386/kernel/setup.c
arch/i386/kernel/setup.c
+11
-2
arch/i386/kernel/time.c
arch/i386/kernel/time.c
+2
-3
drivers/serial/8250.c
drivers/serial/8250.c
+1
-2
include/asm-alpha/processor.h
include/asm-alpha/processor.h
+0
-6
include/asm-arm/processor.h
include/asm-arm/processor.h
+0
-3
include/asm-arm26/processor.h
include/asm-arm26/processor.h
+0
-3
include/asm-h8300/processor.h
include/asm-h8300/processor.h
+0
-5
include/asm-i386/mca.h
include/asm-i386/mca.h
+0
-3
include/asm-i386/processor.h
include/asm-i386/processor.h
+0
-5
include/asm-m68knommu/processor.h
include/asm-m68knommu/processor.h
+0
-5
include/asm-mips/processor.h
include/asm-mips/processor.h
+0
-6
include/asm-parisc/processor.h
include/asm-parisc/processor.h
+0
-3
include/asm-ppc/processor.h
include/asm-ppc/processor.h
+0
-6
include/asm-ppc64/processor.h
include/asm-ppc64/processor.h
+0
-6
include/asm-sh/processor.h
include/asm-sh/processor.h
+0
-6
include/asm-sh64/processor.h
include/asm-sh64/processor.h
+0
-6
include/asm-sparc/processor.h
include/asm-sparc/processor.h
+0
-6
include/asm-sparc64/processor.h
include/asm-sparc64/processor.h
+0
-4
include/asm-v850/processor.h
include/asm-v850/processor.h
+0
-7
include/asm-x86_64/processor.h
include/asm-x86_64/processor.h
+0
-6
include/linux/mca.h
include/linux/mca.h
+3
-11
No files found.
arch/i386/kernel/i386_ksyms.c
View file @
1972ddad
...
...
@@ -61,7 +61,6 @@ extern unsigned long get_cmos_time(void);
/* platform dependent support */
EXPORT_SYMBOL
(
boot_cpu_data
);
EXPORT_SYMBOL
(
MCA_bus
);
#ifdef CONFIG_DISCONTIGMEM
EXPORT_SYMBOL
(
node_data
);
EXPORT_SYMBOL
(
physnode_map
);
...
...
arch/i386/kernel/mca.c
View file @
1972ddad
...
...
@@ -56,13 +56,16 @@
static
unsigned
char
which_scsi
=
0
;
int
MCA_bus
=
0
;
EXPORT_SYMBOL
(
MCA_bus
);
/*
* Motherboard register spinlock. Untested on SMP at the moment, but
* are there any MCA SMP boxes?
*
* Yes - Alan
*/
spinlock_t
mca_lock
=
SPIN_LOCK_UNLOCKED
;
s
tatic
s
pinlock_t
mca_lock
=
SPIN_LOCK_UNLOCKED
;
/* Build the status info for the adapter */
...
...
@@ -119,7 +122,7 @@ static void mca_configure_adapter_status(struct mca_device *mca_dev) {
/*--------------------------------------------------------------------*/
struct
resource
mca_standard_resources
[]
=
{
st
atic
st
ruct
resource
mca_standard_resources
[]
=
{
{
"system control port B (MCA)"
,
0x60
,
0x60
},
{
"arbitration (MCA)"
,
0x90
,
0x90
},
{
"card Select Feedback (MCA)"
,
0x91
,
0x91
},
...
...
arch/i386/kernel/setup.c
View file @
1972ddad
...
...
@@ -33,6 +33,7 @@
#include <linux/bootmem.h>
#include <linux/seq_file.h>
#include <linux/console.h>
#include <linux/mca.h>
#include <linux/root_dev.h>
#include <linux/highmem.h>
#include <linux/module.h>
...
...
@@ -87,7 +88,6 @@ int __initdata acpi_force = 0;
extern
acpi_interrupt_flags
acpi_sci_flags
;
#endif
int
MCA_bus
;
/* for MCA, but anyone else can use it if they want */
unsigned
int
machine_id
;
unsigned
int
machine_submodel_id
;
...
...
@@ -1288,6 +1288,15 @@ __setup("noreplacement", noreplacement_setup);
static
char
*
__init
machine_specific_memory_setup
(
void
);
#ifdef CONFIG_MCA
static
void
set_mca_bus
(
int
x
)
{
MCA_bus
=
x
;
}
#else
static
void
set_mca_bus
(
int
x
)
{
}
#endif
/*
* Determine if we were loaded by an EFI loader. If so, then we have also been
* passed the efi memmap, systab, etc., so we should use these data structures
...
...
@@ -1323,7 +1332,7 @@ void __init setup_arch(char **cmdline_p)
ist_info
=
IST_INFO
;
saved_videomode
=
VIDEO_MODE
;
if
(
SYS_DESC_TABLE
.
length
!=
0
)
{
MCA_bus
=
SYS_DESC_TABLE
.
table
[
3
]
&
0x2
;
set_mca_bus
(
SYS_DESC_TABLE
.
table
[
3
]
&
0x2
)
;
machine_id
=
SYS_DESC_TABLE
.
table
[
0
];
machine_submodel_id
=
SYS_DESC_TABLE
.
table
[
1
];
BIOS_revision
=
SYS_DESC_TABLE
.
table
[
2
];
...
...
arch/i386/kernel/time.c
View file @
1972ddad
...
...
@@ -45,6 +45,7 @@
#include <linux/sysdev.h>
#include <linux/bcd.h>
#include <linux/efi.h>
#include <linux/mca.h>
#include <asm/io.h>
#include <asm/smp.h>
...
...
@@ -261,8 +262,7 @@ static inline void do_timer_interrupt(int irq, void *dev_id,
last_rtc_update
=
xtime
.
tv_sec
-
600
;
/* do it again in 60 s */
}
#ifdef CONFIG_MCA
if
(
MCA_bus
)
{
if
(
MCA_bus
)
{
/* The PS/2 uses level-triggered interrupts. You can't
turn them off, nor would you want to (any attempt to
enable edge-triggered interrupts usually gets intercepted by a
...
...
@@ -275,7 +275,6 @@ static inline void do_timer_interrupt(int irq, void *dev_id,
irq
=
inb_p
(
0x61
);
/* read the current state */
outb_p
(
irq
|
0x80
,
0x61
);
/* reset the IRQ */
}
#endif
}
/*
...
...
drivers/serial/8250.c
View file @
1972ddad
...
...
@@ -31,6 +31,7 @@
#include <linux/init.h>
#include <linux/console.h>
#include <linux/sysrq.h>
#include <linux/mca.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/tty.h>
...
...
@@ -1861,13 +1862,11 @@ static void serial8250_config_port(struct uart_port *port, int flags)
int
probeflags
=
PROBE_ANY
;
int
ret
;
#ifdef CONFIG_MCA
/*
* Don't probe for MCA ports on non-MCA machines.
*/
if
(
up
->
port
.
flags
&
UPF_BOOT_ONLYMCA
&&
!
MCA_bus
)
return
;
#endif
/*
* Find the region that we can probe for. This in turn
...
...
include/asm-alpha/processor.h
View file @
1972ddad
...
...
@@ -26,12 +26,6 @@
#define TASK_UNMAPPED_BASE \
((current->personality & ADDR_LIMIT_32BIT) ? 0x40000000 : TASK_SIZE / 2)
/*
* Bus types
*/
#define MCA_bus 0
#define MCA_bus__is_a_macro
/* for versions in ksyms.c */
typedef
struct
{
unsigned
long
seg
;
}
mm_segment_t
;
...
...
include/asm-arm/processor.h
View file @
1972ddad
...
...
@@ -19,9 +19,6 @@
#ifdef __KERNEL__
#define MCA_bus 0
#define MCA_bus__is_a_macro
#include <asm/atomic.h>
#include <asm/ptrace.h>
#include <asm/procinfo.h>
...
...
include/asm-arm26/processor.h
View file @
1972ddad
...
...
@@ -20,9 +20,6 @@
#ifdef __KERNEL__
#define MCA_bus 0
#define MCA_bus__is_a_macro
#include <asm/atomic.h>
#include <asm/ptrace.h>
#include <linux/string.h>
...
...
include/asm-h8300/processor.h
View file @
1972ddad
...
...
@@ -45,11 +45,6 @@ static inline void wrusp(unsigned long usp) {
*/
#define TASK_UNMAPPED_BASE 0
/*
* Bus types
*/
#define MCA_bus 0
struct
thread_struct
{
unsigned
long
ksp
;
/* kernel stack pointer */
unsigned
long
usp
;
/* user stack pointer */
...
...
include/asm-i386/mca.h
View file @
1972ddad
...
...
@@ -40,7 +40,4 @@
*/
#define MCA_NUMADAPTERS (MCA_MAX_SLOT_NR+3)
/* lock to protect access to the MCA registers */
extern
spinlock_t
mca_lock
;
#endif
include/asm-i386/processor.h
View file @
1972ddad
...
...
@@ -259,11 +259,6 @@ static inline void clear_in_cr4 (unsigned long mask)
outb((data), 0x23); \
} while (0)
/*
* Bus types (default is ISA, but people can check others with these..)
*/
extern
int
MCA_bus
;
static
inline
void
__monitor
(
const
void
*
eax
,
unsigned
long
ecx
,
unsigned
long
edx
)
{
...
...
include/asm-m68knommu/processor.h
View file @
1972ddad
...
...
@@ -55,11 +55,6 @@ extern inline void wrusp(unsigned long usp)
*/
#define TASK_UNMAPPED_BASE 0
/*
* Bus types
*/
#define MCA_bus 0
/*
* if you change this structure, you must change the code and offsets
* in m68k/machasm.S
...
...
include/asm-mips/processor.h
View file @
1972ddad
...
...
@@ -33,12 +33,6 @@ extern void (*cpu_wait)(void);
extern
unsigned
int
vced_count
,
vcei_count
;
/*
* Bus types (default is ISA, but people can check others with these..)
*/
#define MCA_bus 0
#define MCA_bus__is_a_macro
/* for versions in ksyms.c */
#ifdef CONFIG_MIPS32
/*
* User space process size: 2GB. This is hardcoded into a few places,
...
...
include/asm-parisc/processor.h
View file @
1972ddad
...
...
@@ -107,9 +107,6 @@ extern struct cpuinfo_parisc cpu_data[NR_CPUS];
#define CPU_HVERSION ((boot_cpu_data.hversion >> 4) & 0x0FFF)
#define MCA_bus 0
#define MCA_bus__is_a_macro
/* for versions in ksyms.c */
typedef
struct
{
int
seg
;
}
mm_segment_t
;
...
...
include/asm-ppc/processor.h
View file @
1972ddad
...
...
@@ -78,12 +78,6 @@ extern void prepare_to_copy(struct task_struct *tsk);
*/
extern
long
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
/*
* Bus types
*/
#define MCA_bus 0
#define MCA_bus__is_a_macro
/* Lazy FPU handling on uni-processor */
extern
struct
task_struct
*
last_task_used_math
;
extern
struct
task_struct
*
last_task_used_altivec
;
...
...
include/asm-ppc64/processor.h
View file @
1972ddad
...
...
@@ -494,12 +494,6 @@ extern void prepare_to_copy(struct task_struct *tsk);
/* Create a new kernel thread. */
extern
long
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
/*
* Bus types
*/
#define MCA_bus 0
#define MCA_bus__is_a_macro
/* for versions in ksyms.c */
/* Lazy FPU handling on uni-processor */
extern
struct
task_struct
*
last_task_used_math
;
extern
struct
task_struct
*
last_task_used_altivec
;
...
...
include/asm-sh/processor.h
View file @
1972ddad
...
...
@@ -191,12 +191,6 @@ extern void release_thread(struct task_struct *);
*/
extern
int
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
/*
* Bus types
*/
#define MCA_bus 0
#define MCA_bus__is_a_macro
/* for versions in ksyms.c */
/* Copy and release all segment info associated with a VM */
#define copy_segments(p, mm) do { } while(0)
#define release_segments(mm) do { } while(0)
...
...
include/asm-sh64/processor.h
View file @
1972ddad
...
...
@@ -218,12 +218,6 @@ extern void release_thread(struct task_struct *);
*/
extern
int
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
);
/*
* Bus types
*/
#define MCA_bus 0
#define MCA_bus__is_a_macro
/* for versions in ksyms.c */
/* Copy and release all segment info associated with a VM */
#define copy_segments(p, mm) do { } while (0)
...
...
include/asm-sparc/processor.h
View file @
1972ddad
...
...
@@ -23,12 +23,6 @@
#include <asm/btfixup.h>
#include <asm/page.h>
/*
* Bus types
*/
#define MCA_bus 0
#define MCA_bus__is_a_macro
/* for versions in ksyms.c */
/*
* The sparc has no problems with write protection
*/
...
...
include/asm-sparc64/processor.h
View file @
1972ddad
...
...
@@ -21,10 +21,6 @@
#include <asm/segment.h>
#include <asm/page.h>
/* Bus types */
#define MCA_bus 0
#define MCA_bus__is_a_macro
/* for versions in ksyms.c */
/* The sparc has no problems with write protection */
#define wp_works_ok 1
#define wp_works_ok__is_a_macro
/* for versions in ksyms.c */
...
...
include/asm-v850/processor.h
View file @
1972ddad
...
...
@@ -48,13 +48,6 @@
*/
#define current_text_addr() ({ __label__ _l; _l: &&_l;})
/*
* Bus types
*/
#define MCA_bus 0
#define MCA_bus__is_a_macro
/* for versions in ksyms.c */
/* If you change this, you must change the associated assembly-languages
constants defined below, THREAD_*. */
struct
thread_struct
{
...
...
include/asm-x86_64/processor.h
View file @
1972ddad
...
...
@@ -157,12 +157,6 @@ static inline void clear_in_cr4 (unsigned long mask)
:
"ax"
);
}
/*
* Bus types
*/
#define MCA_bus 0
#define MCA_bus__is_a_macro
/*
* User space process size: 512GB - 1GB (default).
...
...
include/linux/mca.h
View file @
1972ddad
...
...
@@ -6,22 +6,14 @@
#ifndef _LINUX_MCA_H
#define _LINUX_MCA_H
/* FIXME: This shouldn't happen, but we need everything that previously
* included mca.h to compile. Take it out later when the MCA #includes
* are sorted out */
#include <linux/device.h>
/* get the platform specific defines */
#ifdef CONFIG_MCA
#include <asm/mca.h>
#endif
/* The detection of MCA bus is done in the real mode (using BIOS).
* The information is exported to the protected code, where this
* variable is set to one in case MCA bus was detected.
*/
#ifndef MCA_bus__is_a_macro
extern
int
MCA_bus
;
extern
int
MCA_bus
;
#else
#define MCA_bus 0
#endif
/* This sets up an information callback for /proc/mca/slot?. The
...
...
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