/*
 * tuner/tea5757h.h:
 *
 * Copyright (c) 2000 James McKenzie <james@fishsoup.dhs.org>,
 * All rights reserved.
 *
 */

/*
 * $Id: tea5757h.h,v 1.3 2000/10/07 18:30:09 root Exp $
 */

/*
 * $Log: tea5757h.h,v $
 * Revision 1.3  2000/10/07 18:30:09  root
 * #
 *
 * Revision 1.2  2000/10/06 19:52:44  root
 * #
 *
 * Revision 1.1  2000/09/24 01:52:56  root
 * #
 *
 */

#ifndef __TEA5757H_H__
#define __TEA5757H_H__


#define TEA5757H_SEARCH				(1UL<<24)
#define TEA5757H_SEARCH_DIR			(1UL<<23)
#define TEA5757H_MONO				(1UL<<22)
#define TEA5757H_BAND_MASK			(3UL<<20)
#define TEA5757H_BAND_SHIFT			20
#define TEA5757H_BAND_FM			(0UL<<20)
#define TEA5757H_BAND_MW			(1UL<<20)
#define TEA5757H_BAND_LW			(2UL<<20)
#define TEA5757H_BAND_SW			(3UL<<20)
#define TEA5757H_PORT_MASK			(3UL<<18)
#define TEA5757H_PORT_SHIFT			18
#define TEA5757H_PORT_P0			(1UL<<19)
#define TEA5757H_PORT_P1			(1UL<<18)
#define TEA5757H_SEARCH_STRENGTH_MASK		(3UL << 16)
#define TEA5757H_SEARCH_STRENGTH_SHIFT		16
#define TEA5757H_SEARCH_STRENGTH_FM_5uV		(0UL << 16)
#define TEA5757H_SEARCH_STRENGTH_FM_10uV	(1UL << 16)
#define TEA5757H_SEARCH_STRENGTH_FM_30uV	(2UL << 16)
#define TEA5757H_SEARCH_STRENGTH_FM_150uV	(3UL << 16)
#define TEA5757H_SEARCH_STRENGTH_AM_28uV	(0UL << 16)
#define TEA5757H_SEARCH_STRENGTH_AM_40uV	(1UL << 16)
#define TEA5757H_SEARCH_STRENGTH_AM_63uV	(2UL << 16)
#define TEA5757H_SEARCH_STRENGTH_AM_1000uV	(3UL << 16)
#define TEA5757H_DUMMY				(1UL<<15)
#define TEA5757H_FREQ_MASK			0x7fff
#define TEA5757H_FREQ_FM_STEP			12500
#define TEA5757H_FREQ_AM_STEP			1000

#define TEA5757H_TUNING_MASK			(TEA5757H_BAND_MASK|TEA5757H_FREQ_MASK)

#define TEA5757H_FM_IF				10700000

#endif /* __TEA5757H_H__ */
