~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/soc/fsl/qe/ucc.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/soc/fsl/qe/ucc.h (Architecture mips) and /include/soc/fsl/qe/ucc.h (Architecture alpha)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*                                                  2 /*
  3  * Copyright (C) 2006 Freescale Semiconductor,      3  * Copyright (C) 2006 Freescale Semiconductor, Inc. All rights reserved.
  4  *                                                  4  *
  5  * Authors:     Shlomi Gridish <gridish@freesc      5  * Authors:     Shlomi Gridish <gridish@freescale.com>
  6  *              Li Yang <leoli@freescale.com>       6  *              Li Yang <leoli@freescale.com>
  7  *                                                  7  *
  8  * Description:                                     8  * Description:
  9  * Internal header file for UCC unit routines.      9  * Internal header file for UCC unit routines.
 10  */                                                10  */
 11 #ifndef __UCC_H__                                  11 #ifndef __UCC_H__
 12 #define __UCC_H__                                  12 #define __UCC_H__
 13                                                    13 
 14 #include <soc/fsl/qe/immap_qe.h>                   14 #include <soc/fsl/qe/immap_qe.h>
 15 #include <soc/fsl/qe/qe.h>                         15 #include <soc/fsl/qe/qe.h>
 16                                                    16 
 17 #define STATISTICS                                 17 #define STATISTICS
 18                                                    18 
 19 #define UCC_MAX_NUM     8                          19 #define UCC_MAX_NUM     8
 20                                                    20 
 21 /* Slow or fast type for UCCs.                     21 /* Slow or fast type for UCCs.
 22 */                                                 22 */
 23 enum ucc_speed_type {                              23 enum ucc_speed_type {
 24         UCC_SPEED_TYPE_FAST = UCC_GUEMR_MODE_F     24         UCC_SPEED_TYPE_FAST = UCC_GUEMR_MODE_FAST_RX | UCC_GUEMR_MODE_FAST_TX,
 25         UCC_SPEED_TYPE_SLOW = UCC_GUEMR_MODE_S     25         UCC_SPEED_TYPE_SLOW = UCC_GUEMR_MODE_SLOW_RX | UCC_GUEMR_MODE_SLOW_TX
 26 };                                                 26 };
 27                                                    27 
 28 /* ucc_set_type                                    28 /* ucc_set_type
 29  * Sets UCC to slow or fast mode.                  29  * Sets UCC to slow or fast mode.
 30  *                                                 30  *
 31  * ucc_num - (In) number of UCC (0-7).             31  * ucc_num - (In) number of UCC (0-7).
 32  * speed   - (In) slow or fast mode for UCC.       32  * speed   - (In) slow or fast mode for UCC.
 33  */                                                33  */
 34 int ucc_set_type(unsigned int ucc_num, enum uc     34 int ucc_set_type(unsigned int ucc_num, enum ucc_speed_type speed);
 35                                                    35 
 36 int ucc_set_qe_mux_mii_mng(unsigned int ucc_nu     36 int ucc_set_qe_mux_mii_mng(unsigned int ucc_num);
 37                                                    37 
 38 int ucc_set_qe_mux_rxtx(unsigned int ucc_num,      38 int ucc_set_qe_mux_rxtx(unsigned int ucc_num, enum qe_clock clock,
 39         enum comm_dir mode);                       39         enum comm_dir mode);
 40 int ucc_set_tdm_rxtx_clk(unsigned int tdm_num,     40 int ucc_set_tdm_rxtx_clk(unsigned int tdm_num, enum qe_clock clock,
 41                          enum comm_dir mode);      41                          enum comm_dir mode);
 42 int ucc_set_tdm_rxtx_sync(unsigned int tdm_num     42 int ucc_set_tdm_rxtx_sync(unsigned int tdm_num, enum qe_clock clock,
 43                           enum comm_dir mode);     43                           enum comm_dir mode);
 44                                                    44 
 45 int ucc_mux_set_grant_tsa_bkpt(unsigned int uc     45 int ucc_mux_set_grant_tsa_bkpt(unsigned int ucc_num, int set, u32 mask);
 46                                                    46 
 47 /* QE MUX clock routing for UCC                    47 /* QE MUX clock routing for UCC
 48 */                                                 48 */
 49 static inline int ucc_set_qe_mux_grant(unsigne     49 static inline int ucc_set_qe_mux_grant(unsigned int ucc_num, int set)
 50 {                                                  50 {
 51         return ucc_mux_set_grant_tsa_bkpt(ucc_     51         return ucc_mux_set_grant_tsa_bkpt(ucc_num, set, QE_CMXUCR_GRANT);
 52 }                                                  52 }
 53                                                    53 
 54 static inline int ucc_set_qe_mux_tsa(unsigned      54 static inline int ucc_set_qe_mux_tsa(unsigned int ucc_num, int set)
 55 {                                                  55 {
 56         return ucc_mux_set_grant_tsa_bkpt(ucc_     56         return ucc_mux_set_grant_tsa_bkpt(ucc_num, set, QE_CMXUCR_TSA);
 57 }                                                  57 }
 58                                                    58 
 59 static inline int ucc_set_qe_mux_bkpt(unsigned     59 static inline int ucc_set_qe_mux_bkpt(unsigned int ucc_num, int set)
 60 {                                                  60 {
 61         return ucc_mux_set_grant_tsa_bkpt(ucc_     61         return ucc_mux_set_grant_tsa_bkpt(ucc_num, set, QE_CMXUCR_BKPT);
 62 }                                                  62 }
 63                                                    63 
 64 #endif                          /* __UCC_H__ *     64 #endif                          /* __UCC_H__ */
 65                                                    65 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php