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

TOMOYO Linux Cross Reference
Linux/arch/m68k/include/asm/mvme16xhw.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 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _M68K_MVME16xHW_H_
  3 #define _M68K_MVME16xHW_H_
  4 
  5 #include <asm/irq.h>
  6 
  7 
  8 typedef struct {
  9         u_char  ack_icr,
 10                 flt_icr,
 11                 sel_icr,
 12                 pe_icr,
 13                 bsy_icr,
 14                 spare1,
 15                 isr,
 16                 cr,
 17                 spare2,
 18                 spare3,
 19                 spare4,
 20                 data;
 21 } MVMElp, *MVMElpPtr;
 22 
 23 #define MVME_LPR_BASE   0xfff42030
 24 
 25 #define mvmelp   ((*(volatile MVMElpPtr)(MVME_LPR_BASE)))
 26 
 27 typedef struct {
 28         unsigned char
 29                 ctrl,
 30                 bcd_sec,
 31                 bcd_min,
 32                 bcd_hr,
 33                 bcd_dow,
 34                 bcd_dom,
 35                 bcd_mth,
 36                 bcd_year;
 37 } MK48T08_t, *MK48T08ptr_t;
 38 
 39 #define RTC_WRITE       0x80
 40 #define RTC_READ        0x40
 41 #define RTC_STOP        0x20
 42 
 43 #define MVME_RTC_BASE   0xfffc1ff8
 44 
 45 #define MVME_I596_BASE  0xfff46000
 46 
 47 #define MVME_SCC_A_ADDR 0xfff45005
 48 #define MVME_SCC_B_ADDR 0xfff45001
 49 #define MVME_SCC_PCLK   10000000
 50 
 51 #define MVME162_IRQ_TYPE_PRIO   0
 52 
 53 #define MVME167_IRQ_PRN         (IRQ_USER+20)
 54 #define MVME16x_IRQ_I596        (IRQ_USER+23)
 55 #define MVME16x_IRQ_SCSI        (IRQ_USER+21)
 56 #define MVME16x_IRQ_FLY         (IRQ_USER+63)
 57 #define MVME167_IRQ_SER_ERR     (IRQ_USER+28)
 58 #define MVME167_IRQ_SER_MODEM   (IRQ_USER+29)
 59 #define MVME167_IRQ_SER_TX      (IRQ_USER+30)
 60 #define MVME167_IRQ_SER_RX      (IRQ_USER+31)
 61 #define MVME16x_IRQ_TIMER       (IRQ_USER+25)
 62 #define MVME167_IRQ_ABORT       (IRQ_USER+46)
 63 #define MVME162_IRQ_ABORT       (IRQ_USER+30)
 64 
 65 /* SCC interrupts, for MVME162 */
 66 #define MVME162_IRQ_SCC_BASE            (IRQ_USER+0)
 67 #define MVME162_IRQ_SCCB_TX             (IRQ_USER+0)
 68 #define MVME162_IRQ_SCCB_STAT           (IRQ_USER+2)
 69 #define MVME162_IRQ_SCCB_RX             (IRQ_USER+4)
 70 #define MVME162_IRQ_SCCB_SPCOND         (IRQ_USER+6)
 71 #define MVME162_IRQ_SCCA_TX             (IRQ_USER+8)
 72 #define MVME162_IRQ_SCCA_STAT           (IRQ_USER+10)
 73 #define MVME162_IRQ_SCCA_RX             (IRQ_USER+12)
 74 #define MVME162_IRQ_SCCA_SPCOND         (IRQ_USER+14)
 75 
 76 /* MVME162 version register */
 77 
 78 #define MVME162_VERSION_REG     0xfff4202e
 79 
 80 extern unsigned short mvme16x_config;
 81 
 82 /* Lower 8 bits must match the revision register in the MC2 chip */
 83 
 84 #define MVME16x_CONFIG_SPEED_32         0x0001
 85 #define MVME16x_CONFIG_NO_VMECHIP2      0x0002
 86 #define MVME16x_CONFIG_NO_SCSICHIP      0x0004
 87 #define MVME16x_CONFIG_NO_ETHERNET      0x0008
 88 #define MVME16x_CONFIG_GOT_FPU          0x0010
 89 
 90 #define MVME16x_CONFIG_GOT_LP           0x0100
 91 #define MVME16x_CONFIG_GOT_CD2401       0x0200
 92 #define MVME16x_CONFIG_GOT_SCCA         0x0400
 93 #define MVME16x_CONFIG_GOT_SCCB         0x0800
 94 
 95 #endif
 96 

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