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
cd2169fb
Commit
cd2169fb
authored
Jan 29, 2009
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solos: Remove unused loopback debug stuff
Signed-off-by:
David Woodhouse
<
David.Woodhouse@intel.com
>
parent
f69e4170
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
drivers/atm/solos-pci.c
drivers/atm/solos-pci.c
+0
-23
No files found.
drivers/atm/solos-pci.c
View file @
cd2169fb
...
...
@@ -70,7 +70,6 @@
#define RX_DMA_SIZE 2048
static
int
debug
=
0
;
static
int
atmdebug
=
0
;
static
int
firmware_upgrade
=
0
;
static
int
fpga_upgrade
=
0
;
...
...
@@ -133,11 +132,9 @@ MODULE_AUTHOR("Traverse Technologies <support@traverse.com.au>");
MODULE_DESCRIPTION
(
"Solos PCI driver"
);
MODULE_VERSION
(
VERSION
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM_DESC
(
debug
,
"Enable Loopback"
);
MODULE_PARM_DESC
(
atmdebug
,
"Print ATM data"
);
MODULE_PARM_DESC
(
firmware_upgrade
,
"Initiate Solos firmware upgrade"
);
MODULE_PARM_DESC
(
fpga_upgrade
,
"Initiate FPGA upgrade"
);
module_param
(
debug
,
int
,
0444
);
module_param
(
atmdebug
,
int
,
0644
);
module_param
(
firmware_upgrade
,
int
,
0444
);
module_param
(
fpga_upgrade
,
int
,
0444
);
...
...
@@ -974,26 +971,12 @@ static int fpga_tx(struct solos_card *card)
static
int
psend
(
struct
atm_vcc
*
vcc
,
struct
sk_buff
*
skb
)
{
struct
solos_card
*
card
=
vcc
->
dev
->
dev_data
;
struct
sk_buff
*
skb2
=
NULL
;
struct
pkt_hdr
*
header
;
int
pktlen
;
//dev_dbg(&card->dev->dev, "psend called.\n");
//dev_dbg(&card->dev->dev, "dev,vpi,vci = %d,%d,%d\n",SOLOS_CHAN(vcc->dev),vcc->vpi,vcc->vci);
if
(
debug
)
{
skb2
=
atm_alloc_charge
(
vcc
,
skb
->
len
,
GFP_ATOMIC
);
if
(
skb2
)
{
memcpy
(
skb2
->
data
,
skb
->
data
,
skb
->
len
);
skb_put
(
skb2
,
skb
->
len
);
vcc
->
push
(
vcc
,
skb2
);
atomic_inc
(
&
vcc
->
stats
->
rx
);
}
atomic_inc
(
&
vcc
->
stats
->
tx
);
solos_pop
(
vcc
,
skb
);
return
0
;
}
pktlen
=
skb
->
len
;
if
(
pktlen
>
(
BUF_SIZE
-
sizeof
(
*
header
)))
{
dev_warn
(
&
card
->
dev
->
dev
,
"Length of PDU is too large. Dropping PDU.
\n
"
);
...
...
@@ -1052,9 +1035,6 @@ static int fpga_probe(struct pci_dev *dev, const struct pci_device_id *id)
uint32_t
data32
;
struct
solos_card
*
card
;
if
(
debug
)
return
0
;
card
=
kzalloc
(
sizeof
(
*
card
),
GFP_KERNEL
);
if
(
!
card
)
return
-
ENOMEM
;
...
...
@@ -1256,9 +1236,6 @@ static void fpga_remove(struct pci_dev *dev)
{
struct
solos_card
*
card
=
pci_get_drvdata
(
dev
);
if
(
debug
)
return
;
atm_remove
(
card
);
dev_vdbg
(
&
dev
->
dev
,
"Freeing IRQ
\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