/*
* Copyright (c) 1995 John Hay.
* Copyright (c) 1996 SDL Communications, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the author nor the names of any co-contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ntwoc_isareg.h,v 1.1 2000/01/04 06:29:21 chopps Exp $
*/
#ifndef _IF_NTWOC_ISAREG_H_
#define _IF_NTWOC_ISAREG_H_
#define NTWOC_ISA_NCHAN 2 /* A HD64570 chip have 2 channels */
/* these are used after you shift down to the clock byte for the resp. port */
#define NTWOC_FLAGS_TXS_SHIFT 2
#define NTWOC_FLAGS_TXS_MASK 0x0000000c /* port 0 tx clk source mask */
#define NTWOC_FLAGS_TXS_LINE 0 /* use the line clock */
#define NTWOC_FLAGS_TXS_INTERNAL 1 /* use the internal clock */
#define NTWOC_FLAGS_TXS_RXCLOCK 2 /* use the receive clock */
#define NTWOC_FLAGS_RXS_SHIFT 4
#define NTWOC_FLAGS_RXS_MASK 0x00000070 /* port 0 rx clk source mask */
#define NTWOC_FLAGS_RXS_LINE 0 /* use the line clock */
#define NTWOC_FLAGS_RXS_LINE_SN 1 /* use line with noise supp. */
#define NTWOC_FLAGS_RXS_INTERNAL 2 /* use internal clock */
#define NTWOC_FLAGS_RXS_ADPLL_OUT 3 /* use brg out for adpll clk */
#define NTWOC_FLAGS_RXS_ADPLL_IN 4 /* use line in for adpll clk */
#define NTWOC_FLAGS_ECLOCK_SHIFT 7 /* generate external clock */
#define NTWOC_FLAGS_ECLOCK_MASK 0x00000080 /* port 0 ext clk gen mask */
/* these are used on the flags directly */
#define NTWOC_FLAGS_RXDIV_SHIFT 16
#define NTWOC_FLAGS_TXDIV_SHIFT 20
#define NTWOC_FLAGS_TMC_SHIFT 24
#define NTWOC_PCR 0x00 /* RW, PC Control Register */
#define NTWOC_BAR 0x02 /* RW, Base Address Register */
#define NTWOC_PSR 0x04 /* RW, Page Scan Register */
#define NTWOC_MCR 0x06 /* RW, Modem Control Register */