^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * IPWireless 3G PCMCIA Network Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Original code
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * by Stephen Blackheath <stephen@blacksapphire.com>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * Ben Martel <benm@symmetric.co.nz>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * Copyrighted as follows:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) * Copyright (C) 2004 by Symmetric Systems Ltd (NZ)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) * Various driver changes and rewrites, port to new kernels
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) * Copyright (C) 2006-2007 Jiri Kosina
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) * Misc code cleanups and updates
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) * Copyright (C) 2007 David Sterba
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #ifndef _IPWIRELESS_CS_NETWORK_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define _IPWIRELESS_CS_NETWORK_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) struct ipw_network;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) struct ipw_tty;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) struct ipw_hardware;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) /* Definitions of the different channels on the PCMCIA UE */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define IPW_CHANNEL_RAS 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define IPW_CHANNEL_DIALLER 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define IPW_CHANNEL_CONSOLE 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define NO_OF_IPW_CHANNELS 5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) void ipwireless_network_notify_control_line_change(struct ipw_network *net,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) unsigned int channel_idx, unsigned int control_lines,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) unsigned int control_mask);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) void ipwireless_network_packet_received(struct ipw_network *net,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) unsigned int channel_idx, unsigned char *data,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) unsigned int length);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) struct ipw_network *ipwireless_network_create(struct ipw_hardware *hw);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) void ipwireless_network_free(struct ipw_network *net);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) void ipwireless_associate_network_tty(struct ipw_network *net,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) unsigned int channel_idx, struct ipw_tty *tty);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) void ipwireless_disassociate_network_ttys(struct ipw_network *net,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) unsigned int channel_idx);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) void ipwireless_ppp_open(struct ipw_network *net);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) void ipwireless_ppp_close(struct ipw_network *net);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) int ipwireless_ppp_channel_index(struct ipw_network *net);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) int ipwireless_ppp_unit_number(struct ipw_network *net);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) int ipwireless_ppp_mru(const struct ipw_network *net);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #endif