aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/atm/he.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/atm/he.c')
-rw-r--r--drivers/atm/he.c36
1 files changed, 13 insertions, 23 deletions
diff --git a/drivers/atm/he.c b/drivers/atm/he.c
index b182c2f7d777..72b6960fa95f 100644
--- a/drivers/atm/he.c
+++ b/drivers/atm/he.c
@@ -349,8 +349,8 @@ __find_vcc(struct he_dev *he_dev, unsigned cid)
349 return NULL; 349 return NULL;
350} 350}
351 351
352static int __devinit 352static int he_init_one(struct pci_dev *pci_dev,
353he_init_one(struct pci_dev *pci_dev, const struct pci_device_id *pci_ent) 353 const struct pci_device_id *pci_ent)
354{ 354{
355 struct atm_dev *atm_dev = NULL; 355 struct atm_dev *atm_dev = NULL;
356 struct he_dev *he_dev = NULL; 356 struct he_dev *he_dev = NULL;
@@ -406,8 +406,7 @@ init_one_failure:
406 return err; 406 return err;
407} 407}
408 408
409static void __devexit 409static void he_remove_one(struct pci_dev *pci_dev)
410he_remove_one (struct pci_dev *pci_dev)
411{ 410{
412 struct atm_dev *atm_dev; 411 struct atm_dev *atm_dev;
413 struct he_dev *he_dev; 412 struct he_dev *he_dev;
@@ -445,8 +444,7 @@ rate_to_atmf(unsigned rate) /* cps to atm forum format */
445 return (NONZERO | (exp << 9) | (rate & 0x1ff)); 444 return (NONZERO | (exp << 9) | (rate & 0x1ff));
446} 445}
447 446
448static void __devinit 447static void he_init_rx_lbfp0(struct he_dev *he_dev)
449he_init_rx_lbfp0(struct he_dev *he_dev)
450{ 448{
451 unsigned i, lbm_offset, lbufd_index, lbuf_addr, lbuf_count; 449 unsigned i, lbm_offset, lbufd_index, lbuf_addr, lbuf_count;
452 unsigned lbufs_per_row = he_dev->cells_per_row / he_dev->cells_per_lbuf; 450 unsigned lbufs_per_row = he_dev->cells_per_row / he_dev->cells_per_lbuf;
@@ -476,8 +474,7 @@ he_init_rx_lbfp0(struct he_dev *he_dev)
476 he_writel(he_dev, he_dev->r0_numbuffs, RLBF0_C); 474 he_writel(he_dev, he_dev->r0_numbuffs, RLBF0_C);
477} 475}
478 476
479static void __devinit 477static void he_init_rx_lbfp1(struct he_dev *he_dev)
480he_init_rx_lbfp1(struct he_dev *he_dev)
481{ 478{
482 unsigned i, lbm_offset, lbufd_index, lbuf_addr, lbuf_count; 479 unsigned i, lbm_offset, lbufd_index, lbuf_addr, lbuf_count;
483 unsigned lbufs_per_row = he_dev->cells_per_row / he_dev->cells_per_lbuf; 480 unsigned lbufs_per_row = he_dev->cells_per_row / he_dev->cells_per_lbuf;
@@ -507,8 +504,7 @@ he_init_rx_lbfp1(struct he_dev *he_dev)
507 he_writel(he_dev, he_dev->r1_numbuffs, RLBF1_C); 504 he_writel(he_dev, he_dev->r1_numbuffs, RLBF1_C);
508} 505}
509 506
510static void __devinit 507static void he_init_tx_lbfp(struct he_dev *he_dev)
511he_init_tx_lbfp(struct he_dev *he_dev)
512{ 508{
513 unsigned i, lbm_offset, lbufd_index, lbuf_addr, lbuf_count; 509 unsigned i, lbm_offset, lbufd_index, lbuf_addr, lbuf_count;
514 unsigned lbufs_per_row = he_dev->cells_per_row / he_dev->cells_per_lbuf; 510 unsigned lbufs_per_row = he_dev->cells_per_row / he_dev->cells_per_lbuf;
@@ -537,8 +533,7 @@ he_init_tx_lbfp(struct he_dev *he_dev)
537 he_writel(he_dev, lbufd_index - 1, TLBF_T); 533 he_writel(he_dev, lbufd_index - 1, TLBF_T);
538} 534}
539 535
540static int __devinit 536static int he_init_tpdrq(struct he_dev *he_dev)
541he_init_tpdrq(struct he_dev *he_dev)
542{ 537{
543 he_dev->tpdrq_base = pci_alloc_consistent(he_dev->pci_dev, 538 he_dev->tpdrq_base = pci_alloc_consistent(he_dev->pci_dev,
544 CONFIG_TPDRQ_SIZE * sizeof(struct he_tpdrq), &he_dev->tpdrq_phys); 539 CONFIG_TPDRQ_SIZE * sizeof(struct he_tpdrq), &he_dev->tpdrq_phys);
@@ -559,8 +554,7 @@ he_init_tpdrq(struct he_dev *he_dev)
559 return 0; 554 return 0;
560} 555}
561 556
562static void __devinit 557static void he_init_cs_block(struct he_dev *he_dev)
563he_init_cs_block(struct he_dev *he_dev)
564{ 558{
565 unsigned clock, rate, delta; 559 unsigned clock, rate, delta;
566 int reg; 560 int reg;
@@ -655,8 +649,7 @@ he_init_cs_block(struct he_dev *he_dev)
655 649
656} 650}
657 651
658static int __devinit 652static int he_init_cs_block_rcm(struct he_dev *he_dev)
659he_init_cs_block_rcm(struct he_dev *he_dev)
660{ 653{
661 unsigned (*rategrid)[16][16]; 654 unsigned (*rategrid)[16][16];
662 unsigned rate, delta; 655 unsigned rate, delta;
@@ -776,8 +769,7 @@ he_init_cs_block_rcm(struct he_dev *he_dev)
776 return 0; 769 return 0;
777} 770}
778 771
779static int __devinit 772static int he_init_group(struct he_dev *he_dev, int group)
780he_init_group(struct he_dev *he_dev, int group)
781{ 773{
782 struct he_buff *heb, *next; 774 struct he_buff *heb, *next;
783 dma_addr_t mapping; 775 dma_addr_t mapping;
@@ -915,8 +907,7 @@ out_free_rbpl_table:
915 return -ENOMEM; 907 return -ENOMEM;
916} 908}
917 909
918static int __devinit 910static int he_init_irq(struct he_dev *he_dev)
919he_init_irq(struct he_dev *he_dev)
920{ 911{
921 int i; 912 int i;
922 913
@@ -978,8 +969,7 @@ he_init_irq(struct he_dev *he_dev)
978 return 0; 969 return 0;
979} 970}
980 971
981static int __devinit 972static int he_start(struct atm_dev *dev)
982he_start(struct atm_dev *dev)
983{ 973{
984 struct he_dev *he_dev; 974 struct he_dev *he_dev;
985 struct pci_dev *pci_dev; 975 struct pci_dev *pci_dev;
@@ -2879,7 +2869,7 @@ MODULE_DEVICE_TABLE(pci, he_pci_tbl);
2879static struct pci_driver he_driver = { 2869static struct pci_driver he_driver = {
2880 .name = "he", 2870 .name = "he",
2881 .probe = he_init_one, 2871 .probe = he_init_one,
2882 .remove = __devexit_p(he_remove_one), 2872 .remove = he_remove_one,
2883 .id_table = he_pci_tbl, 2873 .id_table = he_pci_tbl,
2884}; 2874};
2885 2875