2 *******************************************************************************
4 * File: microtune_eval_board_defs.h
5 * Description: defines for parallel port control of eval board
7 *******************************************************************************
11 * Copyright 2001 Free Software Foundation, Inc.
13 * This file is part of GNU Radio
15 * GNU Radio is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2, or (at your option)
20 * GNU Radio is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with GNU Radio; see the file COPYING. If not, write to
27 * the Free Software Foundation, Inc., 51 Franklin Street,
28 * Boston, MA 02110-1301, USA.
31 #ifndef _MICROTUNE_EVAL_BOARD_DEFS_H_
32 #define _MICROTUNE_EVAL_BOARD_DEFS_H_
35 * The Microtune 4937DI5 cable modem tuner eval board is controlled
36 * by bit banging the PC parallel port. This file defines the relevant
39 * The parallel port has an 8 bit data port (output),
40 * an 8 bit control port (output) and
41 * an 8 bit status port (input).
43 * Not all bits of the control and status ports may be arbitrarily used.
47 // parallel port data port constants (output)
49 static const int UT_DP_TX_SDA = 0x01; // upstream control bus
50 static const int UT_DP_TX_SCL = 0x02; // upstream control bus
51 static const int UT_DP_TX_AS = 0x04; // upstream control bus
52 static const int UT_DP_TX_ENABLE = 0x08; // upstream h/w enable
53 // bits 4,5,6 not used
54 static const int UT_DP_TUNER_SDA_OUT = 0x80; // tuner i2c bus data
56 // parallel port control port constants (output)
58 static const int UT_CP_TUNER_SCL = 0x08; // tuner i2c bus clock
59 static const int UT_CP_MUST_BE_ZERO = 0xf0; // must be zero
61 // parallel port status port constants (input)
63 // bits 0,1,2 not used
64 static const int UT_SP_TUNER_SCL_LOOP_BACK= 0x08; // inverted SCL loop back
65 static const int UT_SP_SHOULD_BE_ZERO = 0x10; // reads as zero
66 static const int UT_SP_SHOULD_BE_ONE = 0x20; // reads as one
68 static const int UT_SP_TUNER_SDA_IN = 0x80;
71 #endif /* _MICROTUNE_EVAL_BOARD_DEFS_H_ */