xref: /freebsd/sys/dev/usb/gadget/g_modem.h (revision 71625ec9ad2a9bc8c09784fbd23b759830e0ee5f)
146902503SHans Petter Selasky /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3718cf2ccSPedro F. Giffuni  *
446902503SHans Petter Selasky  * Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
546902503SHans Petter Selasky  *
646902503SHans Petter Selasky  * Redistribution and use in source and binary forms, with or without
746902503SHans Petter Selasky  * modification, are permitted provided that the following conditions
846902503SHans Petter Selasky  * are met:
946902503SHans Petter Selasky  * 1. Redistributions of source code must retain the above copyright
1046902503SHans Petter Selasky  *    notice, this list of conditions and the following disclaimer.
1146902503SHans Petter Selasky  * 2. Redistributions in binary form must reproduce the above copyright
1246902503SHans Petter Selasky  *    notice, this list of conditions and the following disclaimer in the
1346902503SHans Petter Selasky  *    documentation and/or other materials provided with the distribution.
1446902503SHans Petter Selasky  *
1546902503SHans Petter Selasky  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1646902503SHans Petter Selasky  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1746902503SHans Petter Selasky  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1846902503SHans Petter Selasky  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1946902503SHans Petter Selasky  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2046902503SHans Petter Selasky  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2146902503SHans Petter Selasky  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2246902503SHans Petter Selasky  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2346902503SHans Petter Selasky  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2446902503SHans Petter Selasky  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2546902503SHans Petter Selasky  * SUCH DAMAGE.
2646902503SHans Petter Selasky  */
2746902503SHans Petter Selasky 
2846902503SHans Petter Selasky #ifndef _G_MODEM_H_
2946902503SHans Petter Selasky #define	_G_MODEM_H_
3046902503SHans Petter Selasky 
3146902503SHans Petter Selasky #define	G_MODEM_MAX_STRLEN 32		/* chars */
3246902503SHans Petter Selasky #define	G_MODEM_BUFSIZE	4096		/* bytes */
3346902503SHans Petter Selasky 
3446902503SHans Petter Selasky #define	G_MODEM_MODE_SILENT 0
3546902503SHans Petter Selasky #define	G_MODEM_MODE_DUMP 1
3646902503SHans Petter Selasky #define	G_MODEM_MODE_LOOP 2
3746902503SHans Petter Selasky #define	G_MODEM_MODE_PATTERN 3
3846902503SHans Petter Selasky #define	G_MODEM_MODE_MAX 4
3946902503SHans Petter Selasky 
4046902503SHans Petter Selasky #endif					/* _G_MODEM_H_ */
41