linux/drivers/tty/ipwireless/setup_protocol.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * IPWireless 3G PCMCIA Network Driver
 *
 * Original code
 *   by Stephen Blackheath <[email protected]>,
 *      Ben Martel <[email protected]>
 *
 * Copyrighted as follows:
 *   Copyright (C) 2004 by Symmetric Systems Ltd (NZ)
 *
 * Various driver changes and rewrites, port to new kernels
 *   Copyright (C) 2006-2007 Jiri Kosina
 *
 * Misc code cleanups and updates
 *   Copyright (C) 2007 David Sterba
 */

#ifndef _IPWIRELESS_CS_SETUP_PROTOCOL_H_
#define _IPWIRELESS_CS_SETUP_PROTOCOL_H_

/* Version of the setup protocol and transport protocols */
#define TL_SETUP_VERSION

#define TL_SETUP_VERSION_QRY_TMO
#define TL_SETUP_MAX_VERSION_QRY

/* Message numbers 0-9 are obsoleted and must not be reused! */
#define TL_SETUP_SIGNO_GET_VERSION_QRY
#define TL_SETUP_SIGNO_GET_VERSION_RSP
#define TL_SETUP_SIGNO_CONFIG_MSG
#define TL_SETUP_SIGNO_CONFIG_DONE_MSG
#define TL_SETUP_SIGNO_OPEN_MSG
#define TL_SETUP_SIGNO_CLOSE_MSG

#define TL_SETUP_SIGNO_INFO_MSG
#define TL_SETUP_SIGNO_INFO_MSG_ACK

#define TL_SETUP_SIGNO_REBOOT_MSG
#define TL_SETUP_SIGNO_REBOOT_MSG_ACK

/* Synchronous start-messages */
struct tl_setup_get_version_qry {} __attribute__ ((packed));

struct tl_setup_get_version_rsp {} __attribute__ ((packed));

struct tl_setup_config_msg {} __attribute__ ((packed));

struct tl_setup_config_done_msg {} __attribute__ ((packed));

/* Asynchronous messages */
struct tl_setup_open_msg {} __attribute__ ((packed));

struct tl_setup_close_msg {} __attribute__ ((packed));

/* Driver type  - for use in tl_setup_info_msg.driver_type */
#define COMM_DRIVER
#define NDISWAN_DRIVER
#define NDISWAN_DRIVER_MAJOR_VERSION
#define NDISWAN_DRIVER_MINOR_VERSION

/*
 * It should not matter when this message comes over as we just store the
 * results and send the ACK.
 */
struct tl_setup_info_msg {} __attribute__ ((packed));

struct tl_setup_info_msgAck {} __attribute__ ((packed));

struct TlSetupRebootMsgAck {} __attribute__ ((packed));

/* Define a union of all the msgs that the driver can receive from the card.*/
ipw_setup_rx_msg __attribute__ ((packed));

#endif				/* _IPWIRELESS_CS_SETUP_PROTOCOL_H_ */