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
af7dbd5e
Commit
af7dbd5e
authored
May 17, 2003
by
Russell King
Browse files
Options
Browse Files
Download
Plain Diff
[ARM] Merge Linus' tree with current ARM tree.
parents
23d2f992
1b473f09
Changes
41
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
1587 additions
and
672 deletions
+1587
-672
drivers/acorn/char/i2c.c
drivers/acorn/char/i2c.c
+2
-1
drivers/acorn/char/pcf8583.c
drivers/acorn/char/pcf8583.c
+3
-3
drivers/char/nwbutton.h
drivers/char/nwbutton.h
+1
-1
drivers/ide/arm/icside.c
drivers/ide/arm/icside.c
+189
-151
drivers/ide/arm/rapide.c
drivers/ide/arm/rapide.c
+0
-3
drivers/input/serio/sa1111ps2.c
drivers/input/serio/sa1111ps2.c
+0
-1
drivers/net/Kconfig
drivers/net/Kconfig
+1
-8
drivers/net/Makefile
drivers/net/Makefile
+1
-2
drivers/net/arm/Kconfig
drivers/net/arm/Kconfig
+45
-0
drivers/net/arm/Makefile
drivers/net/arm/Makefile
+10
-0
drivers/net/arm/am79c961a.c
drivers/net/arm/am79c961a.c
+0
-0
drivers/net/arm/am79c961a.h
drivers/net/arm/am79c961a.h
+0
-0
drivers/net/arm/ether00.c
drivers/net/arm/ether00.c
+1025
-0
drivers/net/arm/ether1.c
drivers/net/arm/ether1.c
+11
-10
drivers/net/arm/ether1.h
drivers/net/arm/ether1.h
+0
-0
drivers/net/arm/ether3.c
drivers/net/arm/ether3.c
+0
-0
drivers/net/arm/ether3.h
drivers/net/arm/ether3.h
+0
-0
drivers/net/arm/etherh.c
drivers/net/arm/etherh.c
+1
-1
drivers/net/irda/sa1100_ir.c
drivers/net/irda/sa1100_ir.c
+2
-1
drivers/scsi/Kconfig
drivers/scsi/Kconfig
+1
-1
drivers/scsi/Makefile
drivers/scsi/Makefile
+1
-1
drivers/scsi/arm/Kconfig
drivers/scsi/arm/Kconfig
+0
-0
drivers/scsi/arm/Makefile
drivers/scsi/arm/Makefile
+1
-1
drivers/scsi/arm/acornscsi-io.S
drivers/scsi/arm/acornscsi-io.S
+0
-0
drivers/scsi/arm/acornscsi.c
drivers/scsi/arm/acornscsi.c
+31
-2
drivers/scsi/arm/acornscsi.h
drivers/scsi/arm/acornscsi.h
+0
-1
drivers/scsi/arm/arxescsi.c
drivers/scsi/arm/arxescsi.c
+11
-23
drivers/scsi/arm/cumana_1.c
drivers/scsi/arm/cumana_1.c
+4
-4
drivers/scsi/arm/cumana_2.c
drivers/scsi/arm/cumana_2.c
+11
-13
drivers/scsi/arm/ecoscsi.c
drivers/scsi/arm/ecoscsi.c
+4
-4
drivers/scsi/arm/eesox.c
drivers/scsi/arm/eesox.c
+9
-10
drivers/scsi/arm/fas216.c
drivers/scsi/arm/fas216.c
+181
-367
drivers/scsi/arm/fas216.h
drivers/scsi/arm/fas216.h
+1
-8
drivers/scsi/arm/msgqueue.c
drivers/scsi/arm/msgqueue.c
+0
-0
drivers/scsi/arm/msgqueue.h
drivers/scsi/arm/msgqueue.h
+0
-0
drivers/scsi/arm/oak.c
drivers/scsi/arm/oak.c
+4
-4
drivers/scsi/arm/powertec.c
drivers/scsi/arm/powertec.c
+11
-24
drivers/scsi/arm/queue.c
drivers/scsi/arm/queue.c
+1
-1
drivers/scsi/arm/queue.h
drivers/scsi/arm/queue.h
+0
-0
drivers/scsi/arm/scsi.h
drivers/scsi/arm/scsi.h
+0
-0
drivers/video/cyber2000fb.c
drivers/video/cyber2000fb.c
+25
-26
No files found.
drivers/acorn/char/i2c.c
View file @
af7dbd5e
...
...
@@ -19,6 +19,7 @@
#include <linux/rtc.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
#include <linux/fs.h>
#include <asm/hardware.h>
#include <asm/io.h>
...
...
@@ -306,7 +307,7 @@ static struct i2c_adapter ioc_ops = {
.
id
=
I2C_HW_B_IOC
,
.
algo_data
=
&
ioc_data
,
.
client_register
=
ioc_client_reg
,
.
client_unregister
=
ioc_client_unreg
.
client_unregister
=
ioc_client_unreg
,
.
dev
=
{
.
name
=
"IOC/IOMD"
,
},
...
...
drivers/acorn/char/pcf8583.c
View file @
af7dbd5e
...
...
@@ -34,7 +34,7 @@ static struct i2c_client_address_data addr_data = {
.
force
=
ignore
,
};
#define DAT(x) ((unsigned int)(x->data))
#define DAT(x) ((unsigned int)(x->d
ev.driver_d
ata))
static
int
pcf8583_attach
(
struct
i2c_adapter
*
adap
,
int
addr
,
unsigned
short
flags
,
...
...
@@ -51,13 +51,13 @@ pcf8583_attach(struct i2c_adapter *adap, int addr, unsigned short flags,
if
(
!
c
)
return
-
ENOMEM
;
strcpy
(
c
->
name
,
"PCF8583"
);
strcpy
(
c
->
dev
.
name
,
"PCF8583"
);
c
->
id
=
pcf8583_driver
.
id
;
c
->
flags
=
0
;
c
->
addr
=
addr
;
c
->
adapter
=
adap
;
c
->
driver
=
&
pcf8583_driver
;
c
->
d
ata
=
NULL
;
c
->
d
ev
.
driver_data
=
NULL
;
if
(
i2c_transfer
(
c
->
adapter
,
msgs
,
2
)
==
2
)
DAT
(
c
)
=
buf
[
0
];
...
...
drivers/char/nwbutton.h
View file @
af7dbd5e
...
...
@@ -25,7 +25,7 @@ struct button_callback {
/* Function prototypes: */
static
void
button_sequence_finished
(
unsigned
long
parameters
);
static
void
button_handler
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
static
irqreturn_t
button_handler
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
static
int
button_read
(
struct
file
*
filp
,
char
*
buffer
,
size_t
count
,
loff_t
*
ppos
);
int
button_init
(
void
);
...
...
drivers/ide/arm/icside.c
View file @
af7dbd5e
This diff is collapsed.
Click to expand it.
drivers/ide/arm/rapide.c
View file @
af7dbd5e
...
...
@@ -20,8 +20,6 @@ rapide_probe(struct expansion_card *ec, const struct ecard_id *id)
hw_regs_t
hw
;
int
i
,
ret
;
ecard_claim
(
ec
);
memset
(
&
hw
,
0
,
sizeof
(
hw
));
for
(
i
=
IDE_DATA_OFFSET
;
i
<=
IDE_STATUS_OFFSET
;
i
++
)
{
...
...
@@ -49,7 +47,6 @@ rapide_probe(struct expansion_card *ec, const struct ecard_id *id)
static
void
__devexit
rapide_remove
(
struct
expansion_card
*
ec
)
{
/* need to do more */
ecard_release
(
ec
);
}
static
struct
ecard_id
rapide_ids
[]
=
{
...
...
drivers/input/serio/sa1111ps2.c
View file @
af7dbd5e
...
...
@@ -347,7 +347,6 @@ static struct sa1111_driver ps2_driver = {
.
drv
=
{
.
name
=
"sa1111-ps2"
,
.
bus
=
&
sa1111_bus_type
,
.
devclass
=
&
input_devclass
,
.
probe
=
ps2_probe
,
.
remove
=
ps2_remove
,
.
suspend
=
ps2_suspend
,
...
...
drivers/net/Kconfig
View file @
af7dbd5e
...
...
@@ -221,14 +221,7 @@ config MII
or internal device. It is safe to say Y or M here even if your
ethernet card lack MII.
config ARM_AM79C961A
bool "ARM EBSA110 AM79C961A support"
depends on NET_ETHERNET && ARM && ARCH_EBSA110
help
If you wish to compile a kernel for the EBSA-110, then you should
always answer Y to this.
source "drivers/acorn/net/Kconfig"
source "drivers/net/arm/Kconfig"
config MACE
tristate "MACE (Power Mac ethernet) support"
...
...
drivers/net/Makefile
View file @
af7dbd5e
...
...
@@ -77,7 +77,6 @@ obj-$(CONFIG_HP100) += hp100.o
obj-$(CONFIG_SMC9194)
+=
smc9194.o
obj-$(CONFIG_FEC)
+=
fec.o
obj-$(CONFIG_68360_ENET)
+=
68360enet.o
obj-$(CONFIG_ARM_AM79C961A)
+=
am79c961a.o
obj-$(CONFIG_ARM_ETHERH)
+=
8390.o
obj-$(CONFIG_WD80x3)
+=
wd.o 8390.o
obj-$(CONFIG_EL2)
+=
3c503.o 8390.o
...
...
@@ -179,7 +178,7 @@ obj-$(CONFIG_AMD8111_ETH) += amd8111e.o
# non-drivers/net drivers who want mii lib
obj-$(CONFIG_PCMCIA_SMC91C92)
+=
mii.o
obj-$(CONFIG_AR
CH_ACORN)
+=
../acorn/net
/
obj-$(CONFIG_AR
M)
+=
arm
/
obj-$(CONFIG_NET_FC)
+=
fc
/
obj-$(CONFIG_DEV_APPLETALK)
+=
appletalk/
obj-$(CONFIG_TR)
+=
tokenring/
...
...
drivers/
acorn/net
/Kconfig
→
drivers/
net/arm
/Kconfig
View file @
af7dbd5e
...
...
@@ -2,6 +2,13 @@
# Acorn Network device configuration
# These are for Acorn's Expansion card network interfaces
#
config ARM_AM79C961A
bool "ARM EBSA110 AM79C961A support"
depends on NET_ETHERNET && ARM && ARCH_EBSA110
help
If you wish to compile a kernel for the EBSA-110, then you should
always answer Y to this.
config ARM_ETHER1
tristate "Acorn Ether1 support"
depends on NET_ETHERNET && ARM && ARCH_ACORN
...
...
@@ -23,3 +30,16 @@ config ARM_ETHERH
If you have an Acorn system with one of these network cards, you
should say Y to this option if you wish to use it with Linux.
config ARM_ETHER00
tristate "Altera Ether00 support"
depends on NET_ETHERNET && ARM && ARCH_CAMELOT
help
This is the driver for Altera's ether00 ethernet mac IP core. Say
Y here if you want to build support for this into the kernel. It
is also available as a module (say M here) that can be inserted/
removed from the kernel at the same time as the PLD is configured.
If this driver is running on an epxa10 development board then it
will generate a suitable hw address based on the board serial
number (MTD support is required for this). Otherwise you will
need to set a suitable hw address using ifconfig.
drivers/
acorn/net
/Makefile
→
drivers/
net/arm
/Makefile
View file @
af7dbd5e
# File: drivers/
acorn/net
/Makefile
# File: drivers/
net/arm
/Makefile
#
# Makefile for the A
corn ethercard
network device drivers
# Makefile for the A
RM
network device drivers
#
obj-$(CONFIG_ARM_AM79C961A)
+=
am79c961a.o
obj-$(CONFIG_ARM_ETHER00)
+=
ether00.o
obj-$(CONFIG_ARM_ETHERH)
+=
etherh.o
obj-$(CONFIG_ARM_ETHER3)
+=
ether3.o
obj-$(CONFIG_ARM_ETHER1)
+=
ether1.o
drivers/net/am79c961a.c
→
drivers/net/a
rm/a
m79c961a.c
View file @
af7dbd5e
File moved
drivers/net/am79c961a.h
→
drivers/net/a
rm/a
m79c961a.h
View file @
af7dbd5e
File moved
drivers/net/arm/ether00.c
0 → 100644
View file @
af7dbd5e
This diff is collapsed.
Click to expand it.
drivers/
acorn/net
/ether1.c
→
drivers/
net/arm
/ether1.c
View file @
af7dbd5e
...
...
@@ -450,6 +450,7 @@ ether1_init_for_open (struct net_device *dev)
struct
ether1_priv
*
priv
=
(
struct
ether1_priv
*
)
dev
->
priv
;
int
i
,
status
,
addr
,
next
,
next2
;
int
failures
=
0
;
unsigned
long
timeout
;
outb
(
CTRL_RST
|
CTRL_ACK
,
REG_CONTROL
);
...
...
@@ -515,19 +516,19 @@ ether1_init_for_open (struct net_device *dev)
outb
(
CTRL_CA
,
REG_CONTROL
);
/* 586 should now unset iscp.busy */
i
=
jiffies
+
HZ
/
2
;
timeout
=
jiffies
+
HZ
/
2
;
while
(
ether1_inw
(
dev
,
ISCP_ADDR
,
iscp_t
,
iscp_busy
,
DISABLEIRQS
)
==
1
)
{
if
(
time_after
(
jiffies
,
i
))
{
if
(
time_after
(
jiffies
,
timeout
))
{
printk
(
KERN_WARNING
"%s: can't initialise 82586: iscp is busy
\n
"
,
dev
->
name
);
return
1
;
}
}
/* check status of commands that we issued */
i
+=
HZ
/
10
;
timeout
+=
HZ
/
10
;
while
(((
status
=
ether1_inw
(
dev
,
CFG_ADDR
,
cfg_t
,
cfg_status
,
DISABLEIRQS
))
&
STAT_COMPLETE
)
==
0
)
{
if
(
time_after
(
jiffies
,
i
))
if
(
time_after
(
jiffies
,
timeout
))
break
;
}
...
...
@@ -541,10 +542,10 @@ ether1_init_for_open (struct net_device *dev)
failures
+=
1
;
}
i
+=
HZ
/
10
;
timeout
+=
HZ
/
10
;
while
(((
status
=
ether1_inw
(
dev
,
SA_ADDR
,
sa_t
,
sa_status
,
DISABLEIRQS
))
&
STAT_COMPLETE
)
==
0
)
{
if
(
time_after
(
jiffies
,
i
))
if
(
time_after
(
jiffies
,
timeout
))
break
;
}
...
...
@@ -558,10 +559,10 @@ ether1_init_for_open (struct net_device *dev)
failures
+=
1
;
}
i
+=
HZ
/
10
;
timeout
+=
HZ
/
10
;
while
(((
status
=
ether1_inw
(
dev
,
MC_ADDR
,
mc_t
,
mc_status
,
DISABLEIRQS
))
&
STAT_COMPLETE
)
==
0
)
{
if
(
time_after
(
jiffies
,
i
))
if
(
time_after
(
jiffies
,
timeout
))
break
;
}
...
...
@@ -575,10 +576,10 @@ ether1_init_for_open (struct net_device *dev)
failures
+=
1
;
}
i
+=
HZ
;
timeout
+=
HZ
;
while
(((
status
=
ether1_inw
(
dev
,
TDR_ADDR
,
tdr_t
,
tdr_status
,
DISABLEIRQS
))
&
STAT_COMPLETE
)
==
0
)
{
if
(
time_after
(
jiffies
,
i
))
if
(
time_after
(
jiffies
,
timeout
))
break
;
}
...
...
drivers/
acorn/net
/ether1.h
→
drivers/
net/arm
/ether1.h
View file @
af7dbd5e
File moved
drivers/
acorn/net
/ether3.c
→
drivers/
net/arm
/ether3.c
View file @
af7dbd5e
File moved
drivers/
acorn/net
/ether3.h
→
drivers/
net/arm
/ether3.h
View file @
af7dbd5e
File moved
drivers/
acorn/net
/etherh.c
→
drivers/
net/arm
/etherh.c
View file @
af7dbd5e
...
...
@@ -51,7 +51,7 @@
#include <asm/io.h>
#include <asm/irq.h>
#include "../
../net/
8390.h"
#include "../8390.h"
#define NET_DEBUG 0
#define DEBUG_INIT 2
...
...
drivers/net/irda/sa1100_ir.c
View file @
af7dbd5e
...
...
@@ -636,13 +636,14 @@ static void sa1100_irda_fir_irq(struct net_device *dev)
sa1100_irda_rx_dma_start
(
si
);
}
static
void
sa1100_irda_irq
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
sa1100_irda_irq
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
struct
net_device
*
dev
=
dev_id
;
if
(
IS_FIR
(((
struct
sa1100_irda
*
)
dev
->
priv
)))
sa1100_irda_fir_irq
(
dev
);
else
sa1100_irda_hpsir_irq
(
dev
);
return
IRQ_HANDLED
;
}
/*
...
...
drivers/scsi/Kconfig
View file @
af7dbd5e
...
...
@@ -1602,7 +1602,7 @@ config SCSI_MAC53C94
whenever
you
want
).
If
you
want
to
compile
it
as
a
module
,
say
M
here
and
read
<
file
:
Documentation
/
modules
.
txt
>.
source
"drivers/
acorn/scsi
/Kconfig"
source
"drivers/
scsi/arm
/Kconfig"
config
JAZZ_ESP
bool
"MIPS JAZZ FAS216 SCSI support"
...
...
drivers/scsi/Makefile
View file @
af7dbd5e
...
...
@@ -114,7 +114,7 @@ obj-$(CONFIG_SCSI_CPQFCTS) += cpqfc.o
obj-$(CONFIG_SCSI_LASI700)
+=
lasi700.o 53c700.o
obj-$(CONFIG_SCSI_NSP32)
+=
nsp32.o
obj-$(CONFIG_AR
CH_ACORN)
+=
../acorn/scsi
/
obj-$(CONFIG_AR
M)
+=
arm
/
obj-$(CONFIG_CHR_DEV_ST)
+=
st.o
obj-$(CONFIG_CHR_DEV_OSST)
+=
osst.o
...
...
drivers/
acorn/scsi
/Kconfig
→
drivers/
scsi/arm
/Kconfig
View file @
af7dbd5e
File moved
drivers/
acorn/scsi
/Makefile
→
drivers/
scsi/arm
/Makefile
View file @
af7dbd5e
#
# Makefile for drivers/
acorn/scsi
# Makefile for drivers/
scsi/arm
#
acornscsi_mod-objs
:=
acornscsi.o acornscsi-io.o
...
...
drivers/
acorn/scsi
/acornscsi-io.S
→
drivers/
scsi/arm
/acornscsi-io.S
View file @
af7dbd5e
File moved
drivers/
acorn/scsi
/acornscsi.c
→
drivers/
scsi/arm
/acornscsi.c
View file @
af7dbd5e
...
...
@@ -149,8 +149,8 @@
#include <asm/irq.h>
#include <asm/ecard.h>
#include "../
../scsi/
scsi.h"
#include "../
../scsi/
hosts.h"
#include "../scsi.h"
#include "../hosts.h"
#include "acornscsi.h"
#include "msgqueue.h"
#include "scsi.h"
...
...
@@ -2931,6 +2931,35 @@ int acornscsi_proc_info(char *buffer, char **start, off_t offset,
}
}
p
+=
sprintf
(
p
,
"
\n
Attached devices:
\n
"
);
list_for_each_entry
(
scd
,
&
instance
->
my_devices
,
siblings
)
{
p
+=
sprintf
(
p
,
"Device/Lun TaggedQ Sync
\n
"
);
p
+=
sprintf
(
p
,
" %d/%d "
,
scd
->
id
,
scd
->
lun
);
if
(
scd
->
tagged_supported
)
p
+=
sprintf
(
p
,
"%3sabled(%3d) "
,
scd
->
tagged_queue
?
"en"
:
"dis"
,
scd
->
current_tag
);
else
p
+=
sprintf
(
p
,
"unsupported "
);
if
(
host
->
device
[
scd
->
id
].
sync_xfer
&
15
)
p
+=
sprintf
(
p
,
"offset %d, %d ns
\n
"
,
host
->
device
[
scd
->
id
].
sync_xfer
&
15
,
acornscsi_getperiod
(
host
->
device
[
scd
->
id
].
sync_xfer
));
else
p
+=
sprintf
(
p
,
"async
\n
"
);
pos
=
p
-
buffer
;
if
(
pos
+
begin
<
offset
)
{
begin
+=
pos
;
p
=
buffer
;
}
pos
=
p
-
buffer
;
if
(
pos
+
begin
>
offset
+
length
)
break
;
}
pos
=
p
-
buffer
;
*
start
=
buffer
+
(
offset
-
begin
);
...
...
drivers/
acorn/scsi
/acornscsi.h
→
drivers/
scsi/arm
/acornscsi.h
View file @
af7dbd5e
...
...
@@ -298,7 +298,6 @@ typedef struct acornscsi_hostdata {
unsigned
short
last_message
;
/* last message to be sent */
unsigned
char
disconnectable
:
1
;
/* this command can be disconnected */
unsigned
char
interrupt
:
1
;
/* interrupt active */
}
scsi
;
/* statistics information */
...
...
drivers/
acorn/scsi
/arxescsi.c
→
drivers/
scsi/arm
/arxescsi.c
View file @
af7dbd5e
...
...
@@ -29,14 +29,15 @@
#include <linux/stat.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/ecard.h>
#include "../
../scsi/
scsi.h"
#include "../
../scsi/
hosts.h"
#include "../scsi.h"
#include "../hosts.h"
#include "fas216.h"
struct
arxescsi_info
{
...
...
@@ -238,10 +239,10 @@ static int
arxescsi_proc_info
(
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
host_no
,
int
inout
)
{
int
pos
,
begin
;
struct
Scsi_Host
*
host
;
struct
arxescsi_info
*
info
;
Scsi_Device
*
scd
;
char
*
p
=
buffer
;
int
pos
;
host
=
scsi_host_hn_get
(
host_no
);
if
(
!
host
)
...
...
@@ -251,26 +252,13 @@ arxescsi_proc_info(char *buffer, char **start, off_t offset, int length,
if
(
inout
==
1
)
return
-
EINVAL
;
begin
=
0
;
p
os
=
sprintf
(
buffer
,
"ARXE 16-bit SCSI driver v%s
\n
"
,
VERSION
);
p
os
+=
fas216_print_host
(
&
info
->
info
,
buffer
+
pos
);
p
os
+=
fas216_print_stats
(
&
info
->
info
,
buffer
+
pos
);
p
+=
sprintf
(
p
,
"ARXE 16-bit SCSI driver v%s
\n
"
,
VERSION
)
;
p
+=
fas216_print_host
(
&
info
->
info
,
p
);
p
+=
fas216_print_stats
(
&
info
->
info
,
p
);
p
+=
fas216_print_devices
(
&
info
->
info
,
p
);
pos
+=
sprintf
(
buffer
+
pos
,
"
\n
Attached devices:
\n
"
);
list_for_each_entry
(
scd
,
&
host
->
my_devices
,
siblings
)
{
pos
+=
fas216_print_device
(
&
info
->
info
,
scd
,
buffer
+
pos
);
if
(
pos
+
begin
<
offset
)
{
begin
+=
pos
;
pos
=
0
;
}
if
(
pos
+
begin
>
offset
+
length
)
break
;
}
*
start
=
buffer
+
(
offset
-
begin
);
pos
-=
offset
-
begin
;
*
start
=
buffer
+
offset
;
pos
=
p
-
buffer
-
offset
;
if
(
pos
>
length
)
pos
=
length
;
...
...
drivers/
acorn/scsi
/cumana_1.c
→
drivers/
scsi/arm
/cumana_1.c
View file @
af7dbd5e
...
...
@@ -16,8 +16,8 @@
#include <asm/irq.h>
#include <asm/system.h>
#include "../
../scsi/
scsi.h"
#include "../
../scsi/
hosts.h"
#include "../scsi.h"
#include "../hosts.h"
#include <scsi/scsicam.h>
...
...
@@ -41,7 +41,7 @@ int NCR5380_proc_info(char *buffer, char **start, off_t offset,
#define BOARD_NORMAL 0
#define BOARD_NCR53C400 1
#include "../
../scsi/
NCR5380.h"
#include "../NCR5380.h"
void
cumanascsi_setup
(
char
*
str
,
int
*
ints
)
{
...
...
@@ -239,7 +239,7 @@ static void cumanascsi_write(struct Scsi_Host *instance, int reg, int value)
#undef CTRL
#include "../
../scsi/
NCR5380.c"
#include "../NCR5380.c"
static
Scsi_Host_Template
cumanascsi_template
=
{
.
module
=
THIS_MODULE
,
...
...
drivers/
acorn/scsi
/cumana_2.c
→
drivers/
scsi/arm
/cumana_2.c
View file @
af7dbd5e
...
...
@@ -34,8 +34,8 @@
#include <asm/irq.h>
#include <asm/pgtable.h>
#include "../
../scsi/
scsi.h"
#include "../
../scsi/
hosts.h"
#include "../scsi.h"
#include "../hosts.h"
#include "fas216.h"
#include "scsi.h"
...
...
@@ -356,10 +356,10 @@ cumanascsi_2_set_proc_info(struct Scsi_Host *host, char *buffer, int length)
int
cumanascsi_2_proc_info
(
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
host_no
,
int
inout
)
{
int
pos
,
begin
;
struct
Scsi_Host
*
host
;
struct
cumanascsi2_info
*
info
;
Scsi_Device
*
scd
;
char
*
p
=
buffer
;
int
pos
;
host
=
scsi_host_hn_get
(
host_no
);
if
(
!
host
)
...
...
@@ -370,18 +370,16 @@ int cumanascsi_2_proc_info (char *buffer, char **start, off_t offset,
info
=
(
struct
cumanascsi2_info
*
)
host
->
hostdata
;
begin
=
0
;
pos
=
sprintf
(
buffer
,
"Cumana SCSI II driver v%s
\n
"
,
VERSION
);
pos
+=
fas216_print_host
(
&
info
->
info
,
buffer
+
pos
);
pos
+=
sprintf
(
buffer
+
pos
,
"Term : o%s
\n
"
,
p
+=
sprintf
(
p
,
"Cumana SCSI II driver v%s
\n
"
,
VERSION
);
p
+=
fas216_print_host
(
&
info
->
info
,
p
);
p
+=
sprintf
(
p
,
"Term : o%s
\n
"
,
info
->
terms
?
"n"
:
"ff"
);
pos
+=
fas216_print_stats
(
&
info
->
info
,
buffer
+
pos
);
p
+=
fas216_print_stats
(
&
info
->
info
,
p
);
p
+=
fas216_print_devices
(
&
info
->
info
,
p
);
pos
+=
sprintf
(
buffer
+
pos
,
"
\n
Attached devices:
\n
"
);
*
start
=
buffer
+
(
offset
-
begin
);
pos
-=
offset
-
begin
;
*
start
=
buffer
+
offset
;
pos
=
p
-
buffer
-
offset
;
if
(
pos
>
length
)
pos
=
length
;
...
...
drivers/
acorn/scsi
/ecoscsi.c
→
drivers/
scsi/arm
/ecoscsi.c
View file @
af7dbd5e
...
...
@@ -52,8 +52,8 @@
#include <asm/io.h>
#include <asm/system.h>
#include "../
../scsi/
scsi.h"
#include "../
../scsi/
hosts.h"
#include "../scsi.h"
#include "../hosts.h"
#define NCR5380_implementation_fields int port, ctrl
#define NCR5380_local_declare() struct Scsi_Host *_instance
...
...
@@ -66,7 +66,7 @@
#define NCR5380_queue_command ecoscsi_queue_command
#define NCR5380_proc_info ecoscsi_proc_info
#include "../
../scsi/
NCR5380.h"
#include "../NCR5380.h"
#define ECOSCSI_PUBLIC_RELEASE 1
...
...
@@ -239,7 +239,7 @@ int NCR5380_proc_info(char *buffer, char **start, off_t offset,
#define BOARD_NORMAL 0
#define BOARD_NCR53C400 1
#include "../
../scsi/
NCR5380.c"
#include "../NCR5380.c"
static
Scsi_Host_Template
ecoscsi_template
=
{
.
module
=
THIS_MODULE
,
...
...
drivers/
acorn/scsi
/eesox.c
→
drivers/
scsi/arm
/eesox.c
View file @
af7dbd5e
...
...
@@ -40,8 +40,8 @@
#include <asm/ecard.h>
#include <asm/pgtable.h>
#include "../
../scsi/
scsi.h"
#include "../
../scsi/
hosts.h"
#include "../scsi.h"
#include "../hosts.h"
#include "fas216.h"
#include "scsi.h"
...
...
@@ -430,10 +430,10 @@ eesoxscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length)
int
eesoxscsi_proc_info
(
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
host_no
,
int
inout
)
{
int
pos
,
begin
;
struct
Scsi_Host
*
host
;
struct
eesoxscsi_info
*
info
;
Scsi_Device
*
scd
;
char
*
p
=
buffer
;
int
pos
;
host
=
scsi_host_hn_get
(
host_no
);
if
(
!
host
)
...
...
@@ -444,16 +444,15 @@ int eesoxscsi_proc_info(char *buffer, char **start, off_t offset,
info
=
(
struct
eesoxscsi_info
*
)
host
->
hostdata
;
begin
=
0
;
pos
=
sprintf
(
buffer
,
"EESOX SCSI driver v%s
\n
"
,
VERSION
);
pos
+=
fas216_print_host
(
&
info
->
info
,
buffer
+
pos
);
pos
+=
sprintf
(
buffer
+
pos
,
"Term : o%s
\n
"
,
p
+=
sprintf
(
p
,
"EESOX SCSI driver v%s
\n
"
,
VERSION
);
p
+=
fas216_print_host
(
&
info
->
info
,
p
);
p
+=
sprintf
(
p
,
"Term : o%s
\n
"
,
info
->
control
&
EESOX_TERM_ENABLE
?
"n"
:
"ff"
);
pos
+=
fas216_print_stats
(
&
info
->
info
,
buffer
+
pos
);
p
+=
fas216_print_stats
(
&
info
->
info
,
p
);
p
+=
fas216_print_devices
(
&
info
->
info
,
p
);
*
start
=
buffer
+
(
offset
-
begin
);
pos
-=
offset
-
begin
;
if
(
pos
>
length
)
pos
=
length
;
...
...
drivers/
acorn/scsi
/fas216.c
→
drivers/
scsi/arm
/fas216.c
View file @
af7dbd5e
This diff is collapsed.
Click to expand it.
drivers/
acorn/scsi
/fas216.h
→
drivers/
scsi/arm
/fas216.h
View file @
af7dbd5e
...
...
@@ -177,7 +177,6 @@ typedef enum {
PHASE_SELSTEPS
,
/* selection with command steps */
PHASE_COMMAND
,
/* command sent */
PHASE_MESSAGESENT
,
/* selected, and we're sending cmd */
PHASE_RECONNECTED
,
/* reconnected */
PHASE_DATAOUT
,
/* data out to device */
PHASE_DATAIN
,
/* data in from device */
PHASE_MSGIN
,
/* message in from device */
...
...
@@ -244,12 +243,6 @@ typedef struct {
const
char
*
type
;
/* chip type */
unsigned
int
irq
;
/* interrupt */
struct
{
unsigned
char
target
;
/* reconnected target */
unsigned
char
lun
;
/* reconnected lun */
unsigned
char
tag
;
/* reconnected tag */
}
reconnected
;
Scsi_Pointer
SCp
;
/* current commands data pointer */
MsgQueue_t
msgs
;
/* message queue for connected device */
...
...
@@ -368,7 +361,7 @@ extern void fas216_release (struct Scsi_Host *instance);
extern
int
fas216_print_host
(
FAS216_Info
*
info
,
char
*
buffer
);
extern
int
fas216_print_stats
(
FAS216_Info
*
info
,
char
*
buffer
);
extern
int
fas216_print_device
(
FAS216_Info
*
info
,
Scsi_Device
*
scd
,
char
*
buffer
);
extern
int
fas216_print_device
s
(
FAS216_Info
*
info
,
char
*
buffer
);
/* Function: int fas216_eh_abort(Scsi_Cmnd *SCpnt)
* Purpose : abort this command
...
...
drivers/
acorn/scsi
/msgqueue.c
→
drivers/
scsi/arm
/msgqueue.c
View file @
af7dbd5e
File moved
drivers/
acorn/scsi
/msgqueue.h
→
drivers/
scsi/arm
/msgqueue.h
View file @
af7dbd5e
File moved
drivers/
acorn/scsi
/oak.c
→
drivers/
scsi/arm
/oak.c
View file @
af7dbd5e
...
...
@@ -16,8 +16,8 @@
#include <asm/io.h>
#include <asm/system.h>
#include "../
../scsi/
scsi.h"
#include "../
../scsi/
hosts.h"
#include "../scsi.h"
#include "../hosts.h"
#define AUTOSENSE
/*#define PSEUDO_DMA*/
...
...
@@ -40,7 +40,7 @@ int NCR5380_proc_info(char *buffer, char **start, off_t offset,
#define BOARD_NORMAL 0
#define BOARD_NCR53C400 1
#include "../
../scsi/
NCR5380.h"
#include "../NCR5380.h"
#undef START_DMA_INITIATOR_RECEIVE_REG
#define START_DMA_INITIATOR_RECEIVE_REG (7 + 128)
...
...
@@ -112,7 +112,7 @@ printk("reading %p len %d\n", addr, len);
#undef STAT
#include "../
../scsi/
NCR5380.c"
#include "../NCR5380.c"
static
Scsi_Host_Template
oakscsi_template
=
{
.
module
=
THIS_MODULE
,
...
...
drivers/
acorn/scsi
/powertec.c
→
drivers/
scsi/arm
/powertec.c
View file @
af7dbd5e
...
...
@@ -25,8 +25,8 @@
#include <asm/irq.h>
#include <asm/pgtable.h>
#include "../
../scsi/
scsi.h"
#include "../
../scsi/
hosts.h"
#include "../scsi.h"
#include "../hosts.h"
#include "fas216.h"
#include "scsi.h"
...
...
@@ -242,10 +242,10 @@ powertecscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length)
int
powertecscsi_proc_info
(
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
host_no
,
int
inout
)
{
int
pos
,
begin
;
struct
Scsi_Host
*
host
;
struct
powertec_info
*
info
;
Scsi_Device
*
scd
;
char
*
p
=
buffer
;
int
pos
;
host
=
scsi_host_hn_get
(
host_no
);
if
(
!
host
)
...
...
@@ -256,29 +256,16 @@ int powertecscsi_proc_info(char *buffer, char **start, off_t offset,
info
=
(
struct
powertec_info
*
)
host
->
hostdata
;
begin
=
0
;
pos
=
sprintf
(
buffer
,
"PowerTec SCSI driver v%s
\n
"
,
VERSION
);
pos
+=
fas216_print_host
(
&
info
->
info
,
buffer
+
pos
);
pos
+=
sprintf
(
buffer
+
pos
,
"Term : o%s
\n
"
,
p
+=
sprintf
(
p
,
"PowerTec SCSI driver v%s
\n
"
,
VERSION
);
p
+=
fas216_print_host
(
&
info
->
info
,
p
);
p
+=
sprintf
(
p
,
"Term : o%s
\n
"
,
info
->
term_ctl
?
"n"
:
"ff"
);
pos
+=
fas216_print_stats
(
&
info
->
info
,
buffer
+
pos
);
p
+=
fas216_print_stats
(
&
info
->
info
,
p
);
p
+=
fas216_print_devices
(
&
info
->
info
,
p
);
pos
+=
sprintf
(
buffer
+
pos
,
"
\n
Attached devices:
\n
"
);
list_for_each_entry
(
scd
,
&
host
->
my_devices
,
siblings
)
{
pos
+=
fas216_print_device
(
&
info
->
info
,
scd
,
buffer
+
pos
);
if
(
pos
+
begin
<
offset
)
{
begin
+=
pos
;
pos
=
0
;
}
if
(
pos
+
begin
>
offset
+
length
)
break
;
}
*
start
=
buffer
+
(
offset
-
begin
);
pos
-=
offset
-
begin
;
*
start
=
buffer
+
offset
;
pos
=
p
-
buffer
-
offset
;
if
(
pos
>
length
)
pos
=
length
;
...
...
drivers/
acorn/scsi
/queue.c
→
drivers/
scsi/arm
/queue.c
View file @
af7dbd5e
...
...
@@ -23,7 +23,7 @@
#include <linux/list.h>
#include <linux/init.h>
#include "../
../scsi/
scsi.h"
#include "../scsi.h"
#define DEBUG
...
...
drivers/
acorn/scsi
/queue.h
→
drivers/
scsi/arm
/queue.h
View file @
af7dbd5e
File moved
drivers/
acorn/scsi
/scsi.h
→
drivers/
scsi/arm
/scsi.h
View file @
af7dbd5e
File moved
drivers/video/cyber2000fb.c
View file @
af7dbd5e
...
...
@@ -146,7 +146,7 @@ cyber2000_seqw(unsigned int reg, unsigned int val, struct cfb_info *cfb)
* Hardware Cyber2000 Acceleration
*/
static
void
cyber2000fb_fillrect
(
struct
fb_info
*
info
,
struct
fb_fillrect
*
rect
)
cyber2000fb_fillrect
(
struct
fb_info
*
info
,
const
struct
fb_fillrect
*
rect
)
{
struct
cfb_info
*
cfb
=
(
struct
cfb_info
*
)
info
;
unsigned
long
dst
,
col
;
...
...
@@ -178,7 +178,7 @@ cyber2000fb_fillrect(struct fb_info *info, struct fb_fillrect *rect)
}
static
void
cyber2000fb_copyarea
(
struct
fb_info
*
info
,
struct
fb_copyarea
*
region
)
cyber2000fb_copyarea
(
struct
fb_info
*
info
,
const
struct
fb_copyarea
*
region
)
{
struct
cfb_info
*
cfb
=
(
struct
cfb_info
*
)
info
;
unsigned
int
cmd
=
CO_CMD_L_PATTERN_FGCOL
;
...
...
@@ -189,24 +189,25 @@ cyber2000fb_copyarea(struct fb_info *info, struct fb_copyarea *region)
return
;
}
cyber2000fb_writeb
(
0
,
CO_REG_CONTROL
,
cfb
);
cyber2000fb_writew
(
region
->
width
-
1
,
CO_REG_PIXWIDTH
,
cfb
);
cyber2000fb_writew
(
region
->
height
-
1
,
CO_REG_PIXHEIGHT
,
cfb
);
src
=
region
->
sx
+
region
->
sy
*
cfb
->
fb
.
var
.
xres_virtual
;
dst
=
region
->
dx
+
region
->
dy
*
cfb
->
fb
.
var
.
xres_virtual
;
if
(
region
->
sx
<
region
->
dx
)
{
region
->
sx
+=
region
->
width
-
1
;
region
->
dx
+=
region
->
width
-
1
;
src
+=
region
->
width
-
1
;
dst
+=
region
->
width
-
1
;
cmd
|=
CO_CMD_L_INC_LEFT
;
}
if
(
region
->
sy
<
region
->
dy
)
{
region
->
sy
+=
region
->
height
-
1
;
region
->
dy
+=
region
->
height
-
1
;
src
+=
(
region
->
height
-
1
)
*
cfb
->
fb
.
var
.
xres_virtual
;
dst
+=
(
region
->
height
-
1
)
*
cfb
->
fb
.
var
.
xres_virtual
;
cmd
|=
CO_CMD_L_INC_UP
;
}
cyber2000fb_writeb
(
0
,
CO_REG_CONTROL
,
cfb
);
cyber2000fb_writew
(
region
->
width
-
1
,
CO_REG_PIXWIDTH
,
cfb
);
cyber2000fb_writew
(
region
->
height
-
1
,
CO_REG_PIXHEIGHT
,
cfb
);
src
=
region
->
sx
+
region
->
sy
*
cfb
->
fb
.
var
.
xres_virtual
;
dst
=
region
->
dx
+
region
->
dy
*
cfb
->
fb
.
var
.
xres_virtual
;
if
(
cfb
->
fb
.
var
.
bits_per_pixel
==
24
)
{
cyber2000fb_writeb
(
dst
,
CO_REG_X_PHASE
,
cfb
);
src
*=
3
;
...
...
@@ -221,9 +222,9 @@ cyber2000fb_copyarea(struct fb_info *info, struct fb_copyarea *region)
}
static
void
cyber2000fb_imageblit
(
struct
fb_info
*
info
,
struct
fb_image
*
image
)
cyber2000fb_imageblit
(
struct
fb_info
*
info
,
const
struct
fb_image
*
image
)
{
struct
cfb_info
*
cfb
=
(
struct
cfb_info
*
)
info
;
//
struct cfb_info *cfb = (struct cfb_info *)info;
// if (!(cfb->fb.var.accel_flags & FB_ACCELF_TEXT)) {
cfb_imageblit
(
info
,
image
);
...
...
@@ -754,7 +755,6 @@ cyber2000fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
var
->
blue
.
msb_right
=
0
;
switch
(
var
->
bits_per_pixel
)
{
#ifdef FBCON_HAS_CFB8
case
8
:
/* PSEUDOCOLOUR, 256 */
var
->
transp
.
offset
=
0
;
var
->
transp
.
length
=
0
;
...
...
@@ -765,8 +765,7 @@ cyber2000fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
var
->
blue
.
offset
=
0
;
var
->
blue
.
length
=
8
;
break
;
#endif
#ifdef FBCON_HAS_CFB16
case
16
:
/* DIRECTCOLOUR, 64k or 32k */
switch
(
var
->
green
.
length
)
{
case
6
:
/* RGB565, 64k */
...
...
@@ -804,8 +803,7 @@ cyber2000fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
break
;
}
break
;
#endif
#ifdef FBCON_HAS_CFB24
case
24
:
/* TRUECOLOUR, 16m */
var
->
transp
.
offset
=
0
;
var
->
transp
.
length
=
0
;
...
...
@@ -816,8 +814,7 @@ cyber2000fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
var
->
blue
.
offset
=
0
;
var
->
blue
.
length
=
8
;
break
;
#endif
#ifdef FBCON_HAS_CFB32
case
32
:
/* TRUECOLOUR, 16m */
var
->
transp
.
offset
=
24
;
var
->
transp
.
length
=
8
;
...
...
@@ -828,7 +825,7 @@ cyber2000fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
var
->
blue
.
offset
=
0
;
var
->
blue
.
length
=
8
;
break
;
#endif
default:
return
-
EINVAL
;
}
...
...
@@ -1601,15 +1598,17 @@ cyberpro_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
/*
* Use MCLK from BIOS. FIXME: what about hotplug?
*/
#ifndef __arm__
cfb
->
mclk_mult
=
cyber2000_grphr
(
EXT_MCLK_MULT
,
cfb
);
cfb
->
mclk_div
=
cyber2000_grphr
(
EXT_MCLK_DIV
,
cfb
);
#else
#ifdef __arm__
/*
* MCLK on the NetWinder and the Shark is fixed at 75MHz
*/
cfb
->
mclk_mult
=
0xdb
;
cfb
->
mclk_div
=
0x54
;
if
(
machine_is_netwinder
())
{
cfb
->
mclk_mult
=
0xdb
;
cfb
->
mclk_div
=
0x54
;
}
#endif
err
=
cyberpro_common_probe
(
cfb
);
...
...
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