Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135329
b: refs/heads/master
c: cd2169f
h: refs/heads/master
i:
  135327: cb7d685
v: v3
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jan 29, 2009
1 parent 101080a commit bd124f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f69e417033af84316c3ed7cafabd388b3ae85952
refs/heads/master: cd2169fbfb39e6fc2fb9055ed2eedaa68f53c734
23 changes: 0 additions & 23 deletions trunk/drivers/atm/solos-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit bd124f8

Please sign in to comment.