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
60c16b9c
Commit
60c16b9c
authored
Feb 25, 2004
by
Stephen Hemminger
Committed by
David S. Miller
Feb 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IRDA]: Rename setup_dma to irda_setup_dma.
parent
b34243f6
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
32 deletions
+30
-32
drivers/net/irda/ali-ircc.c
drivers/net/irda/ali-ircc.c
+6
-6
drivers/net/irda/nsc-ircc.c
drivers/net/irda/nsc-ircc.c
+6
-6
drivers/net/irda/smsc-ircc2.c
drivers/net/irda/smsc-ircc2.c
+4
-4
drivers/net/irda/via-ircc.c
drivers/net/irda/via-ircc.c
+7
-7
drivers/net/irda/w83977af_ir.c
drivers/net/irda/w83977af_ir.c
+4
-4
include/net/irda/irda_device.h
include/net/irda/irda_device.h
+1
-1
net/irda/irda_device.c
net/irda/irda_device.c
+2
-1
net/irda/irsyms.c
net/irda/irsyms.c
+0
-3
No files found.
drivers/net/irda/ali-ircc.c
View file @
60c16b9c
...
...
@@ -1573,10 +1573,10 @@ static void ali_ircc_dma_xmit(struct ali_ircc_cb *self)
self
->
io
.
direction
=
IO_XMIT
;
setup_dma
(
self
->
io
.
dma
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
start
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
len
,
DMA_TX_MODE
);
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
start
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
len
,
DMA_TX_MODE
);
/* Reset Tx FIFO */
switch_bank
(
iobase
,
BANK0
);
...
...
@@ -1726,8 +1726,8 @@ static int ali_ircc_dma_receive(struct ali_ircc_cb *self)
self
->
st_fifo
.
len
=
self
->
st_fifo
.
pending_bytes
=
0
;
self
->
st_fifo
.
tail
=
self
->
st_fifo
.
head
=
0
;
setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
DMA_RX_MODE
);
irda_setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
DMA_RX_MODE
);
/* Set Receive Mode,Brick Wall */
//switch_bank(iobase, BANK0);
...
...
drivers/net/irda/nsc-ircc.c
View file @
60c16b9c
...
...
@@ -1410,10 +1410,10 @@ static void nsc_ircc_dma_xmit(struct nsc_ircc_cb *self, int iobase)
switch_bank
(
iobase
,
BANK2
);
outb
(
ECR1_DMASWP
|
ECR1_DMANF
|
ECR1_EXT_SL
,
iobase
+
ECR1
);
setup_dma
(
self
->
io
.
dma
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
start
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
len
,
DMA_TX_MODE
);
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
start
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
len
,
DMA_TX_MODE
);
/* Enable DMA and SIR interaction pulse */
switch_bank
(
iobase
,
BANK0
);
...
...
@@ -1568,8 +1568,8 @@ static int nsc_ircc_dma_receive(struct nsc_ircc_cb *self)
self
->
st_fifo
.
len
=
self
->
st_fifo
.
pending_bytes
=
0
;
self
->
st_fifo
.
tail
=
self
->
st_fifo
.
head
=
0
;
setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
DMA_RX_MODE
);
irda_setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
DMA_RX_MODE
);
/* Enable DMA */
switch_bank
(
iobase
,
BANK0
);
...
...
drivers/net/irda/smsc-ircc2.c
View file @
60c16b9c
...
...
@@ -1161,8 +1161,8 @@ static void smsc_ircc_dma_xmit(struct smsc_ircc_cb *self, int iobase, int bofs)
IRCC_CFGB_DMA_BURST
,
iobase
+
IRCC_SCE_CFGB
);
/* Setup DMA controller (must be done after enabling chip DMA) */
setup_dma
(
self
->
io
.
dma
,
self
->
tx_buff
.
data
,
self
->
tx_buff
.
len
,
DMA_TX_MODE
);
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
tx_buff
.
data
,
self
->
tx_buff
.
len
,
DMA_TX_MODE
);
/* Enable interrupt */
...
...
@@ -1251,8 +1251,8 @@ static int smsc_ircc_dma_receive(struct smsc_ircc_cb *self, int iobase)
outb
(
2050
&
0xff
,
iobase
+
IRCC_RX_SIZE_LO
);
/* Setup DMA controller */
setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
DMA_RX_MODE
);
irda_setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
DMA_RX_MODE
);
/* Enable burst mode chip Rx DMA */
register_bank
(
iobase
,
1
);
...
...
drivers/net/irda/via-ircc.c
View file @
60c16b9c
...
...
@@ -819,8 +819,8 @@ static int via_ircc_hard_xmit_sir(struct sk_buff *skb,
EnTXDMA
(
iobase
,
ON
);
EnRXDMA
(
iobase
,
OFF
);
setup_dma
(
self
->
io
.
dma
,
self
->
tx_buff
.
data
,
self
->
tx_buff
.
len
,
DMA_TX_MODE
);
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
tx_buff
.
data
,
self
->
tx_buff
.
len
,
DMA_TX_MODE
);
SetSendByte
(
iobase
,
self
->
tx_buff
.
len
);
RXStart
(
iobase
,
OFF
);
...
...
@@ -899,9 +899,9 @@ static int via_ircc_dma_xmit(struct via_ircc_cb *self, u16 iobase)
EnAllInt
(
iobase
,
ON
);
EnTXDMA
(
iobase
,
ON
);
EnRXDMA
(
iobase
,
OFF
);
setup_dma
(
self
->
io
.
dma
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
start
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
len
,
DMA_TX_MODE
);
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
start
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
len
,
DMA_TX_MODE
);
#ifdef DBGMSG
DBG
(
printk
(
KERN_INFO
"dma_xmit:tx_fifo.ptr=%x,len=%x,tx_fifo.len=%x..
\n
"
,
...
...
@@ -1025,8 +1025,8 @@ static int via_ircc_dma_receive(struct via_ircc_cb *self)
EnAllInt
(
iobase
,
ON
);
EnTXDMA
(
iobase
,
OFF
);
EnRXDMA
(
iobase
,
ON
);
setup_dma
(
self
->
io
.
dma2
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
DMA_RX_MODE
);
irda_
setup_dma
(
self
->
io
.
dma2
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
DMA_RX_MODE
);
TXStart
(
iobase
,
OFF
);
RXStart
(
iobase
,
ON
);
...
...
drivers/net/irda/w83977af_ir.c
View file @
60c16b9c
...
...
@@ -611,8 +611,8 @@ static void w83977af_dma_write(struct w83977af_ir *self, int iobase)
set_dma_addr
(
self
->
io
.
dma
,
isa_virt_to_bus
(
self
->
tx_buff
.
data
));
set_dma_count
(
self
->
io
.
dma
,
self
->
tx_buff
.
len
);
#else
setup_dma
(
self
->
io
.
dma
,
self
->
tx_buff
.
data
,
self
->
tx_buff
.
len
,
DMA_MODE_WRITE
);
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
tx_buff
.
data
,
self
->
tx_buff
.
len
,
DMA_MODE_WRITE
);
#endif
self
->
io
.
direction
=
IO_XMIT
;
...
...
@@ -768,8 +768,8 @@ int w83977af_dma_receive(struct w83977af_ir *self)
set_dma_addr
(
self
->
io
.
dma
,
isa_virt_to_bus
(
self
->
rx_buff
.
data
));
set_dma_count
(
self
->
io
.
dma
,
self
->
rx_buff
.
truesize
);
#else
setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
DMA_MODE_READ
);
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
DMA_MODE_READ
);
#endif
/*
* Reset Rx FIFO. This will also flush the ST_FIFO, it's very
...
...
include/net/irda/irda_device.h
View file @
60c16b9c
...
...
@@ -233,7 +233,7 @@ dongle_t *irda_device_dongle_init(struct net_device *dev, int type);
int
irda_device_dongle_cleanup
(
dongle_t
*
dongle
);
#ifdef CONFIG_ISA
void
setup_dma
(
int
channel
,
char
*
buffer
,
int
count
,
int
mode
);
void
irda_
setup_dma
(
int
channel
,
char
*
buffer
,
int
count
,
int
mode
);
#endif
void
irda_task_delete
(
struct
irda_task
*
task
);
...
...
net/irda/irda_device.c
View file @
60c16b9c
...
...
@@ -557,7 +557,7 @@ int irda_device_set_mode(struct net_device* dev, int mode)
* Setup the DMA channel. Commonly used by ISA FIR drivers
*
*/
void
setup_dma
(
int
channel
,
char
*
buffer
,
int
count
,
int
mode
)
void
irda_
setup_dma
(
int
channel
,
char
*
buffer
,
int
count
,
int
mode
)
{
unsigned
long
flags
;
...
...
@@ -572,4 +572,5 @@ void setup_dma(int channel, char *buffer, int count, int mode)
release_dma_lock
(
flags
);
}
EXPORT_SYMBOL
(
irda_setup_dma
);
#endif
net/irda/irsyms.c
View file @
60c16b9c
...
...
@@ -168,9 +168,6 @@ EXPORT_SYMBOL(async_unwrap_char);
EXPORT_SYMBOL
(
irda_calc_crc16
);
EXPORT_SYMBOL
(
irda_crc16_table
);
EXPORT_SYMBOL
(
irda_start_timer
);
#ifdef CONFIG_ISA
EXPORT_SYMBOL
(
setup_dma
);
#endif
EXPORT_SYMBOL
(
infrared_mode
);
#ifdef CONFIG_IRTTY
...
...
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