| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | Madge Horizon ATM Adapter driver. |
|---|
| 3 | 4 | Copyright (C) 1995-1999 Madge Networks Ltd. |
|---|
| 4 | 5 | |
|---|
| 5 | | - This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - it under the terms of the GNU General Public License as published by |
|---|
| 7 | | - the Free Software Foundation; either version 2 of the License, or |
|---|
| 8 | | - (at your option) any later version. |
|---|
| 9 | | - |
|---|
| 10 | | - This program is distributed in the hope that it will be useful, |
|---|
| 11 | | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | | - GNU General Public License for more details. |
|---|
| 14 | | - |
|---|
| 15 | | - You should have received a copy of the GNU General Public License |
|---|
| 16 | | - along with this program; if not, write to the Free Software |
|---|
| 17 | | - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 18 | | - |
|---|
| 19 | | - The GNU GPL is contained in /usr/doc/copyright/GPL on a Debian |
|---|
| 20 | | - system and in the file COPYING in the Linux kernel source. |
|---|
| 21 | 6 | */ |
|---|
| 22 | 7 | |
|---|
| 23 | 8 | /* |
|---|
| .. | .. |
|---|
| 2541 | 2526 | // say the VPI/VCI is free again |
|---|
| 2542 | 2527 | clear_bit(ATM_VF_ADDR,&atm_vcc->flags); |
|---|
| 2543 | 2528 | } |
|---|
| 2544 | | - |
|---|
| 2545 | | -#if 0 |
|---|
| 2546 | | -static int hrz_getsockopt (struct atm_vcc * atm_vcc, int level, int optname, |
|---|
| 2547 | | - void *optval, int optlen) { |
|---|
| 2548 | | - hrz_dev * dev = HRZ_DEV(atm_vcc->dev); |
|---|
| 2549 | | - PRINTD (DBG_FLOW|DBG_VCC, "hrz_getsockopt"); |
|---|
| 2550 | | - switch (level) { |
|---|
| 2551 | | - case SOL_SOCKET: |
|---|
| 2552 | | - switch (optname) { |
|---|
| 2553 | | -// case SO_BCTXOPT: |
|---|
| 2554 | | -// break; |
|---|
| 2555 | | -// case SO_BCRXOPT: |
|---|
| 2556 | | -// break; |
|---|
| 2557 | | - default: |
|---|
| 2558 | | - return -ENOPROTOOPT; |
|---|
| 2559 | | - }; |
|---|
| 2560 | | - break; |
|---|
| 2561 | | - } |
|---|
| 2562 | | - return -EINVAL; |
|---|
| 2563 | | -} |
|---|
| 2564 | | - |
|---|
| 2565 | | -static int hrz_setsockopt (struct atm_vcc * atm_vcc, int level, int optname, |
|---|
| 2566 | | - void *optval, unsigned int optlen) { |
|---|
| 2567 | | - hrz_dev * dev = HRZ_DEV(atm_vcc->dev); |
|---|
| 2568 | | - PRINTD (DBG_FLOW|DBG_VCC, "hrz_setsockopt"); |
|---|
| 2569 | | - switch (level) { |
|---|
| 2570 | | - case SOL_SOCKET: |
|---|
| 2571 | | - switch (optname) { |
|---|
| 2572 | | -// case SO_BCTXOPT: |
|---|
| 2573 | | -// break; |
|---|
| 2574 | | -// case SO_BCRXOPT: |
|---|
| 2575 | | -// break; |
|---|
| 2576 | | - default: |
|---|
| 2577 | | - return -ENOPROTOOPT; |
|---|
| 2578 | | - }; |
|---|
| 2579 | | - break; |
|---|
| 2580 | | - } |
|---|
| 2581 | | - return -EINVAL; |
|---|
| 2582 | | -} |
|---|
| 2583 | | -#endif |
|---|
| 2584 | 2529 | |
|---|
| 2585 | 2530 | #if 0 |
|---|
| 2586 | 2531 | static int hrz_ioctl (struct atm_dev * atm_dev, unsigned int cmd, void *arg) { |
|---|