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

TOMOYO Linux Cross Reference
Linux/arch/m68k/include/asm/apollohw.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 /arch/m68k/include/asm/apollohw.h (Version linux-6.11-rc3) and /arch/i386/include/asm-i386/apollohw.h (Version linux-6.3.13)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 /* apollohw.h : some structures to access apol    
  3                                                   
  4 #ifndef _ASMm68k_APOLLOHW_H_                      
  5 #define _ASMm68k_APOLLOHW_H_                      
  6                                                   
  7 #include <linux/types.h>                          
  8                                                   
  9 #include <asm/bootinfo-apollo.h>                  
 10                                                   
 11                                                   
 12 extern u_long apollo_model;                       
 13                                                   
 14                                                   
 15 /*                                                
 16    see scn2681 data sheet for more info.          
 17    member names are read_write.                   
 18 */                                                
 19                                                   
 20 #define DECLARE_2681_FIELD(x) unsigned char x;    
 21                                                   
 22 struct SCN2681 {                                  
 23                                                   
 24         DECLARE_2681_FIELD(mra);                  
 25         DECLARE_2681_FIELD(sra_csra);             
 26         DECLARE_2681_FIELD(BRGtest_cra);          
 27         DECLARE_2681_FIELD(rhra_thra);            
 28         DECLARE_2681_FIELD(ipcr_acr);             
 29         DECLARE_2681_FIELD(isr_imr);              
 30         DECLARE_2681_FIELD(ctu_ctur);             
 31         DECLARE_2681_FIELD(ctl_ctlr);             
 32         DECLARE_2681_FIELD(mrb);                  
 33         DECLARE_2681_FIELD(srb_csrb);             
 34         DECLARE_2681_FIELD(tst_crb);              
 35         DECLARE_2681_FIELD(rhrb_thrb);            
 36         DECLARE_2681_FIELD(reserved);             
 37         DECLARE_2681_FIELD(ip_opcr);              
 38         DECLARE_2681_FIELD(startCnt_setOutBit)    
 39         DECLARE_2681_FIELD(stopCnt_resetOutBit    
 40                                                   
 41 };                                                
 42                                                   
 43 struct mc146818 {                                 
 44         unsigned char second, alarm_second;       
 45         unsigned char minute, alarm_minute;       
 46         unsigned char hours, alarm_hours;         
 47         unsigned char day_of_week, day_of_mont    
 48         unsigned char month, year;                
 49 };                                                
 50                                                   
 51                                                   
 52 #define IO_BASE 0x80000000                        
 53                                                   
 54 extern u_long sio01_physaddr;                     
 55 extern u_long sio23_physaddr;                     
 56 extern u_long rtc_physaddr;                       
 57 extern u_long pica_physaddr;                      
 58 extern u_long picb_physaddr;                      
 59 extern u_long cpuctrl_physaddr;                   
 60 extern u_long timer_physaddr;                     
 61                                                   
 62 #define SAU7_SIO01_PHYSADDR 0x10400               
 63 #define SAU7_SIO23_PHYSADDR 0x10500               
 64 #define SAU7_RTC_PHYSADDR 0x10900                 
 65 #define SAU7_PICA 0x11000                         
 66 #define SAU7_PICB 0x11100                         
 67 #define SAU7_CPUCTRL 0x10100                      
 68 #define SAU7_TIMER 0x010800                       
 69                                                   
 70 #define SAU8_SIO01_PHYSADDR 0x8400                
 71 #define SAU8_RTC_PHYSADDR 0x8900                  
 72 #define SAU8_PICA 0x9400                          
 73 #define SAU8_PICB 0x9500                          
 74 #define SAU8_CPUCTRL 0x8100                       
 75 #define SAU8_TIMER 0x8800                         
 76                                                   
 77 #define sio01 ((*(volatile struct SCN2681 *)(I    
 78 #define sio23 ((*(volatile struct SCN2681 *)(I    
 79 #define rtc (((volatile struct mc146818 *)(IO_    
 80 #define cpuctrl (*(volatile unsigned int *)(IO    
 81 #define pica (IO_BASE + pica_physaddr)            
 82 #define picb (IO_BASE + picb_physaddr)            
 83 #define apollo_timer (IO_BASE + timer_physaddr    
 84 #define addr_xlat_map ((unsigned short *)(IO_B    
 85                                                   
 86 #define isaIO2mem(x) (((((x) & 0x3f8)  << 7) |    
 87                                                   
 88 #define IRQ_APOLLO      IRQ_USER                  
 89                                                   
 90 #endif                                            
 91                                                   

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