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

TOMOYO Linux Cross Reference
Linux/arch/s390/include/asm/airq.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/s390/include/asm/airq.h (Architecture sparc) and /arch/i386/include/asm-i386/airq.h (Architecture i386)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 /*                                                
  3  *    Copyright IBM Corp. 2002, 2007              
  4  *    Author(s): Ingo Adlung <adlung@de.ibm.co    
  5  *               Cornelia Huck <cornelia.huck@    
  6  *               Arnd Bergmann <arndb@de.ibm.c    
  7  *               Peter Oberparleiter <peter.ob    
  8  */                                               
  9                                                   
 10 #ifndef _ASM_S390_AIRQ_H                          
 11 #define _ASM_S390_AIRQ_H                          
 12                                                   
 13 #include <linux/bit_spinlock.h>                   
 14 #include <linux/dma-mapping.h>                    
 15 #include <asm/tpi.h>                              
 16                                                   
 17 struct airq_struct {                              
 18         struct hlist_node list;         /* Han    
 19         void (*handler)(struct airq_struct *ai    
 20         u8 *lsi_ptr;                    /* Loc    
 21         u8 isc;                         /* Int    
 22         u8 flags;                                 
 23 };                                                
 24                                                   
 25 #define AIRQ_PTR_ALLOCATED      0x01              
 26                                                   
 27 int register_adapter_interrupt(struct airq_str    
 28 void unregister_adapter_interrupt(struct airq_    
 29                                                   
 30 /* Adapter interrupt bit vector */                
 31 struct airq_iv {                                  
 32         unsigned long *vector;  /* Adapter int    
 33         dma_addr_t vector_dma; /* Adapter inte    
 34         unsigned long *avail;   /* Allocation     
 35         unsigned long *bitlock; /* Lock bit ma    
 36         unsigned long *ptr;     /* Pointer ass    
 37         unsigned int *data;     /* 32 bit valu    
 38         unsigned long bits;     /* Number of b    
 39         unsigned long end;      /* Number of h    
 40         unsigned long flags;    /* Allocation     
 41         spinlock_t lock;        /* Lock to pro    
 42 };                                                
 43                                                   
 44 #define AIRQ_IV_ALLOC           1       /* Use    
 45 #define AIRQ_IV_BITLOCK         2       /* All    
 46 #define AIRQ_IV_PTR             4       /* All    
 47 #define AIRQ_IV_DATA            8       /* All    
 48 #define AIRQ_IV_CACHELINE       16      /* Cac    
 49 #define AIRQ_IV_GUESTVEC        32      /* Vec    
 50                                                   
 51 struct airq_iv *airq_iv_create(unsigned long b    
 52                                unsigned long *    
 53 void airq_iv_release(struct airq_iv *iv);         
 54 unsigned long airq_iv_alloc(struct airq_iv *iv    
 55 void airq_iv_free(struct airq_iv *iv, unsigned    
 56 unsigned long airq_iv_scan(struct airq_iv *iv,    
 57                            unsigned long end);    
 58                                                   
 59 static inline unsigned long airq_iv_alloc_bit(    
 60 {                                                 
 61         return airq_iv_alloc(iv, 1);              
 62 }                                                 
 63                                                   
 64 static inline void airq_iv_free_bit(struct air    
 65 {                                                 
 66         airq_iv_free(iv, bit, 1);                 
 67 }                                                 
 68                                                   
 69 static inline unsigned long airq_iv_end(struct    
 70 {                                                 
 71         return iv->end;                           
 72 }                                                 
 73                                                   
 74 static inline void airq_iv_lock(struct airq_iv    
 75 {                                                 
 76         const unsigned long be_to_le = BITS_PE    
 77         bit_spin_lock(bit ^ be_to_le, iv->bitl    
 78 }                                                 
 79                                                   
 80 static inline void airq_iv_unlock(struct airq_    
 81 {                                                 
 82         const unsigned long be_to_le = BITS_PE    
 83         bit_spin_unlock(bit ^ be_to_le, iv->bi    
 84 }                                                 
 85                                                   
 86 static inline void airq_iv_set_data(struct air    
 87                                     unsigned i    
 88 {                                                 
 89         iv->data[bit] = data;                     
 90 }                                                 
 91                                                   
 92 static inline unsigned int airq_iv_get_data(st    
 93                                             un    
 94 {                                                 
 95         return iv->data[bit];                     
 96 }                                                 
 97                                                   
 98 static inline void airq_iv_set_ptr(struct airq    
 99                                    unsigned lo    
100 {                                                 
101         iv->ptr[bit] = ptr;                       
102 }                                                 
103                                                   
104 static inline unsigned long airq_iv_get_ptr(st    
105                                             un    
106 {                                                 
107         return iv->ptr[bit];                      
108 }                                                 
109                                                   
110 #endif /* _ASM_S390_AIRQ_H */                     
111                                                   

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