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/mips/ingenic/jz4780_smb.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 2016 Jared McNeill <jmcneill@invisible.ca>
    3  * All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions
    7  * are met:
    8  * 1. Redistributions of source code must retain the above copyright
    9  *    notice, this list of conditions and the following disclaimer.
   10  * 2. Redistributions in binary form must reproduce the above copyright
   11  *    notice, this list of conditions and the following disclaimer in the
   12  *    documentation and/or other materials provided with the distribution.
   13  *
   14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   15  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   16  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   17  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   18  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
   19  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
   20  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
   21  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   22  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   23  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   24  * SUCH DAMAGE.
   25  *
   26  * $FreeBSD: stable/12/sys/mips/ingenic/jz4780_smb.h 310172 2016-12-16 20:04:56Z jmcneill $
   27  */
   28 
   29 /*
   30  * Ingenic JZ4780 SMB Controller
   31  */
   32 
   33 #ifndef __JZ4780_SMB_H__
   34 #define __JZ4780_SMB_H__
   35 
   36 #define SMBCON                  0x00
   37 #define  SMBCON_STPHLD          (1 << 7)
   38 #define  SMBCON_SLVDIS          (1 << 6)
   39 #define  SMBCON_REST            (1 << 5)
   40 #define  SMBCON_MATP            (1 << 4)
   41 #define  SMBCON_SATP            (1 << 3)
   42 #define  SMBCON_SPD             (3 << 1)
   43 #define  SMBCON_SPD_STANDARD    (1 << 1)
   44 #define  SMBCON_SPD_FAST        (2 << 1)
   45 #define  SMBCON_MD              (1 << 0)
   46 #define SMBTAR                  0x04
   47 #define  SMBTAR_MATP            (1 << 12)
   48 #define  SMBTAR_SPECIAL         (1 << 11)
   49 #define  SMBTAR_GC_OR_START     (1 << 10)
   50 #define  SMBTAR_SMBTAR          (0x3ff << 0)
   51 #define SMBSAR                  0x08
   52 #define SMBDC                   0x10
   53 #define  SMBDC_CMD              (1 << 8)
   54 #define  SMBDC_DAT              (0xff << 0)
   55 #define SMBSHCNT                0x14
   56 #define SMBSLCNT                0x18
   57 #define SMBFHCNT                0x1c
   58 #define SMBFLCNT                0x20
   59 #define SMBINTST                0x2c
   60 #define SMBINTM                 0x30
   61 #define SMBRXTL                 0x38
   62 #define SMBTXTL                 0x3c
   63 #define SMBCINT                 0x40
   64 #define SMBCRXUF                0x44
   65 #define SMBCRXOF                0x48
   66 #define SMBCTXOF                0x4c
   67 #define SMBCRXREQ               0x50
   68 #define SMBCTXABT               0x54
   69 #define SMBCRXDN                0x58
   70 #define SMBCACT                 0x5c
   71 #define SMBCSTP                 0x60
   72 #define SMBCSTT                 0x64
   73 #define SMBCGC                  0x68
   74 #define SMBENB                  0x6c
   75 #define  SMBENB_SMBENB          (1 << 0)
   76 #define SMBST                   0x70
   77 #define  SMBST_SLVACT           (1 << 6)
   78 #define  SMBST_MSTACT           (1 << 5)
   79 #define  SMBST_RFF              (1 << 4)
   80 #define  SMBST_RFNE             (1 << 3)
   81 #define  SMBST_TFE              (1 << 2)
   82 #define  SMBST_TFNF             (1 << 1)
   83 #define  SMBST_ACT              (1 << 0)
   84 #define SMBABTSRC               0x80
   85 #define SMBDMACR                0x88
   86 #define SMBDMATDLR              0x8c
   87 #define SMBDMARDLR              0x90
   88 #define SMBSDASU                0x94
   89 #define SMBACKGC                0x98
   90 #define SMBENBST                0x9c
   91 #define  SMBENBST_SLVRDLST      (1 << 2)
   92 #define  SMBENBST_SLVDISB       (1 << 1)
   93 #define  SMBENBST_SMBEN         (1 << 0)
   94 #define SMBSDAHD                0xd0            
   95 #define  SMBSDAHD_HDENB         (1 << 8)
   96 #define  SMBSDAHD_SDAHD         (0xff << 0)
   97 
   98 #endif /* !__JZ4780_SMB_H__ */

Cache object: 6b910c21d4400e44163d9fc24652a72f


[ 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.