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

TOMOYO Linux Cross Reference
Linux/arch/sparc/include/asm/auxio_32.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 /arch/sparc/include/asm/auxio_32.h (Version linux-6.12-rc7) and /arch/i386/include/asm-i386/auxio_32.h (Version linux-5.2.21)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 /*                                                
  3  * auxio.h:  Definitions and code for the Auxi    
  4  *                                                
  5  * Copyright (C) 1995 David S. Miller (davem@c    
  6  */                                               
  7 #ifndef _SPARC_AUXIO_H                            
  8 #define _SPARC_AUXIO_H                            
  9                                                   
 10 #include <asm/vaddrs.h>                           
 11                                                   
 12 /* This register is an unsigned char in IO spa    
 13  * First, it is used to control the front pane    
 14  * that have it (good for testing entry points    
 15  * Secondly, it controls various floppy drive     
 16  */                                               
 17 #define AUXIO_ORMEIN      0xf0    /* All write    
 18 #define AUXIO_ORMEIN4M    0xc0    /* sun4m - A    
 19 #define AUXIO_FLPY_DENS   0x20    /* Floppy de    
 20 #define AUXIO_FLPY_DCHG   0x10    /* A disk ch    
 21 #define AUXIO_EDGE_ON     0x10    /* sun4m - O    
 22 #define AUXIO_FLPY_DSEL   0x08    /* Drive sel    
 23 #define AUXIO_LINK_TEST   0x08    /* sun4m - O    
 24                                                   
 25 /* Set the following to one, then zero, after     
 26 #define AUXIO_FLPY_TCNT   0x04    /* Floppy te    
 27                                                   
 28 /* Set the following to zero to eject the flop    
 29 #define AUXIO_FLPY_EJCT   0x02    /* Eject flo    
 30 #define AUXIO_LED         0x01    /* On if set    
 31                                                   
 32 #ifndef __ASSEMBLY__                              
 33                                                   
 34 /*                                                
 35  * NOTE: these routines are implementation dep    
 36  * understand the hardware you are querying!      
 37  */                                               
 38 void set_auxio(unsigned char bits_on, unsigned    
 39 unsigned char get_auxio(void); /* .../asm/flop    
 40                                                   
 41 /*                                                
 42  * The following routines are provided for dri    
 43  * with sparc64 (primarily sunlance.c)            
 44  */                                               
 45                                                   
 46 #define AUXIO_LTE_ON    1                         
 47 #define AUXIO_LTE_OFF   0                         
 48                                                   
 49 /* auxio_set_lte - Set Link Test Enable (TPE L    
 50  *                                                
 51  * on - AUXIO_LTE_ON or AUXIO_LTE_OFF             
 52  */                                               
 53 #define auxio_set_lte(on) \                       
 54 do { \                                            
 55         if(on) { \                                
 56                 set_auxio(AUXIO_LINK_TEST, 0);    
 57         } else { \                                
 58                 set_auxio(0, AUXIO_LINK_TEST);    
 59         } \                                       
 60 } while (0)                                       
 61                                                   
 62 #define AUXIO_LED_ON    1                         
 63 #define AUXIO_LED_OFF   0                         
 64                                                   
 65 /* auxio_set_led - Set system front panel LED     
 66  *                                                
 67  * on - AUXIO_LED_ON or AUXIO_LED_OFF             
 68  */                                               
 69 #define auxio_set_led(on) \                       
 70 do { \                                            
 71         if(on) { \                                
 72                 set_auxio(AUXIO_LED, 0); \        
 73         } else { \                                
 74                 set_auxio(0, AUXIO_LED); \        
 75         } \                                       
 76 } while (0)                                       
 77                                                   
 78 #endif /* !(__ASSEMBLY__) */                      
 79                                                   
 80                                                   
 81 /* AUXIO2 (Power Off Control) */                  
 82 extern volatile u8 __iomem *auxio_power_regist    
 83                                                   
 84 #define AUXIO_POWER_DETECT_FAILURE      32        
 85 #define AUXIO_POWER_CLEAR_FAILURE       2         
 86 #define AUXIO_POWER_OFF                 1         
 87                                                   
 88                                                   
 89 #endif /* !(_SPARC_AUXIO_H) */                    
 90                                                   

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