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

TOMOYO Linux Cross Reference
Linux/arch/powerpc/include/asm/pnv-ocxl.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/powerpc/include/asm/pnv-ocxl.h (Architecture m68k) and /arch/mips/include/asm-mips/pnv-ocxl.h (Architecture mips)


  1 /* SPDX-License-Identifier: GPL-2.0+ */             1 
  2 // Copyright 2017 IBM Corp.                       
  3 #ifndef _ASM_PNV_OCXL_H                           
  4 #define _ASM_PNV_OCXL_H                           
  5                                                   
  6 #include <linux/bitfield.h>                       
  7 #include <linux/pci.h>                            
  8                                                   
  9 #define PNV_OCXL_TL_MAX_TEMPLATE        63        
 10 #define PNV_OCXL_TL_BITS_PER_RATE       4         
 11 #define PNV_OCXL_TL_RATE_BUF_SIZE       ((PNV_    
 12                                                   
 13 #define PNV_OCXL_ATSD_TIMEOUT           1         
 14                                                   
 15 /* TLB Management Instructions */                 
 16 #define PNV_OCXL_ATSD_LNCH              0x00      
 17 /* Radix Invalidate */                            
 18 #define   PNV_OCXL_ATSD_LNCH_R          PPC_BI    
 19 /* Radix Invalidation Control                     
 20  * 0b00 Just invalidate TLB.                      
 21  * 0b01 Invalidate just Page Walk Cache.          
 22  * 0b10 Invalidate TLB, Page Walk Cache, and a    
 23  * caching of Partition and Process Table Entr    
 24  */                                               
 25 #define   PNV_OCXL_ATSD_LNCH_RIC        PPC_BI    
 26 /* Number and Page Size of translations to be     
 27 #define   PNV_OCXL_ATSD_LNCH_LP         PPC_BI    
 28 /* Invalidation Criteria                          
 29  * 0b00 Invalidate just the target VA.            
 30  * 0b01 Invalidate matching PID.                  
 31  */                                               
 32 #define   PNV_OCXL_ATSD_LNCH_IS         PPC_BI    
 33 /* 0b1: Process Scope, 0b0: Partition Scope */    
 34 #define   PNV_OCXL_ATSD_LNCH_PRS        PPC_BI    
 35 /* Invalidation Flag */                           
 36 #define   PNV_OCXL_ATSD_LNCH_B          PPC_BI    
 37 /* Actual Page Size to be invalidated             
 38  * 000 4KB                                        
 39  * 101 64KB                                       
 40  * 001 2MB                                        
 41  * 010 1GB                                        
 42  */                                               
 43 #define   PNV_OCXL_ATSD_LNCH_AP         PPC_BI    
 44 /* Defines the large page select                  
 45  * L=0b0 for 4KB pages                            
 46  * L=0b1 for large pages)                         
 47  */                                               
 48 #define   PNV_OCXL_ATSD_LNCH_L          PPC_BI    
 49 /* Process ID */                                  
 50 #define   PNV_OCXL_ATSD_LNCH_PID        PPC_BI    
 51 /* NoFlush – Assumed to be 0b0 */               
 52 #define   PNV_OCXL_ATSD_LNCH_F          PPC_BI    
 53 #define   PNV_OCXL_ATSD_LNCH_OCAPI_SLBI PPC_BI    
 54 #define   PNV_OCXL_ATSD_LNCH_OCAPI_SINGLETON      
 55 #define PNV_OCXL_ATSD_AVA               0x08      
 56 #define   PNV_OCXL_ATSD_AVA_AVA         PPC_BI    
 57 #define PNV_OCXL_ATSD_STAT              0x10      
 58                                                   
 59 int pnv_ocxl_get_actag(struct pci_dev *dev, u1    
 60 int pnv_ocxl_get_pasid_count(struct pci_dev *d    
 61                                                   
 62 int pnv_ocxl_get_tl_cap(struct pci_dev *dev, l    
 63                         char *rate_buf, int ra    
 64 int pnv_ocxl_set_tl_conf(struct pci_dev *dev,     
 65                          uint64_t rate_buf_phy    
 66                                                   
 67 int pnv_ocxl_get_xsl_irq(struct pci_dev *dev,     
 68 void pnv_ocxl_unmap_xsl_regs(void __iomem *dsi    
 69                              void __iomem *tfc    
 70 int pnv_ocxl_map_xsl_regs(struct pci_dev *dev,    
 71                           void __iomem **dar,     
 72                           void __iomem **pe_ha    
 73                                                   
 74 int pnv_ocxl_spa_setup(struct pci_dev *dev, vo    
 75 void pnv_ocxl_spa_release(void *platform_data)    
 76 int pnv_ocxl_spa_remove_pe_from_cache(void *pl    
 77                                                   
 78 int pnv_ocxl_map_lpar(struct pci_dev *dev, uin    
 79                       uint64_t lpcr, void __io    
 80 void pnv_ocxl_unmap_lpar(void __iomem *arva);     
 81 void pnv_ocxl_tlb_invalidate(void __iomem *arv    
 82                              unsigned long pid    
 83                              unsigned long add    
 84                              unsigned long pag    
 85 #endif /* _ASM_PNV_OCXL_H */                      
 86                                                   

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