diff options
Diffstat (limited to 'drivers/atm/lanai.c')
-rw-r--r-- | drivers/atm/lanai.c | 90 |
1 files changed, 1 insertions, 89 deletions
diff --git a/drivers/atm/lanai.c b/drivers/atm/lanai.c index 2abf3edd0ffe..69f4c7ce9a63 100644 --- a/drivers/atm/lanai.c +++ b/drivers/atm/lanai.c | |||
@@ -39,7 +39,7 @@ | |||
39 | * o lanai_change_qos() isn't written yet | 39 | * o lanai_change_qos() isn't written yet |
40 | * | 40 | * |
41 | * o There aren't any ioctl's yet -- I'd like to eventually support | 41 | * o There aren't any ioctl's yet -- I'd like to eventually support |
42 | * setting loopback and LED modes that way. (see lanai_ioctl) | 42 | * setting loopback and LED modes that way. |
43 | * | 43 | * |
44 | * o If the segmentation engine or DMA gets shut down we should restart | 44 | * o If the segmentation engine or DMA gets shut down we should restart |
45 | * card as per section 17.0i. (see lanai_reset) | 45 | * card as per section 17.0i. (see lanai_reset) |
@@ -2435,93 +2435,6 @@ static int lanai_open(struct atm_vcc *atmvcc) | |||
2435 | return result; | 2435 | return result; |
2436 | } | 2436 | } |
2437 | 2437 | ||
2438 | #if 0 | ||
2439 | /* ioctl operations for card */ | ||
2440 | /* NOTE: these are all DEBUGGING ONLY currently */ | ||
2441 | static int lanai_ioctl(struct atm_dev *atmdev, unsigned int cmd, void __user *arg) | ||
2442 | { | ||
2443 | int result = 0; | ||
2444 | struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data; | ||
2445 | switch(cmd) { | ||
2446 | case 2106275: | ||
2447 | shutdown_atm_dev(atmdev); | ||
2448 | return 0; | ||
2449 | case 2200000: { | ||
2450 | unsigned long flags; | ||
2451 | spin_lock_irqsave(&lanai->servicelock, flags); | ||
2452 | run_service(lanai); | ||
2453 | spin_unlock_irqrestore(&lanai->servicelock, flags); | ||
2454 | return 0; } | ||
2455 | case 2200002: | ||
2456 | get_statistics(lanai); | ||
2457 | return 0; | ||
2458 | case 2200003: { | ||
2459 | unsigned int i; | ||
2460 | for (i = 0; i <= 0x5C ; i += 4) { | ||
2461 | if (i==0x48) /* Write-only butt reg */ | ||
2462 | continue; | ||
2463 | printk(KERN_CRIT DEV_LABEL " 0x%02X: " | ||
2464 | "0x%08X\n", i, | ||
2465 | (unsigned int) readl(lanai->base + i)); | ||
2466 | barrier(); mb(); | ||
2467 | pcistatus_check(lanai, 0); | ||
2468 | barrier(); mb(); | ||
2469 | } | ||
2470 | return 0; } | ||
2471 | case 2200004: { | ||
2472 | u8 b; | ||
2473 | u16 w; | ||
2474 | u32 dw; | ||
2475 | struct pci_dev *pci = lanai->pci; | ||
2476 | (void) pci_read_config_word(pci, PCI_VENDOR_ID, &w); | ||
2477 | DPRINTK("vendor = 0x%X\n", (unsigned int) w); | ||
2478 | (void) pci_read_config_word(pci, PCI_DEVICE_ID, &w); | ||
2479 | DPRINTK("device = 0x%X\n", (unsigned int) w); | ||
2480 | (void) pci_read_config_word(pci, PCI_COMMAND, &w); | ||
2481 | DPRINTK("command = 0x%X\n", (unsigned int) w); | ||
2482 | (void) pci_read_config_word(pci, PCI_STATUS, &w); | ||
2483 | DPRINTK("status = 0x%X\n", (unsigned int) w); | ||
2484 | (void) pci_read_config_dword(pci, | ||
2485 | PCI_CLASS_REVISION, &dw); | ||
2486 | DPRINTK("class/revision = 0x%X\n", (unsigned int) dw); | ||
2487 | (void) pci_read_config_byte(pci, | ||
2488 | PCI_CACHE_LINE_SIZE, &b); | ||
2489 | DPRINTK("cache line size = 0x%X\n", (unsigned int) b); | ||
2490 | (void) pci_read_config_byte(pci, PCI_LATENCY_TIMER, &b); | ||
2491 | DPRINTK("latency = %d (0x%X)\n", | ||
2492 | (int) b, (unsigned int) b); | ||
2493 | (void) pci_read_config_byte(pci, PCI_HEADER_TYPE, &b); | ||
2494 | DPRINTK("header type = 0x%X\n", (unsigned int) b); | ||
2495 | (void) pci_read_config_byte(pci, PCI_BIST, &b); | ||
2496 | DPRINTK("bist = 0x%X\n", (unsigned int) b); | ||
2497 | /* skipping a few here */ | ||
2498 | (void) pci_read_config_byte(pci, | ||
2499 | PCI_INTERRUPT_LINE, &b); | ||
2500 | DPRINTK("pci_int_line = 0x%X\n", (unsigned int) b); | ||
2501 | (void) pci_read_config_byte(pci, | ||
2502 | PCI_INTERRUPT_PIN, &b); | ||
2503 | DPRINTK("pci_int_pin = 0x%X\n", (unsigned int) b); | ||
2504 | (void) pci_read_config_byte(pci, PCI_MIN_GNT, &b); | ||
2505 | DPRINTK("min_gnt = 0x%X\n", (unsigned int) b); | ||
2506 | (void) pci_read_config_byte(pci, PCI_MAX_LAT, &b); | ||
2507 | DPRINTK("max_lat = 0x%X\n", (unsigned int) b); } | ||
2508 | return 0; | ||
2509 | #ifdef USE_POWERDOWN | ||
2510 | case 2200005: | ||
2511 | DPRINTK("Coming out of powerdown\n"); | ||
2512 | lanai->conf1 &= ~CONFIG1_POWERDOWN; | ||
2513 | conf1_write(lanai); | ||
2514 | return 0; | ||
2515 | #endif | ||
2516 | default: | ||
2517 | result = -ENOIOCTLCMD; | ||
2518 | } | ||
2519 | return result; | ||
2520 | } | ||
2521 | #else /* !0 */ | ||
2522 | #define lanai_ioctl NULL | ||
2523 | #endif /* 0 */ | ||
2524 | |||
2525 | static int lanai_send(struct atm_vcc *atmvcc, struct sk_buff *skb) | 2438 | static int lanai_send(struct atm_vcc *atmvcc, struct sk_buff *skb) |
2526 | { | 2439 | { |
2527 | struct lanai_vcc *lvcc = (struct lanai_vcc *) atmvcc->dev_data; | 2440 | struct lanai_vcc *lvcc = (struct lanai_vcc *) atmvcc->dev_data; |
@@ -2679,7 +2592,6 @@ static const struct atmdev_ops ops = { | |||
2679 | .dev_close = lanai_dev_close, | 2592 | .dev_close = lanai_dev_close, |
2680 | .open = lanai_open, | 2593 | .open = lanai_open, |
2681 | .close = lanai_close, | 2594 | .close = lanai_close, |
2682 | .ioctl = lanai_ioctl, | ||
2683 | .getsockopt = NULL, | 2595 | .getsockopt = NULL, |
2684 | .setsockopt = NULL, | 2596 | .setsockopt = NULL, |
2685 | .send = lanai_send, | 2597 | .send = lanai_send, |