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

TOMOYO Linux Cross Reference
Linux/include/linux/amba/kmi.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/amba/kmi.h (Architecture mips) and /include/linux/amba/kmi.h (Architecture sparc64)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*                                                  2 /*
  3  *  linux/include/asm-arm/hardware/amba_kmi.h       3  *  linux/include/asm-arm/hardware/amba_kmi.h
  4  *                                                  4  *
  5  *  Internal header file for AMBA KMI ports         5  *  Internal header file for AMBA KMI ports
  6  *                                                  6  *
  7  *  Copyright (C) 2000 Deep Blue Solutions Ltd      7  *  Copyright (C) 2000 Deep Blue Solutions Ltd.
  8  *                                                  8  *
  9  * -------------------------------------------      9  * ---------------------------------------------------------------------------
 10  *  From ARM PrimeCell(tm) PS2 Keyboard/Mouse      10  *  From ARM PrimeCell(tm) PS2 Keyboard/Mouse Interface (PL050) Technical
 11  *  Reference Manual - ARM DDI 0143B - see htt     11  *  Reference Manual - ARM DDI 0143B - see http://www.arm.com/
 12  * -------------------------------------------     12  * ---------------------------------------------------------------------------
 13  */                                                13  */
 14 #ifndef ASM_ARM_HARDWARE_AMBA_KMI_H                14 #ifndef ASM_ARM_HARDWARE_AMBA_KMI_H
 15 #define ASM_ARM_HARDWARE_AMBA_KMI_H                15 #define ASM_ARM_HARDWARE_AMBA_KMI_H
 16                                                    16 
 17 /*                                                 17 /*
 18  * KMI control register:                           18  * KMI control register:
 19  *  KMICR_TYPE       0 = PS2/AT mode, 1 = No l     19  *  KMICR_TYPE       0 = PS2/AT mode, 1 = No line control bit mode
 20  *  KMICR_RXINTREN   1 = enable RX interrupts      20  *  KMICR_RXINTREN   1 = enable RX interrupts
 21  *  KMICR_TXINTREN   1 = enable TX interrupts      21  *  KMICR_TXINTREN   1 = enable TX interrupts
 22  *  KMICR_EN         1 = enable KMI                22  *  KMICR_EN         1 = enable KMI
 23  *  KMICR_FD         1 = force KMI data low        23  *  KMICR_FD         1 = force KMI data low
 24  *  KMICR_FC         1 = force KMI clock low       24  *  KMICR_FC         1 = force KMI clock low
 25  */                                                25  */
 26 #define KMICR           (KMI_BASE + 0x00)          26 #define KMICR           (KMI_BASE + 0x00)
 27 #define KMICR_TYPE              (1 << 5)           27 #define KMICR_TYPE              (1 << 5)
 28 #define KMICR_RXINTREN          (1 << 4)           28 #define KMICR_RXINTREN          (1 << 4)
 29 #define KMICR_TXINTREN          (1 << 3)           29 #define KMICR_TXINTREN          (1 << 3)
 30 #define KMICR_EN                (1 << 2)           30 #define KMICR_EN                (1 << 2)
 31 #define KMICR_FD                (1 << 1)           31 #define KMICR_FD                (1 << 1)
 32 #define KMICR_FC                (1 << 0)           32 #define KMICR_FC                (1 << 0)
 33                                                    33 
 34 /*                                                 34 /*
 35  * KMI status register:                            35  * KMI status register:
 36  *  KMISTAT_TXEMPTY  1 = transmitter register      36  *  KMISTAT_TXEMPTY  1 = transmitter register empty
 37  *  KMISTAT_TXBUSY   1 = currently sending dat     37  *  KMISTAT_TXBUSY   1 = currently sending data
 38  *  KMISTAT_RXFULL   1 = receiver register rea     38  *  KMISTAT_RXFULL   1 = receiver register ready to be read
 39  *  KMISTAT_RXBUSY   1 = currently receiving d     39  *  KMISTAT_RXBUSY   1 = currently receiving data
 40  *  KMISTAT_RXPARITY parity of last databyte r     40  *  KMISTAT_RXPARITY parity of last databyte received
 41  *  KMISTAT_IC       current level of KMI cloc     41  *  KMISTAT_IC       current level of KMI clock input
 42  *  KMISTAT_ID       current level of KMI data     42  *  KMISTAT_ID       current level of KMI data input
 43  */                                                43  */
 44 #define KMISTAT         (KMI_BASE + 0x04)          44 #define KMISTAT         (KMI_BASE + 0x04)
 45 #define KMISTAT_TXEMPTY         (1 << 6)           45 #define KMISTAT_TXEMPTY         (1 << 6)
 46 #define KMISTAT_TXBUSY          (1 << 5)           46 #define KMISTAT_TXBUSY          (1 << 5)
 47 #define KMISTAT_RXFULL          (1 << 4)           47 #define KMISTAT_RXFULL          (1 << 4)
 48 #define KMISTAT_RXBUSY          (1 << 3)           48 #define KMISTAT_RXBUSY          (1 << 3)
 49 #define KMISTAT_RXPARITY        (1 << 2)           49 #define KMISTAT_RXPARITY        (1 << 2)
 50 #define KMISTAT_IC              (1 << 1)           50 #define KMISTAT_IC              (1 << 1)
 51 #define KMISTAT_ID              (1 << 0)           51 #define KMISTAT_ID              (1 << 0)
 52                                                    52 
 53 /*                                                 53 /*
 54  * KMI data register                               54  * KMI data register
 55  */                                                55  */
 56 #define KMIDATA         (KMI_BASE + 0x08)          56 #define KMIDATA         (KMI_BASE + 0x08)
 57                                                    57 
 58 /*                                                 58 /*
 59  * KMI clock divisor: to generate 8MHz interna     59  * KMI clock divisor: to generate 8MHz internal clock
 60  *  div = (ref / 8MHz) - 1; 0 <= div <= 15         60  *  div = (ref / 8MHz) - 1; 0 <= div <= 15
 61  */                                                61  */
 62 #define KMICLKDIV       (KMI_BASE + 0x0c)          62 #define KMICLKDIV       (KMI_BASE + 0x0c)
 63                                                    63 
 64 /*                                                 64 /*
 65  * KMI interrupt register:                         65  * KMI interrupt register:
 66  *  KMIIR_TXINTR     1 = transmit interrupt as     66  *  KMIIR_TXINTR     1 = transmit interrupt asserted
 67  *  KMIIR_RXINTR     1 = receive interrupt ass     67  *  KMIIR_RXINTR     1 = receive interrupt asserted
 68  */                                                68  */
 69 #define KMIIR           (KMI_BASE + 0x10)          69 #define KMIIR           (KMI_BASE + 0x10)
 70 #define KMIIR_TXINTR            (1 << 1)           70 #define KMIIR_TXINTR            (1 << 1)
 71 #define KMIIR_RXINTR            (1 << 0)           71 #define KMIIR_RXINTR            (1 << 0)
 72                                                    72 
 73 /*                                                 73 /*
 74  * The size of the KMI primecell                   74  * The size of the KMI primecell
 75  */                                                75  */
 76 #define KMI_SIZE        (0x100)                    76 #define KMI_SIZE        (0x100)
 77                                                    77 
 78 #endif                                             78 #endif
 79                                                    79 

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