[BACK]Return to radioio.h CVS log [TXT][DIR] Up to [local] / sys / sys

Annotation of sys/sys/radioio.h, Revision 1.1

1.1     ! nbrk        1: /* $OpenBSD: radioio.h,v 1.4 2006/02/05 23:52:57 jakemsr Exp $ */
        !             2: /* $RuOBSD: radioio.h,v 1.4 2001/10/18 16:51:36 pva Exp $ */
        !             3:
        !             4: /*
        !             5:  * Copyright (c) 2001 Maxim Tsyplakov <tm@oganer.net>,
        !             6:  *                    Vladimir Popov <jumbo@narod.ru>
        !             7:  * All rights reserved.
        !             8:  *
        !             9:  * Redistribution and use in source and binary forms, with or without
        !            10:  * modification, are permitted provided that the following conditions
        !            11:  * are met:
        !            12:  * 1. Redistributions of source code must retain the above copyright
        !            13:  *    notice, this list of conditions and the following disclaimer.
        !            14:  * 2. Redistributions in binary form must reproduce the above copyright
        !            15:  *    notice, this list of conditions and the following disclaimer in the
        !            16:  *    documentation and/or other materials provided with the distribution.
        !            17:  *
        !            18:  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
        !            19:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
        !            20:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
        !            21:  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
        !            22:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
        !            23:  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
        !            24:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
        !            25:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
        !            26:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
        !            27:  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        !            28:  */
        !            29:
        !            30: #ifndef _SYS_RADIOIO_H_
        !            31: #define _SYS_RADIOIO_H_
        !            32:
        !            33: #include <sys/param.h>
        !            34:
        !            35: #define MIN_FM_FREQ    87500
        !            36: #define MAX_FM_FREQ    108000
        !            37:
        !            38: #define MIN_TV_CHAN    0
        !            39: #define MAX_TV_CHAN    150
        !            40:
        !            41: #define IF_FREQ        10700
        !            42:
        !            43: struct radio_info {
        !            44:        int     mute;
        !            45:        int     volume;
        !            46:        int     stereo;
        !            47:        int     rfreq;  /* reference frequency */
        !            48:        int     lock;   /* locking field strength during an automatic search */
        !            49:        u_int32_t       freq;   /* in kHz */
        !            50:        u_int32_t       caps;   /* card capabilities */
        !            51: #define RADIO_CAPS_DETECT_STEREO       (1<<0)
        !            52: #define RADIO_CAPS_DETECT_SIGNAL       (1<<1)
        !            53: #define RADIO_CAPS_SET_MONO            (1<<2)
        !            54: #define RADIO_CAPS_HW_SEARCH           (1<<3)
        !            55: #define RADIO_CAPS_HW_AFC              (1<<4)
        !            56: #define RADIO_CAPS_REFERENCE_FREQ      (1<<5)
        !            57: #define RADIO_CAPS_LOCK_SENSITIVITY    (1<<6)
        !            58: #define RADIO_CAPS_RESERVED1           (1<<7)
        !            59: #define RADIO_CAPS_RESERVED2           (0xFF<<8)
        !            60: #define RADIO_CARD_TYPE                        (0xFF<<16)
        !            61:        u_int32_t       info;
        !            62: #define RADIO_INFO_STEREO              (1<<0)
        !            63: #define RADIO_INFO_SIGNAL              (1<<1)
        !            64:        u_int32_t       tuner_mode;
        !            65: #define RADIO_TUNER_MODE_RADIO         (1<<0)
        !            66: #define RADIO_TUNER_MODE_TV            (1<<1)
        !            67:        u_int32_t       chan;
        !            68:        u_int32_t       chnlset;
        !            69: };
        !            70:
        !            71: /* Radio device operations */
        !            72: #define RIOCGINFO      _IOR('R', 21, struct radio_info) /* get info */
        !            73: #define RIOCSINFO      _IOWR('R', 22, struct radio_info) /* set info */
        !            74: #define RIOCSSRCH      _IOW('R', 23, int) /* search up/down */
        !            75:
        !            76: #endif /* _SYS_RADIOIO_H_ */

CVSweb