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
5151c061
Commit
5151c061
authored
Mar 22, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bk.arm.linux.org.uk/linux-2.5-rmk
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
d84366b4
ab220b02
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
189 additions
and
96 deletions
+189
-96
arch/arm/Kconfig
arch/arm/Kconfig
+3
-6
arch/arm/boot/compressed/Makefile
arch/arm/boot/compressed/Makefile
+0
-4
arch/arm/kernel/bios32.c
arch/arm/kernel/bios32.c
+32
-10
arch/arm/kernel/ecard.c
arch/arm/kernel/ecard.c
+2
-1
arch/arm/kernel/time.c
arch/arm/kernel/time.c
+1
-1
arch/arm/kernel/traps.c
arch/arm/kernel/traps.c
+3
-3
arch/arm/mach-clps7500/core.c
arch/arm/mach-clps7500/core.c
+83
-41
arch/arm/mach-sa1100/ssp.c
arch/arm/mach-sa1100/ssp.c
+5
-1
drivers/acorn/scsi/acornscsi.c
drivers/acorn/scsi/acornscsi.c
+5
-5
drivers/acorn/scsi/scsi.h
drivers/acorn/scsi/scsi.h
+1
-4
drivers/char/nwflash.c
drivers/char/nwflash.c
+5
-4
include/asm-arm/arch-cl7500/io.h
include/asm-arm/arch-cl7500/io.h
+11
-0
include/asm-arm/arch-pxa/time.h
include/asm-arm/arch-pxa/time.h
+0
-3
include/asm-arm/cache.h
include/asm-arm/cache.h
+6
-12
include/asm-arm/hardware/ssp.h
include/asm-arm/hardware/ssp.h
+28
-0
include/asm-arm/mach/arch.h
include/asm-arm/mach/arch.h
+1
-0
include/asm-arm/mach/dma.h
include/asm-arm/mach/dma.h
+0
-1
include/asm-arm/mach/pci.h
include/asm-arm/mach/pci.h
+2
-0
include/asm-arm/proc-armv/system.h
include/asm-arm/proc-armv/system.h
+1
-0
No files found.
arch/arm/Kconfig
View file @
5151c061
...
...
@@ -546,9 +546,9 @@ config CPU_FREQ_SA1110
if (CPU_FREQ_SA1100 || CPU_FREQ_SA1110)
config CPU_FREQ_GOV_USERSPACE
bool
depends on CPU_FREQ
default y
tristate
depends on CPU_FREQ
default y
config CPU_FREQ_24_API
bool
...
...
@@ -1027,9 +1027,6 @@ source "drivers/scsi/Kconfig"
endmenu
#if [ "$CONFIG_ARCH_CLPS711X" = "y" ]; then
# source drivers/ssi/Config.in
#fi
source "drivers/ieee1394/Kconfig"
source "drivers/message/i2o/Kconfig"
...
...
arch/arm/boot/compressed/Makefile
View file @
5151c061
...
...
@@ -19,10 +19,6 @@ OBJS += ll_char_wr.o font.o
CFLAGS_misc.o
:=
-DPARAMS_PHYS
=
$(PARAMS_PHYS)
endif
ifeq
($(CONFIG_ARCH_NETWINDER),y)
OBJS
+=
head-netwinder.o
endif
ifeq
($(CONFIG_ARCH_SHARK),y)
OBJS
+=
head-shark.o ofw-shark.o
endif
...
...
arch/arm/kernel/bios32.c
View file @
5151c061
...
...
@@ -6,6 +6,7 @@
* Bits taken from various places.
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/slab.h>
...
...
@@ -61,7 +62,7 @@ void pcibios_report_status(u_int status_mask, int warn)
* Bug 3 is responsible for the sound DMA grinding to a halt. We now
* live with bug 2.
*/
static
void
__init
pci_fixup_83c553
(
struct
pci_dev
*
dev
)
static
void
__
dev
init
pci_fixup_83c553
(
struct
pci_dev
*
dev
)
{
/*
* Set memory region to start at address 0, and enable IO
...
...
@@ -112,7 +113,7 @@ static void __init pci_fixup_83c553(struct pci_dev *dev)
outb
(
0x08
,
0x4d1
);
}
static
void
__init
pci_fixup_unassign
(
struct
pci_dev
*
dev
)
static
void
__
dev
init
pci_fixup_unassign
(
struct
pci_dev
*
dev
)
{
dev
->
resource
[
0
].
end
-=
dev
->
resource
[
0
].
start
;
dev
->
resource
[
0
].
start
=
0
;
...
...
@@ -123,7 +124,7 @@ static void __init pci_fixup_unassign(struct pci_dev *dev)
* if it is the host bridge by marking it as such. These resources are of
* no consequence to the PCI layer (they are handled elsewhere).
*/
static
void
__init
pci_fixup_dec21285
(
struct
pci_dev
*
dev
)
static
void
__
dev
init
pci_fixup_dec21285
(
struct
pci_dev
*
dev
)
{
int
i
;
...
...
@@ -141,7 +142,7 @@ static void __init pci_fixup_dec21285(struct pci_dev *dev)
/*
* PCI IDE controllers use non-standard I/O port decoding, respect it.
*/
static
void
__init
pci_fixup_ide_bases
(
struct
pci_dev
*
dev
)
static
void
__
dev
init
pci_fixup_ide_bases
(
struct
pci_dev
*
dev
)
{
struct
resource
*
r
;
int
i
;
...
...
@@ -161,7 +162,7 @@ static void __init pci_fixup_ide_bases(struct pci_dev *dev)
/*
* Put the DEC21142 to sleep
*/
static
void
__init
pci_fixup_dec21142
(
struct
pci_dev
*
dev
)
static
void
__
dev
init
pci_fixup_dec21142
(
struct
pci_dev
*
dev
)
{
pci_write_config_dword
(
dev
,
0x40
,
0x80000000
);
}
...
...
@@ -182,7 +183,7 @@ static void __init pci_fixup_dec21142(struct pci_dev *dev)
* functional. However, The CY82C693U _does not work_ in bus
* master mode without locking the PCI bus solid.
*/
static
void
__init
pci_fixup_cy82c693
(
struct
pci_dev
*
dev
)
static
void
__
dev
init
pci_fixup_cy82c693
(
struct
pci_dev
*
dev
)
{
if
((
dev
->
class
>>
8
)
==
PCI_CLASS_STORAGE_IDE
)
{
u32
base0
,
base1
;
...
...
@@ -511,6 +512,8 @@ static void __init pcibios_init_hw(struct hw_pci *hw)
panic
(
"PCI: unable to scan bus!"
);
busnr
=
sys
->
bus
->
subordinate
+
1
;
list_add
(
&
sys
->
node
,
&
hw
->
buses
);
}
else
{
kfree
(
sys
);
if
(
ret
<
0
)
...
...
@@ -521,17 +524,36 @@ static void __init pcibios_init_hw(struct hw_pci *hw)
void
__init
pci_common_init
(
struct
hw_pci
*
hw
)
{
struct
pci_sys_data
*
sys
;
INIT_LIST_HEAD
(
&
hw
->
buses
);
if
(
hw
->
preinit
)
hw
->
preinit
();
pcibios_init_hw
(
hw
);
if
(
hw
->
postinit
)
hw
->
postinit
();
/*
* Assign any unassigned resources.
*/
pci_assign_unassigned_resources
();
pci_fixup_irqs
(
pcibios_swizzle
,
pcibios_map_irq
);
list_for_each_entry
(
sys
,
&
hw
->
buses
,
node
)
{
struct
pci_bus
*
bus
=
sys
->
bus
;
/*
* Size the bridge windows.
*/
pci_bus_size_bridges
(
bus
);
/*
* Assign resources.
*/
pci_bus_assign_resources
(
bus
);
/*
* Tell drivers about devices found.
*/
pci_bus_add_devices
(
bus
);
}
}
char
*
__init
pcibios_setup
(
char
*
str
)
...
...
arch/arm/kernel/ecard.c
View file @
5151c061
...
...
@@ -562,7 +562,8 @@ ecard_dump_irq_state(ecard_t *ec)
static
void
ecard_check_lockup
(
struct
irqdesc
*
desc
)
{
static
int
last
,
lockup
;
static
unsigned
long
last
;
static
int
lockup
;
ecard_t
*
ec
;
/*
...
...
arch/arm/kernel/time.c
View file @
5151c061
...
...
@@ -89,7 +89,7 @@ static inline void do_profile(struct pt_regs *regs)
}
}
static
long
next_rtc_update
;
static
unsigned
long
next_rtc_update
;
/*
* If we have an externally synchronized linux clock, then update
...
...
arch/arm/kernel/traps.c
View file @
5151c061
...
...
@@ -326,7 +326,7 @@ asmlinkage void bad_mode(struct pt_regs *regs, int reason, int proc_mode)
dump_mem
(
KERN_CRIT
"Vectors: "
,
vectors
,
vectors
+
0x40
);
dump_mem
(
KERN_CRIT
"Stubs: "
,
vectors
+
0x200
,
vectors
+
0x4b8
);
die
(
"Oops"
,
regs
,
0
);
die
(
"Oops
- bad mode
"
,
regs
,
0
);
local_irq_disable
();
panic
(
"bad mode"
);
}
...
...
@@ -354,7 +354,7 @@ static int bad_syscall(int n, struct pt_regs *regs)
(
thumb_mode
(
regs
)
?
2
:
4
);
force_sig_info
(
SIGILL
,
&
info
,
current
);
die_if_kernel
(
"Oops"
,
regs
,
n
);
die_if_kernel
(
"Oops
- bad syscall
"
,
regs
,
n
);
return
regs
->
ARM_r0
;
}
...
...
@@ -472,7 +472,7 @@ asmlinkage int arm_syscall(int no, struct pt_regs *regs)
(
thumb_mode
(
regs
)
?
2
:
4
);
force_sig_info
(
SIGILL
,
&
info
,
current
);
die_if_kernel
(
"Oops"
,
regs
,
no
);
die_if_kernel
(
"Oops
- bad syscall(2)
"
,
regs
,
no
);
return
0
;
}
...
...
arch/arm/mach-clps7500/core.c
View file @
5151c061
...
...
@@ -8,19 +8,22 @@
*/
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/list.h>
#include <linux/timer.h>
#include <linux/init.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
#include <asm/hardware.h>
#include <asm/hardware/iomd.h>
#include <asm/io.h>
#include <asm/page.h>
#include <asm/proc/domain.h>
#include <asm/setup.h>
#include <asm/irq.h>
#include <asm/mach-types.h>
static
void
cl7500_
mask_irq_ack
_a
(
unsigned
int
irq
)
static
void
cl7500_
ack_irq
_a
(
unsigned
int
irq
)
{
unsigned
int
val
,
mask
;
...
...
@@ -48,6 +51,12 @@ static void cl7500_unmask_irq_a(unsigned int irq)
iomd_writeb
(
val
|
mask
,
IOMD_IRQMASKA
);
}
static
struct
irqchip
clps7500_a_chip
=
{
.
ack
=
cl7500_ack_irq_a
,
.
mask
=
cl7500_mask_irq_a
,
.
unmask
=
cl7500_unmask_irq_a
,
};
static
void
cl7500_mask_irq_b
(
unsigned
int
irq
)
{
unsigned
int
val
,
mask
;
...
...
@@ -66,6 +75,12 @@ static void cl7500_unmask_irq_b(unsigned int irq)
iomd_writeb
(
val
|
mask
,
IOMD_IRQMASKB
);
}
static
struct
irqchip
clps7500_b_chip
=
{
.
ack
=
cl7500_mask_irq_b
,
.
mask
=
cl7500_mask_irq_b
,
.
unmask
=
cl7500_unmask_irq_b
,
};
static
void
cl7500_mask_irq_c
(
unsigned
int
irq
)
{
unsigned
int
val
,
mask
;
...
...
@@ -84,6 +99,11 @@ static void cl7500_unmask_irq_c(unsigned int irq)
iomd_writeb
(
val
|
mask
,
IOMD_IRQMASKC
);
}
static
struct
irqchip
clps7500_c_chip
=
{
.
ack
=
cl7500_mask_irq_c
,
.
mask
=
cl7500_mask_irq_c
,
.
unmask
=
cl7500_unmask_irq_c
,
};
static
void
cl7500_mask_irq_d
(
unsigned
int
irq
)
{
...
...
@@ -103,6 +123,12 @@ static void cl7500_unmask_irq_d(unsigned int irq)
iomd_writeb
(
val
|
mask
,
IOMD_IRQMASKD
);
}
static
struct
irqchip
clps7500_d_chip
=
{
.
ack
=
cl7500_mask_irq_d
,
.
mask
=
cl7500_mask_irq_d
,
.
unmask
=
cl7500_unmask_irq_d
,
};
static
void
cl7500_mask_irq_dma
(
unsigned
int
irq
)
{
unsigned
int
val
,
mask
;
...
...
@@ -121,6 +147,12 @@ static void cl7500_unmask_irq_dma(unsigned int irq)
iomd_writeb
(
val
|
mask
,
IOMD_DMAMASK
);
}
static
struct
irqchip
clps7500_dma_chip
=
{
.
ack
=
cl7500_mask_irq_dma
,
.
mask
=
cl7500_mask_irq_dma
,
.
unmask
=
cl7500_unmask_irq_dma
,
};
static
void
cl7500_mask_irq_fiq
(
unsigned
int
irq
)
{
unsigned
int
val
,
mask
;
...
...
@@ -139,6 +171,22 @@ static void cl7500_unmask_irq_fiq(unsigned int irq)
iomd_writeb
(
val
|
mask
,
IOMD_FIQMASK
);
}
static
struct
irqchip
clps7500_fiq_chip
=
{
.
ack
=
cl7500_mask_irq_fiq
,
.
mask
=
cl7500_mask_irq_fiq
,
.
unmask
=
cl7500_unmask_irq_fiq
,
};
static
void
cl7500_no_action
(
unsigned
int
irq
)
{
}
static
struct
irqchip
clps7500_no_chip
=
{
.
ack
=
cl7500_no_action
,
.
mask
=
cl7500_no_action
,
.
unmask
=
cl7500_no_action
,
};
static
void
no_action
(
int
cpl
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
}
...
...
@@ -147,7 +195,7 @@ static struct irqaction irq_isa = { no_action, 0, 0, "isa", NULL, NULL };
static
void
__init
clps7500_init_irq
(
void
)
{
int
irq
;
unsigned
int
irq
,
flags
;
iomd_writeb
(
0
,
IOMD_IRQMASKA
);
iomd_writeb
(
0
,
IOMD_IRQMASKB
);
...
...
@@ -155,64 +203,58 @@ static void __init clps7500_init_irq(void)
iomd_writeb
(
0
,
IOMD_DMAMASK
);
for
(
irq
=
0
;
irq
<
NR_IRQS
;
irq
++
)
{
flags
=
IRQF_VALID
;
if
(
irq
<=
6
||
(
irq
>=
9
&&
irq
<=
15
)
||
(
irq
>=
48
&&
irq
<=
55
))
flags
|=
IRQF_PROBE
;
switch
(
irq
)
{
case
0
...
6
:
irq_desc
[
irq
].
probe_ok
=
1
;
case
7
:
irq_desc
[
irq
].
valid
=
1
;
irq_desc
[
irq
].
mask_ack
=
cl7500_mask_irq_ack_a
;
irq_desc
[
irq
].
mask
=
cl7500_mask_irq_a
;
irq_desc
[
irq
].
unmask
=
cl7500_unmask_irq_a
;
case
0
...
7
:
set_irq_chip
(
irq
,
&
clps7500_a_chip
);
set_irq_handler
(
irq
,
do_level_IRQ
);
set_irq_flags
(
irq
,
flags
);
break
;
case
9
...
15
:
irq_desc
[
irq
].
probe_ok
=
1
;
case
8
:
irq_desc
[
irq
].
valid
=
1
;
irq_desc
[
irq
].
mask_ack
=
cl7500_mask_irq_b
;
irq_desc
[
irq
].
mask
=
cl7500_mask_irq_b
;
irq_desc
[
irq
].
unmask
=
cl7500_unmask_irq_b
;
case
8
...
15
:
set_irq_chip
(
irq
,
&
clps7500_b_chip
);
set_irq_handler
(
irq
,
do_level_IRQ
);
set_irq_flags
(
irq
,
flags
);
break
;
case
16
...
22
:
irq_desc
[
irq
].
valid
=
1
;
irq_desc
[
irq
].
mask_ack
=
cl7500_mask_irq_dma
;
irq_desc
[
irq
].
mask
=
cl7500_mask_irq_dma
;
irq_desc
[
irq
].
unmask
=
cl7500_unmask_irq_dma
;
set_irq_chip
(
irq
,
&
clps7500_dma_chip
);
set_irq_handler
(
irq
,
do_level_IRQ
);
set_irq_flags
(
irq
,
flags
);
break
;
case
24
...
31
:
irq_desc
[
irq
].
valid
=
1
;
irq_desc
[
irq
].
mask_ack
=
cl7500_mask_irq_c
;
irq_desc
[
irq
].
mask
=
cl7500_mask_irq_c
;
irq_desc
[
irq
].
unmask
=
cl7500_unmask_irq_c
;
set_irq_chip
(
irq
,
&
clps7500_c_chip
);
set_irq_handler
(
irq
,
do_level_IRQ
);
set_irq_flags
(
irq
,
flags
);
break
;
case
40
...
47
:
irq_desc
[
irq
].
valid
=
1
;
irq_desc
[
irq
].
mask_ack
=
cl7500_mask_irq_d
;
irq_desc
[
irq
].
mask
=
cl7500_mask_irq_d
;
irq_desc
[
irq
].
unmask
=
cl7500_unmask_irq_d
;
set_irq_chip
(
irq
,
&
clps7500_d_chip
);
set_irq_handler
(
irq
,
do_level_IRQ
);
set_irq_flags
(
irq
,
flags
);
break
;
case
48
...
55
:
irq_desc
[
irq
].
valid
=
1
;
irq_desc
[
irq
].
probe_ok
=
1
;
irq_desc
[
irq
].
mask_ack
=
no_action
;
irq_desc
[
irq
].
mask
=
no_action
;
irq_desc
[
irq
].
unmask
=
no_action
;
set_irq_chip
(
irq
,
&
clps7500_no_chip
);
set_irq_handler
(
irq
,
do_level_IRQ
);
set_irq_flags
(
irq
,
flags
);
break
;
case
64
...
72
:
irq_desc
[
irq
].
valid
=
1
;
irq_desc
[
irq
].
mask_ack
=
cl7500_mask_irq_fiq
;
irq_desc
[
irq
].
mask
=
cl7500_mask_irq_fiq
;
irq_desc
[
irq
].
unmask
=
cl7500_unmask_irq_fiq
;
set_irq_chip
(
irq
,
&
clps7500_fiq_chip
);
set_irq_handler
(
irq
,
do_level_IRQ
);
set_irq_flags
(
irq
,
flags
);
break
;
}
}
setup_
arm_
irq
(
IRQ_ISA
,
&
irq_isa
);
setup_irq
(
IRQ_ISA
,
&
irq_isa
);
}
static
struct
map_desc
cl7500_io_desc
[]
__initdata
=
{
...
...
arch/arm/mach-sa1100/ssp.c
View file @
5151c061
...
...
@@ -39,7 +39,8 @@ static void ssp_interrupt(int irq, void *dev_id, struct pt_regs *regs)
* @data: 16-bit, MSB justified data to write.
*
* Wait for a free entry in the SSP transmit FIFO, and write a data
* word to the SSP port.
* word to the SSP port. Wait for the SSP port to start sending
* the data.
*
* The caller is expected to perform the necessary locking.
*
...
...
@@ -54,6 +55,9 @@ int ssp_write_word(u16 data)
Ser4SSDR
=
data
;
while
(
!
(
Ser4SSSR
&
SSSR_BSY
))
cpu_relax
();
return
0
;
}
...
...
drivers/acorn/scsi/acornscsi.c
View file @
5151c061
...
...
@@ -2521,19 +2521,19 @@ void acornscsi_intr(int irq, void *dev_id, struct pt_regs *regs)
*/
int
acornscsi_queuecmd
(
Scsi_Cmnd
*
SCpnt
,
void
(
*
done
)(
Scsi_Cmnd
*
))
{
AS_Host
*
host
=
(
AS_Host
*
)
SCpnt
->
host
->
hostdata
;
AS_Host
*
host
=
(
AS_Host
*
)
SCpnt
->
device
->
host
->
hostdata
;
if
(
!
done
)
{
/* there should be some way of rejecting errors like this without panicing... */
panic
(
"scsi%d: queuecommand called with NULL done function [cmd=%p]"
,
SCpn
t
->
host
->
host_no
,
SCpnt
);
hos
t
->
host
->
host_no
,
SCpnt
);
return
-
EINVAL
;
}
#if (DEBUG & DEBUG_NO_WRITE)
if
(
acornscsi_cmdtype
(
SCpnt
->
cmnd
[
0
])
==
CMD_WRITE
&&
(
NO_WRITE
&
(
1
<<
SCpnt
->
device
->
id
)))
{
printk
(
KERN_CRIT
"scsi%d.%c: WRITE attempted with NO_WRITE flag set
\n
"
,
SCpn
t
->
host
->
host_no
,
'0'
+
SCpnt
->
device
->
id
);
hos
t
->
host
->
host_no
,
'0'
+
SCpnt
->
device
->
id
);
SCpnt
->
result
=
DID_NO_CONNECT
<<
16
;
done
(
SCpnt
);
return
0
;
...
...
@@ -2695,7 +2695,7 @@ acornscsi_do_abort(AS_Host *host, Scsi_Cmnd *SCpnt)
*/
int
acornscsi_abort
(
Scsi_Cmnd
*
SCpnt
)
{
AS_Host
*
host
=
(
AS_Host
*
)
SCpnt
->
host
->
hostdata
;
AS_Host
*
host
=
(
AS_Host
*
)
SCpnt
->
device
->
host
->
hostdata
;
int
result
;
host
->
stats
.
aborts
+=
1
;
...
...
@@ -2782,7 +2782,7 @@ int acornscsi_abort(Scsi_Cmnd *SCpnt)
*/
int
acornscsi_reset
(
Scsi_Cmnd
*
SCpnt
,
unsigned
int
reset_flags
)
{
AS_Host
*
host
=
(
AS_Host
*
)
SCpnt
->
host
->
hostdata
;
AS_Host
*
host
=
(
AS_Host
*
)
SCpnt
->
device
->
host
->
hostdata
;
Scsi_Cmnd
*
SCptr
;
host
->
stats
.
resets
+=
1
;
...
...
drivers/acorn/scsi/scsi.h
View file @
5151c061
...
...
@@ -68,8 +68,7 @@ static inline void put_next_SCp_byte(Scsi_Pointer *SCp, unsigned char c)
static
inline
void
init_SCp
(
Scsi_Cmnd
*
SCpnt
)
{
SCpnt
->
SCp
.
Message
=
0
;
SCpnt
->
SCp
.
Status
=
0
;
memset
(
&
SCpnt
->
SCp
,
0
,
sizeof
(
struct
scsi_pointer
));
if
(
SCpnt
->
use_sg
)
{
unsigned
long
len
=
0
;
...
...
@@ -97,8 +96,6 @@ static inline void init_SCp(Scsi_Cmnd *SCpnt)
SCpnt
->
request_bufflen
=
len
;
#endif
}
else
{
SCpnt
->
SCp
.
buffer
=
NULL
;
SCpnt
->
SCp
.
buffers_residual
=
0
;
SCpnt
->
SCp
.
ptr
=
(
unsigned
char
*
)
SCpnt
->
request_buffer
;
SCpnt
->
SCp
.
this_residual
=
SCpnt
->
request_bufflen
;
}
...
...
drivers/char/nwflash.c
View file @
5151c061
...
...
@@ -354,6 +354,7 @@ static int erase_block(int nBlock)
{
volatile
unsigned
int
c1
;
volatile
unsigned
char
*
pWritePtr
;
unsigned
long
timeout
;
int
temp
,
temp1
;
/*
...
...
@@ -406,9 +407,9 @@ static int erase_block(int nBlock)
/*
* wait while erasing in process (up to 10 sec)
*/
t
emp
=
jiffies
+
10
*
HZ
;
t
imeout
=
jiffies
+
10
*
HZ
;
c1
=
0
;
while
(
!
(
c1
&
0x80
)
&&
time_before
(
jiffies
,
t
emp
))
{
while
(
!
(
c1
&
0x80
)
&&
time_before
(
jiffies
,
t
imeout
))
{
flash_wait
(
HZ
/
100
);
/*
* read any address
...
...
@@ -466,8 +467,8 @@ static int write_block(unsigned long p, const char *buf, int count)
unsigned
char
*
pWritePtr
;
unsigned
int
uAddress
;
unsigned
int
offset
;
unsigned
int
timeout
;
unsigned
int
timeout1
;
unsigned
long
timeout
;
unsigned
long
timeout1
;
/*
* red LED == write
...
...
include/asm-arm/arch-cl7500/io.h
View file @
5151c061
...
...
@@ -239,4 +239,15 @@ DECLARE_IO(int,l,"")
/* the following macro is deprecated */
#define ioaddr(port) __ioaddr((port))
#define insb(p,d,l) __raw_readsb(__ioaddr(p),d,l)
#define insw(p,d,l) __raw_readsw(__ioaddr(p),d,l)
#define outsb(p,d,l) __raw_writesb(__ioaddr(p),d,l)
#define outsw(p,d,l) __raw_writesw(__ioaddr(p),d,l)
/*
* 1:1 mapping for ioremapped regions.
*/
#define __mem_pci(x) (x)
#endif
include/asm-arm/arch-pxa/time.h
View file @
5151c061
...
...
@@ -49,7 +49,6 @@ static unsigned long pxa_gettimeoffset (void)
static
void
pxa_timer_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
long
flags
;
int
next_match
;
do_profile
(
regs
);
...
...
@@ -63,11 +62,9 @@ static void pxa_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
do
{
do_leds
();
do_set_rtc
();
local_irq_save
(
flags
);
do_timer
(
regs
);
OSSR
=
OSSR_M0
;
/* Clear match on timer 0 */
next_match
=
(
OSMR0
+=
LATCH
);
local_irq_restore
(
flags
);
}
while
(
(
signed
long
)(
next_match
-
OSCR
)
<=
0
);
}
...
...
include/asm-arm/cache.h
View file @
5151c061
...
...
@@ -4,18 +4,12 @@
#ifndef __ASMARM_CACHE_H
#define __ASMARM_CACHE_H
#define L1_CACHE_BYTES 32
#define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
#define SMP_CACHE_BYTES L1_CACHE_BYTES
#define L1_CACHE_SHIFT 5
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
#ifdef MODULE
#define __cacheline_aligned __attribute__((__aligned__(L1_CACHE_BYTES)))
#else
#define __cacheline_aligned \
__attribute__((__aligned__(L1_CACHE_BYTES), \
__section__(".data.cacheline_aligned")))
#endif
#define L1_CACHE_SHIFT_MAX 5
/* largest L1 which this arch supports */
/*
* largest L1 which this arch supports
*/
#define L1_CACHE_SHIFT_MAX 5
#endif
arch/arm/boot/compressed/head-netwinder.S
→
include/asm-arm/hardware/ssp.h
View file @
5151c061
/*
*
linux
/
arch
/
arm
/
boot
/
compressed
/
head
-
netwinder
.
S
*
ssp.h
*
*
Copyright
(
C
)
200
0
-
2002
Russell
King
* Copyright (C) 200
3 Russell King, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
.
section
".start"
,
"ax"
#ifndef SSP_H
#define SSP_H
mov
r7
,
#
5
mov
r8
,
#
0
struct
ssp_state
{
unsigned
int
cr0
;
unsigned
int
cr1
;
};
int
ssp_write_word
(
u16
data
);
int
ssp_read_word
(
void
);
void
ssp_flush
(
void
);
void
ssp_enable
(
void
);
void
ssp_disable
(
void
);
void
ssp_save_state
(
struct
ssp_state
*
ssp
);
void
ssp_restore_state
(
struct
ssp_state
*
ssp
);
int
ssp_init
(
void
);
void
ssp_exit
(
void
);
#endif
include/asm-arm/mach/arch.h
View file @
5151c061
...
...
@@ -17,6 +17,7 @@
#ifndef __ASSEMBLY__
struct
tag
;
struct
meminfo
;
struct
machine_desc
{
/*
...
...
include/asm-arm/mach/dma.h
View file @
5151c061
...
...
@@ -40,7 +40,6 @@ struct dma_struct {
unsigned
int
dma_base
;
/* Controller base address */
int
dma_irq
;
/* Controller IRQ */
int
state
;
/* Controller state */
struct
scatterlist
cur_sg
;
/* Current controller buffer */
struct
dma_ops
*
d_ops
;
...
...
include/asm-arm/mach/pci.h
View file @
5151c061
...
...
@@ -12,6 +12,7 @@ struct pci_sys_data;
struct
pci_bus
;
struct
hw_pci
{
struct
list_head
buses
;
int
nr_controllers
;
int
(
*
setup
)(
int
nr
,
struct
pci_sys_data
*
);
struct
pci_bus
*
(
*
scan
)(
int
nr
,
struct
pci_sys_data
*
);
...
...
@@ -25,6 +26,7 @@ struct hw_pci {
* Per-controller structure
*/
struct
pci_sys_data
{
struct
list_head
node
;
int
busnr
;
/* primary bus number */
unsigned
long
mem_offset
;
/* bus->cpu memory mapping offset */
unsigned
long
io_offset
;
/* bus->cpu IO mapping offset */
...
...
include/asm-arm/proc-armv/system.h
View file @
5151c061
...
...
@@ -63,6 +63,7 @@ extern unsigned long cr_alignment; /* defined in entry-armv.S */
#define local_irq_save(x) \
({ \
unsigned long temp; \
(void) (&temp == &x); \
__asm__ __volatile__( \
"mrs %0, cpsr @ local_irq_save\n" \
" orr %1, %0, #128\n" \
...
...
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