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

TOMOYO Linux Cross Reference
Linux/arch/mips/sgi-ip22/ip22-hpc.c

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 /arch/mips/sgi-ip22/ip22-hpc.c (Version linux-6.12-rc7) and /arch/sparc/sgi-ip22/ip22-hpc.c (Version linux-5.14.21)


  1 // SPDX-License-Identifier: GPL-2.0                 1 
  2 /*                                                
  3  * ip22-hpc.c: Routines for generic manipulati    
  4  *                                                
  5  * Copyright (C) 1996 David S. Miller (davem@d    
  6  * Copyright (C) 1998 Ralf Baechle                
  7  */                                               
  8                                                   
  9 #include <linux/export.h>                         
 10 #include <linux/init.h>                           
 11 #include <linux/types.h>                          
 12                                                   
 13 #include <asm/io.h>                               
 14 #include <asm/sgi/hpc3.h>                         
 15 #include <asm/sgi/ioc.h>                          
 16 #include <asm/sgi/ip22.h>                         
 17                                                   
 18 struct hpc3_regs *hpc3c0, *hpc3c1;                
 19                                                   
 20 EXPORT_SYMBOL(hpc3c0);                            
 21 EXPORT_SYMBOL(hpc3c1);                            
 22                                                   
 23 struct sgioc_regs *sgioc;                         
 24                                                   
 25 EXPORT_SYMBOL(sgioc);                             
 26                                                   
 27 /* We need software copies of these because th    
 28 u8 sgi_ioc_reset, sgi_ioc_write;                  
 29                                                   
 30 extern char *system_type;                         
 31                                                   
 32 void __init sgihpc_init(void)                     
 33 {                                                 
 34         /* ioremap can't fail */                  
 35         hpc3c0 = (struct hpc3_regs *)             
 36                  ioremap(HPC3_CHIP0_BASE, size    
 37         hpc3c1 = (struct hpc3_regs *)             
 38                  ioremap(HPC3_CHIP1_BASE, size    
 39         /* IOC lives in PBUS PIO channel 6 */     
 40         sgioc = (struct sgioc_regs *)hpc3c0->p    
 41                                                   
 42         hpc3c0->pbus_piocfg[6][0] |= HPC3_PIOC    
 43         if (ip22_is_fullhouse()) {                
 44                 /* Full House comes with INT2     
 45                  * channel 4 */                   
 46                 sgint = (struct sgint_regs *)h    
 47                 system_type = "SGI Indigo2";      
 48         } else {                                  
 49                 /* Guiness comes with INT3 whi    
 50                 sgint = &sgioc->int3;             
 51                 system_type = "SGI Indy";         
 52         }                                         
 53                                                   
 54         sgi_ioc_reset = (SGIOC_RESET_PPORT | S    
 55                          SGIOC_RESET_EISA | SG    
 56                          SGIOC_RESET_LC0OFF);     
 57                                                   
 58         sgi_ioc_write = (SGIOC_WRITE_EASEL | S    
 59                          SGIOC_WRITE_TPSPEED |    
 60                          SGIOC_WRITE_U0AMODE |    
 61                                                   
 62         sgioc->reset = sgi_ioc_reset;             
 63         sgioc->write = sgi_ioc_write;             
 64 }                                                 
 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