The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/chips/isdn_79c30.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* 
    2  * Mach Operating System
    3  * Copyright (c) 1993 Carnegie Mellon University
    4  * All Rights Reserved.
    5  * 
    6  * Permission to use, copy, modify and distribute this software and its
    7  * documentation is hereby granted, provided that both the copyright
    8  * notice and this permission notice appear in all copies of the
    9  * software, derivative works or modified versions, and any portions
   10  * thereof, and that both notices appear in supporting documentation.
   11  * 
   12  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
   13  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
   14  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
   15  * 
   16  * Carnegie Mellon requests users of this software to return to
   17  * 
   18  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
   19  *  School of Computer Science
   20  *  Carnegie Mellon University
   21  *  Pittsburgh PA 15213-3890
   22  * 
   23  * any improvements or extensions that they make and grant Carnegie Mellon
   24  * the rights to redistribute these changes.
   25  */
   26 /*
   27  * HISTORY
   28  * $Log:        isdn_79c30.h,v $
   29  * Revision 2.2  93/03/18  10:37:07  mrt
   30  *      Started, from Berkeley's driver.
   31  *      [93/03/09            af]
   32  * 
   33  */
   34 /*-
   35  * Copyright (c) 1991, 1992 The Regents of the University of California.
   36  * All rights reserved.
   37  *
   38  * Redistribution and use in source and binary forms, with or without
   39  * modification, are permitted provided that the following conditions
   40  * are met:
   41  * 1. Redistributions of source code must retain the above copyright
   42  *    notice, this list of conditions and the following disclaimer.
   43  * 2. Redistributions in binary form must reproduce the above copyright
   44  *    notice, this list of conditions and the following disclaimer in the
   45  *    documentation and/or other materials provided with the distribution.
   46  * 3. All advertising materials mentioning features or use of this software
   47  *    must display the following acknowledgement:
   48  *      This product includes software developed by the Computer Systems
   49  *      Engineering Group at Lawrence Berkeley Laboratory.
   50  * 4. The name of the Laboratory may not be used to endorse or promote 
   51  *    products derived from this software without specific prior written 
   52  *    permission.
   53  *
   54  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   55  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   56  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   57  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   58  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   59  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   60  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   61  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   62  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   63  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   64  * SUCH DAMAGE.
   65  *
   66  *      $Header: isdn_79c30.h,v 2.2 93/03/18 10:37:07 mrt Exp $ (LBL)
   67  */
   68 
   69 /*
   70  * Bit encodings for chip commands from "Microprocessor Access Guide for
   71  * Indirect Registers", p.19 Am79C30A/32A Advanced Micro Devices spec 
   72  * sheet (preliminary).
   73  *
   74  * Indirect register numbers (the value written into cr to select a given
   75  * chip registers) have the form AMDR_*.  Register fields look like AMD_*.
   76  */
   77 
   78 typedef struct {
   79         volatile unsigned char  cr;     /* command register (wo) */
   80 #define ir cr                           /* interrupt register (ro) */
   81         volatile unsigned char  dr;     /* data register (rw) */
   82         volatile unsigned char  dsr1;   /* D-channel status register 1 (ro) */
   83         volatile unsigned char  der;    /* D-channel error register (ro) */
   84         volatile unsigned char  dctb;   /* D-channel transmit register (wo) */
   85 #define dcrb dctb                       /* D-channel receive register (ro) */
   86         volatile unsigned char  bbtb;   /* Bb-channel transmit register (wo) */
   87 #define bbrb bbtb                       /* Bb-channel receive register (ro) */
   88         volatile unsigned char  bctb;   /* Bc-channel transmit register (wo)*/
   89 #define bcrb bctb                       /* Bc-channel receive register (ro) */
   90         volatile unsigned char  dsr2;   /* D-channel status register 2 (ro) */
   91 } amd79c30_regmap_t;
   92 
   93 #define AMDR_INIT       0x21
   94 #define         AMD_INIT_PMS_IDLE               0x00
   95 #define         AMD_INIT_PMS_ACTIVE             0x01
   96 #define         AMD_INIT_PMS_ACTIVE_DATA        0x02
   97 #define         AMD_INIT_INT_DISABLE            (0x01 << 2)
   98 #define         AMD_INIT_CDS_DIV2               (0x00 << 3)
   99 #define         AMD_INIT_CDS_DIV1               (0x01 << 3)
  100 #define         AMD_INIT_CDS_DIV4               (0x02 << 3)
  101 #define         AMD_INIT_AS_RX                  (0x01 << 6)
  102 #define         AMD_INIT_AS_TX                  (0x01 << 7)
  103 
  104 #define AMDR_LIU_LSR    0xa1
  105 #define AMDR_LIU_LPR    0xa2
  106 #define AMDR_LIU_LMR1   0xa3
  107 #define AMDR_LIU_LMR2   0xa4
  108 #define AMDR_LIU_2_4    0xa5
  109 #define AMDR_LIU_MF     0xa6
  110 #define AMDR_LIU_MFSB   0xa7
  111 #define AMDR_LIU_MFQB   0xa8
  112 
  113 #define AMDR_MUX_MCR1   0x41
  114 #define AMDR_MUX_MCR2   0x42
  115 #define AMDR_MUX_MCR3   0x43
  116 #define         AMD_MCRCHAN_NC          0x00
  117 #define         AMD_MCRCHAN_B1          0x01
  118 #define         AMD_MCRCHAN_B2          0x02
  119 #define         AMD_MCRCHAN_BA          0x03
  120 #define         AMD_MCRCHAN_BB          0x04
  121 #define         AMD_MCRCHAN_BC          0x05
  122 #define         AMD_MCRCHAN_BD          0x06
  123 #define         AMD_MCRCHAN_BE          0x07
  124 #define         AMD_MCRCHAN_BF          0x08
  125 #define AMDR_MUX_MCR4   0x44
  126 #define         AMD_MCR4_INT_ENABLE     (1 << 3)
  127 #define         AMD_MCR4_SWAPBB         (1 << 4)
  128 #define         AMD_MCR4_SWAPBC         (1 << 5)
  129 
  130 #define AMDR_MUX_1_4    0x45
  131 
  132 #define AMDR_MAP_X      0x61
  133 #define AMDR_MAP_R      0x62
  134 #define AMDR_MAP_GX     0x63
  135 #define AMDR_MAP_GR     0x64
  136 #define AMDR_MAP_GER    0x65
  137 #define AMDR_MAP_STG    0x66
  138 #define AMDR_MAP_FTGR   0x67
  139 #define AMDR_MAP_ATGR   0x68
  140 #define AMDR_MAP_MMR1   0x69
  141 #define         AMD_MMR1_ALAW   0x01
  142 #define         AMD_MMR1_GX     0x02
  143 #define         AMD_MMR1_GR     0x04
  144 #define         AMD_MMR1_GER    0x08
  145 #define         AMD_MMR1_X      0x10
  146 #define         AMD_MMR1_R      0x20
  147 #define         AMD_MMR1_STG    0x40
  148 #define         AMD_MMR1_LOOP   0x80
  149 #define AMDR_MAP_MMR2   0x6a
  150 #define         AMD_MMR2_AINB   0x01
  151 #define         AMD_MMR2_LS     0x02
  152 #define         AMD_MMR2_DTMF   0x04
  153 #define         AMD_MMR2_GEN    0x08
  154 #define         AMD_MMR2_RNG            0x10
  155 #define         AMD_MMR2_DIS_HPF        0x20
  156 #define         AMD_MMR2_DIS_AZ         0x40
  157 #define AMDR_MAP_1_10   0x6b
  158 
  159 #define AMDR_DLC_FRAR123 0x81
  160 #define AMDR_DLC_SRAR123 0x82
  161 #define AMDR_DLC_TAR    0x83
  162 #define AMDR_DLC_DRLR   0x84
  163 #define AMDR_DLC_DTCR   0x85
  164 #define AMDR_DLC_DMR1   0x86
  165 #define AMDR_DLC_DMR2   0x87
  166 #define AMDR_DLC_1_7    0x88
  167 #define AMDR_DLC_DRCR   0x89
  168 #define AMDR_DLC_RNGR1  0x8a
  169 #define AMDR_DLC_RNGR2  0x8b
  170 #define AMDR_DLC_FRAR4  0x8c
  171 #define AMDR_DLC_SRAR4  0x8d
  172 #define AMDR_DLC_DMR3   0x8e
  173 #define AMDR_DLC_DMR4   0x8f
  174 #define AMDR_DLC_12_15  0x90
  175 #define AMDR_DLC_ASR    0x91

Cache object: 1a7d1d9a0011506677bef76015f15e1c


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.