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
Show 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,7 +1573,7 @@ static void ali_ircc_dma_xmit(struct ali_ircc_cb *self)
...
@@ -1573,7 +1573,7 @@ static void ali_ircc_dma_xmit(struct ali_ircc_cb *self)
self
->
io
.
direction
=
IO_XMIT
;
self
->
io
.
direction
=
IO_XMIT
;
setup_dma
(
self
->
io
.
dma
,
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
start
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
start
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
len
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
len
,
DMA_TX_MODE
);
DMA_TX_MODE
);
...
@@ -1726,8 +1726,8 @@ static int ali_ircc_dma_receive(struct ali_ircc_cb *self)
...
@@ -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
.
len
=
self
->
st_fifo
.
pending_bytes
=
0
;
self
->
st_fifo
.
tail
=
self
->
st_fifo
.
head
=
0
;
self
->
st_fifo
.
tail
=
self
->
st_fifo
.
head
=
0
;
setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
irda_setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
DMA_RX_MODE
);
self
->
rx_buff
.
truesize
,
DMA_RX_MODE
);
/* Set Receive Mode,Brick Wall */
/* Set Receive Mode,Brick Wall */
//switch_bank(iobase, BANK0);
//switch_bank(iobase, BANK0);
...
...
drivers/net/irda/nsc-ircc.c
View file @
60c16b9c
...
@@ -1410,7 +1410,7 @@ static void nsc_ircc_dma_xmit(struct nsc_ircc_cb *self, int iobase)
...
@@ -1410,7 +1410,7 @@ static void nsc_ircc_dma_xmit(struct nsc_ircc_cb *self, int iobase)
switch_bank
(
iobase
,
BANK2
);
switch_bank
(
iobase
,
BANK2
);
outb
(
ECR1_DMASWP
|
ECR1_DMANF
|
ECR1_EXT_SL
,
iobase
+
ECR1
);
outb
(
ECR1_DMASWP
|
ECR1_DMANF
|
ECR1_EXT_SL
,
iobase
+
ECR1
);
setup_dma
(
self
->
io
.
dma
,
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
start
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
start
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
len
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
len
,
DMA_TX_MODE
);
DMA_TX_MODE
);
...
@@ -1568,8 +1568,8 @@ static int nsc_ircc_dma_receive(struct nsc_ircc_cb *self)
...
@@ -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
.
len
=
self
->
st_fifo
.
pending_bytes
=
0
;
self
->
st_fifo
.
tail
=
self
->
st_fifo
.
head
=
0
;
self
->
st_fifo
.
tail
=
self
->
st_fifo
.
head
=
0
;
setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
irda_setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
DMA_RX_MODE
);
self
->
rx_buff
.
truesize
,
DMA_RX_MODE
);
/* Enable DMA */
/* Enable DMA */
switch_bank
(
iobase
,
BANK0
);
switch_bank
(
iobase
,
BANK0
);
...
...
drivers/net/irda/smsc-ircc2.c
View file @
60c16b9c
...
@@ -1161,7 +1161,7 @@ static void smsc_ircc_dma_xmit(struct smsc_ircc_cb *self, int iobase, int bofs)
...
@@ -1161,7 +1161,7 @@ static void smsc_ircc_dma_xmit(struct smsc_ircc_cb *self, int iobase, int bofs)
IRCC_CFGB_DMA_BURST
,
iobase
+
IRCC_SCE_CFGB
);
IRCC_CFGB_DMA_BURST
,
iobase
+
IRCC_SCE_CFGB
);
/* Setup DMA controller (must be done after enabling chip DMA) */
/* Setup DMA controller (must be done after enabling chip DMA) */
setup_dma
(
self
->
io
.
dma
,
self
->
tx_buff
.
data
,
self
->
tx_buff
.
len
,
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
tx_buff
.
data
,
self
->
tx_buff
.
len
,
DMA_TX_MODE
);
DMA_TX_MODE
);
/* Enable interrupt */
/* Enable interrupt */
...
@@ -1251,8 +1251,8 @@ static int smsc_ircc_dma_receive(struct smsc_ircc_cb *self, int iobase)
...
@@ -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
);
outb
(
2050
&
0xff
,
iobase
+
IRCC_RX_SIZE_LO
);
/* Setup DMA controller */
/* Setup DMA controller */
setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
irda_setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
DMA_RX_MODE
);
self
->
rx_buff
.
truesize
,
DMA_RX_MODE
);
/* Enable burst mode chip Rx DMA */
/* Enable burst mode chip Rx DMA */
register_bank
(
iobase
,
1
);
register_bank
(
iobase
,
1
);
...
...
drivers/net/irda/via-ircc.c
View file @
60c16b9c
...
@@ -819,7 +819,7 @@ static int via_ircc_hard_xmit_sir(struct sk_buff *skb,
...
@@ -819,7 +819,7 @@ static int via_ircc_hard_xmit_sir(struct sk_buff *skb,
EnTXDMA
(
iobase
,
ON
);
EnTXDMA
(
iobase
,
ON
);
EnRXDMA
(
iobase
,
OFF
);
EnRXDMA
(
iobase
,
OFF
);
setup_dma
(
self
->
io
.
dma
,
self
->
tx_buff
.
data
,
self
->
tx_buff
.
len
,
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
tx_buff
.
data
,
self
->
tx_buff
.
len
,
DMA_TX_MODE
);
DMA_TX_MODE
);
SetSendByte
(
iobase
,
self
->
tx_buff
.
len
);
SetSendByte
(
iobase
,
self
->
tx_buff
.
len
);
...
@@ -899,7 +899,7 @@ static int via_ircc_dma_xmit(struct via_ircc_cb *self, u16 iobase)
...
@@ -899,7 +899,7 @@ static int via_ircc_dma_xmit(struct via_ircc_cb *self, u16 iobase)
EnAllInt
(
iobase
,
ON
);
EnAllInt
(
iobase
,
ON
);
EnTXDMA
(
iobase
,
ON
);
EnTXDMA
(
iobase
,
ON
);
EnRXDMA
(
iobase
,
OFF
);
EnRXDMA
(
iobase
,
OFF
);
setup_dma
(
self
->
io
.
dma
,
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
start
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
start
,
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
len
,
DMA_TX_MODE
);
self
->
tx_fifo
.
queue
[
self
->
tx_fifo
.
ptr
].
len
,
DMA_TX_MODE
);
#ifdef DBGMSG
#ifdef DBGMSG
...
@@ -1025,7 +1025,7 @@ static int via_ircc_dma_receive(struct via_ircc_cb *self)
...
@@ -1025,7 +1025,7 @@ static int via_ircc_dma_receive(struct via_ircc_cb *self)
EnAllInt
(
iobase
,
ON
);
EnAllInt
(
iobase
,
ON
);
EnTXDMA
(
iobase
,
OFF
);
EnTXDMA
(
iobase
,
OFF
);
EnRXDMA
(
iobase
,
ON
);
EnRXDMA
(
iobase
,
ON
);
setup_dma
(
self
->
io
.
dma2
,
self
->
rx_buff
.
data
,
irda_
setup_dma
(
self
->
io
.
dma2
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
DMA_RX_MODE
);
self
->
rx_buff
.
truesize
,
DMA_RX_MODE
);
TXStart
(
iobase
,
OFF
);
TXStart
(
iobase
,
OFF
);
RXStart
(
iobase
,
ON
);
RXStart
(
iobase
,
ON
);
...
...
drivers/net/irda/w83977af_ir.c
View file @
60c16b9c
...
@@ -611,7 +611,7 @@ static void w83977af_dma_write(struct w83977af_ir *self, int iobase)
...
@@ -611,7 +611,7 @@ 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_addr
(
self
->
io
.
dma
,
isa_virt_to_bus
(
self
->
tx_buff
.
data
));
set_dma_count
(
self
->
io
.
dma
,
self
->
tx_buff
.
len
);
set_dma_count
(
self
->
io
.
dma
,
self
->
tx_buff
.
len
);
#else
#else
setup_dma
(
self
->
io
.
dma
,
self
->
tx_buff
.
data
,
self
->
tx_buff
.
len
,
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
tx_buff
.
data
,
self
->
tx_buff
.
len
,
DMA_MODE_WRITE
);
DMA_MODE_WRITE
);
#endif
#endif
self
->
io
.
direction
=
IO_XMIT
;
self
->
io
.
direction
=
IO_XMIT
;
...
@@ -768,7 +768,7 @@ int w83977af_dma_receive(struct w83977af_ir *self)
...
@@ -768,7 +768,7 @@ int w83977af_dma_receive(struct w83977af_ir *self)
set_dma_addr
(
self
->
io
.
dma
,
isa_virt_to_bus
(
self
->
rx_buff
.
data
));
set_dma_addr
(
self
->
io
.
dma
,
isa_virt_to_bus
(
self
->
rx_buff
.
data
));
set_dma_count
(
self
->
io
.
dma
,
self
->
rx_buff
.
truesize
);
set_dma_count
(
self
->
io
.
dma
,
self
->
rx_buff
.
truesize
);
#else
#else
setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
irda_
setup_dma
(
self
->
io
.
dma
,
self
->
rx_buff
.
data
,
self
->
rx_buff
.
truesize
,
DMA_MODE_READ
);
DMA_MODE_READ
);
#endif
#endif
/*
/*
...
...
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);
...
@@ -233,7 +233,7 @@ dongle_t *irda_device_dongle_init(struct net_device *dev, int type);
int
irda_device_dongle_cleanup
(
dongle_t
*
dongle
);
int
irda_device_dongle_cleanup
(
dongle_t
*
dongle
);
#ifdef CONFIG_ISA
#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
#endif
void
irda_task_delete
(
struct
irda_task
*
task
);
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)
...
@@ -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
* 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
;
unsigned
long
flags
;
...
@@ -572,4 +572,5 @@ void setup_dma(int channel, char *buffer, int count, int mode)
...
@@ -572,4 +572,5 @@ void setup_dma(int channel, char *buffer, int count, int mode)
release_dma_lock
(
flags
);
release_dma_lock
(
flags
);
}
}
EXPORT_SYMBOL
(
irda_setup_dma
);
#endif
#endif
net/irda/irsyms.c
View file @
60c16b9c
...
@@ -168,9 +168,6 @@ EXPORT_SYMBOL(async_unwrap_char);
...
@@ -168,9 +168,6 @@ EXPORT_SYMBOL(async_unwrap_char);
EXPORT_SYMBOL
(
irda_calc_crc16
);
EXPORT_SYMBOL
(
irda_calc_crc16
);
EXPORT_SYMBOL
(
irda_crc16_table
);
EXPORT_SYMBOL
(
irda_crc16_table
);
EXPORT_SYMBOL
(
irda_start_timer
);
EXPORT_SYMBOL
(
irda_start_timer
);
#ifdef CONFIG_ISA
EXPORT_SYMBOL
(
setup_dma
);
#endif
EXPORT_SYMBOL
(
infrared_mode
);
EXPORT_SYMBOL
(
infrared_mode
);
#ifdef CONFIG_IRTTY
#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