xref: /freebsd/sys/dev/usb/ufm_ioctl.h (revision 71625ec9ad2a9bc8c09784fbd23b759830e0ee5f)
102ac6454SAndrew Thompson /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3718cf2ccSPedro F. Giffuni  *
4f86e6000SWarner Losh  * Copyright (c) 2001 M. Warner Losh <imp@FreeBSD.org>
502ac6454SAndrew Thompson  *
602ac6454SAndrew Thompson  * Redistribution and use in source and binary forms, with or without
702ac6454SAndrew Thompson  * modification, are permitted provided that the following conditions
802ac6454SAndrew Thompson  * are met:
902ac6454SAndrew Thompson  * 1. Redistributions of source code must retain the above copyright
1002ac6454SAndrew Thompson  *    notice, this list of conditions, and the following disclaimer.
1102ac6454SAndrew Thompson  * 2. Redistributions in binary form must reproduce the above copyright
1202ac6454SAndrew Thompson  *    notice, this list of conditions and the following disclaimer in the
1302ac6454SAndrew Thompson  *    documentation and/or other materials provided with the distribution.
1402ac6454SAndrew Thompson  *
1502ac6454SAndrew Thompson  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1602ac6454SAndrew Thompson  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1702ac6454SAndrew Thompson  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1802ac6454SAndrew Thompson  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
1902ac6454SAndrew Thompson  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2002ac6454SAndrew Thompson  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2102ac6454SAndrew Thompson  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2202ac6454SAndrew Thompson  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2302ac6454SAndrew Thompson  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2402ac6454SAndrew Thompson  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2502ac6454SAndrew Thompson  * SUCH DAMAGE.
2602ac6454SAndrew Thompson  *
2702ac6454SAndrew Thompson  * This code is based on ugen.c and ulpt.c developed by Lennart Augustsson.
2802ac6454SAndrew Thompson  * This code includes software developed by the NetBSD Foundation, Inc. and
2902ac6454SAndrew Thompson  * its contributors.
3002ac6454SAndrew Thompson  */
3102ac6454SAndrew Thompson 
327e7b1248SHans Petter Selasky #ifndef _UFM_IOCTL_H_
337e7b1248SHans Petter Selasky #define	_UFM_IOCTL_H_
3402ac6454SAndrew Thompson 
3502ac6454SAndrew Thompson #include <sys/ioccom.h>
3602ac6454SAndrew Thompson 
3702ac6454SAndrew Thompson #define	FM_SET_FREQ	_IOWR('U', 200, int)
3802ac6454SAndrew Thompson #define	FM_GET_FREQ	_IOWR('U', 201, int)
3902ac6454SAndrew Thompson #define	FM_START	_IOWR('U', 202, int)
4002ac6454SAndrew Thompson #define	FM_STOP		_IOWR('U', 203, int)
4102ac6454SAndrew Thompson #define	FM_GET_STAT	_IOWR('U', 204, int)
427e7b1248SHans Petter Selasky 
437e7b1248SHans Petter Selasky #endif			/* _UFM_IOCTL_H_ */
44