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
6d23b118
Commit
6d23b118
authored
Oct 27, 2002
by
Alan Cox
Committed by
Linus Torvalds
Oct 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] drag ATM into the 21st century , part 1
parent
6321043b
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
284 additions
and
218 deletions
+284
-218
drivers/atm/Makefile
drivers/atm/Makefile
+1
-1
drivers/atm/iphase.c
drivers/atm/iphase.c
+266
-208
drivers/atm/iphase.h
drivers/atm/iphase.h
+12
-3
drivers/atm/lanai.c
drivers/atm/lanai.c
+1
-2
drivers/atm/zatm.c
drivers/atm/zatm.c
+4
-4
No files found.
drivers/atm/Makefile
View file @
6d23b118
...
...
@@ -40,7 +40,7 @@ ifeq ($(CONFIG_ATM_FORE200E_PCA),y)
fore_200e-objs
+=
fore200e_pca_fw.o
# guess the target endianess to choose the right PCA-200E firmware image
ifeq
($(CONFIG_ATM_FORE200E_PCA_DEFAULT_FW),y)
CONFIG_ATM_FORE200E_PCA_FW
=
$(
shell
if
test
-n
"
`
$(CC)
-E
-dM
$(src)
/../../include/asm/byteorder.h |
grep
' __LITTLE_ENDIAN '
`
"
;
then
echo
pca200e.bin
;
else
echo
pca200e_ecd.bin2
;
fi
)
CONFIG_ATM_FORE200E_PCA_FW
=
$(
shell
if
test
-n
"
`
$(CC)
-E
-dM
$(src)
/../../include/asm/byteorder.h |
grep
' __LITTLE_ENDIAN '
`
"
;
then
echo
$(obj)
/pca200e.bin
;
else
echo
$(obj)
/
pca200e_ecd.bin2
;
fi
)
endif
endif
...
...
drivers/atm/iphase.c
View file @
6d23b118
This diff is collapsed.
Click to expand it.
drivers/atm/iphase.h
View file @
6d23b118
...
...
@@ -201,6 +201,12 @@ struct cpcs_trailer
u_int
crc32
;
};
struct
cpcs_trailer_desc
{
struct
cpcs_trailer
*
cpcs
;
dma_addr_t
dma_addr
;
};
struct
ia_vcc
{
int
rxing
;
...
...
@@ -272,6 +278,7 @@ struct ext_vc
#define DLE_ENTRIES 256
#define DMA_INT_ENABLE 0x0002
/* use for both Tx and Rx */
#define TX_DLE_PSI 0x0001
#define DLE_TOTAL_SIZE (sizeof(struct dle)*DLE_ENTRIES)
/* Descriptor List Entries (DLE) */
struct
dle
...
...
@@ -1017,7 +1024,7 @@ typedef struct iadev_t {
struct
wait_queue
*
close_wait
;
struct
wait_queue
*
timeout_wait
;
#endif
caddr_t
*
tx_buf
;
struct
cpcs_trailer_desc
*
tx_buf
;
u16
num_tx_desc
,
tx_buf_sz
,
rate_limit
;
u32
tx_cell_cnt
,
tx_pkt_cnt
;
u32
MAIN_VC_TABLE_ADDR
,
EXT_VC_TABLE_ADDR
,
ABR_SCHED_TABLE_ADDR
;
...
...
@@ -1063,6 +1070,8 @@ typedef struct iadev_t {
struct
desc_tbl_t
*
desc_tbl
;
u_short
host_tcq_wr
;
struct
testTable_t
**
testTable
;
dma_addr_t
tx_dle_dma
;
dma_addr_t
rx_dle_dma
;
}
IADEV
;
...
...
drivers/atm/lanai.c
View file @
6d23b118
...
...
@@ -2108,8 +2108,7 @@ static inline int __init lanai_pci_start(struct lanai_dev *lanai)
}
result
=
pci_read_config_word
(
pci
,
PCI_SUBSYSTEM_ID
,
&
w
);
if
(
result
!=
PCIBIOS_SUCCESSFUL
)
{
printk
(
KERN_ERR
DEV_LABEL
"(itf %d): can't read ""
PCI_SUBSYSTEM_ID: %d
\n
"
,
lanai
->
number
,
result
);
printk
(
KERN_ERR
DEV_LABEL
"(itf %d): can't read PCI_SUBSYSTEM_ID: %d
\n
"
,
lanai
->
number
,
result
);
return
-
EINVAL
;
}
if
((
result
=
check_board_id_and_rev
(
"PCI"
,
w
,
NULL
))
!=
0
)
...
...
drivers/atm/zatm.c
View file @
6d23b118
...
...
@@ -1260,13 +1260,13 @@ static void zatm_int(int irq,void *dev_id,struct pt_regs *regs)
/* don't handle RD */
if
(
reason
&
uPD98401_INT_SPE
)
printk
(
KERN_ALERT
DEV_LABEL
"(itf %d): system parity "
"error at 0x%08x
\n
"
,
dev
->
number
,
zin
(
ADDR
));
"error at 0x%08
l
x
\n
"
,
dev
->
number
,
zin
(
ADDR
));
if
(
reason
&
uPD98401_INT_CPE
)
printk
(
KERN_ALERT
DEV_LABEL
"(itf %d): control memory "
"parity error at 0x%08x
\n
"
,
dev
->
number
,
zin
(
ADDR
));
"parity error at 0x%08
l
x
\n
"
,
dev
->
number
,
zin
(
ADDR
));
if
(
reason
&
uPD98401_INT_SBE
)
{
printk
(
KERN_ALERT
DEV_LABEL
"(itf %d): system bus "
"error at 0x%08x
\n
"
,
dev
->
number
,
zin
(
ADDR
));
"error at 0x%08
l
x
\n
"
,
dev
->
number
,
zin
(
ADDR
));
event_dump
();
}
/* don't handle IND */
...
...
@@ -1448,7 +1448,7 @@ static int __init zatm_init(struct atm_dev *dev)
}
while
(
t0
>
t1
||
t1
>
t2
);
/* loop if wrapping ... */
zatm_dev
->
khz
=
t2
-
2
*
t1
+
t0
;
printk
(
KERN_NOTICE
DEV_LABEL
"(itf %d): uPD98401 %
d.%
d at %d.%03d "
printk
(
KERN_NOTICE
DEV_LABEL
"(itf %d): uPD98401 %
ld.%l
d at %d.%03d "
"MHz
\n
"
,
dev
->
number
,
(
zin
(
VER
)
&
uPD98401_MAJOR
)
>>
uPD98401_MAJOR_SHIFT
,
zin
(
VER
)
&
uPD98401_MINOR
,
zatm_dev
->
khz
/
1000
,
zatm_dev
->
khz
%
1000
);
...
...
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