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

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


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 #ifndef __ASM_PARISC_PCI_H                        
  3 #define __ASM_PARISC_PCI_H                        
  4                                                   
  5 #include <linux/scatterlist.h>                    
  6                                                   
  7                                                   
  8                                                   
  9 /*                                                
 10 ** HP PCI platforms generally support multiple    
 11 **    (workstations 1-~4, servers 2-~32)          
 12 **                                                
 13 ** Newer platforms number the busses across PC    
 14 ** E.g. 0, 8, 16, ...                             
 15 **                                                
 16 ** Under a PCI bus, most HP platforms support     
 17 ** levels deep. See "Bit3" product line.          
 18 */                                                
 19 #define PCI_MAX_BUSSES  256                       
 20                                                   
 21                                                   
 22 /* To be used as: mdelay(pci_post_reset_delay)    
 23  *                                                
 24  * post_reset is the time the kernel should st    
 25  * accessing the PCI bus once #RESET is de-ass    
 26  * PCI spec somewhere says 1 second but with m    
 27  * this makes the boot time much longer than n    
 28  * 20ms seems to work for all the HP PCI imple    
 29  */                                               
 30 #define pci_post_reset_delay 50                   
 31                                                   
 32                                                   
 33 /*                                                
 34 ** pci_hba_data (aka H2P_OBJECT in HP/UX)         
 35 **                                                
 36 ** This is the "common" or "base" data structu    
 37 ** (eg Dino or LBA) are required to place at t    
 38 ** platform_data structure.  I've heard this c    
 39 **                                                
 40 ** Data needed by pcibios layer belongs here.     
 41 */                                                
 42 struct pci_hba_data {                             
 43         void __iomem   *base_addr;      /* aka    
 44         const struct parisc_device *dev; /* de    
 45         struct pci_bus *hba_bus;        /* pri    
 46         int             hba_num;        /* I/O    
 47         struct resource bus_num;        /* PCI    
 48         struct resource io_space;       /* PIO    
 49         struct resource lmmio_space;    /* bus    
 50         struct resource elmmio_space;   /* add    
 51         struct resource gmmio_space;    /* bus    
 52                                                   
 53         /* NOTE: Dino code assumes it can use     
 54          * elmmio_space and gmmio_space as a c    
 55          * resources.  This #define represents    
 56         #define DINO_MAX_LMMIO_RESOURCES          
 57                                                   
 58         unsigned long   lmmio_space_offset;  /    
 59         struct ioc      *iommu;         /* IOM    
 60         /* REVISIT - spinlock to protect resou    
 61                                                   
 62         #define HBA_NAME_SIZE 16                  
 63         char io_name[HBA_NAME_SIZE];              
 64         char lmmio_name[HBA_NAME_SIZE];           
 65         char elmmio_name[HBA_NAME_SIZE];          
 66         char gmmio_name[HBA_NAME_SIZE];           
 67 };                                                
 68                                                   
 69 /*                                                
 70 ** We support 2^16 I/O ports per HBA.  These a    
 71 ** 0xbbxxxx, where bb is the bus number and xx    
 72 ** space address.                                 
 73 */                                                
 74 #define HBA_PORT_SPACE_BITS     16                
 75                                                   
 76 #define HBA_PORT_BASE(h)        ((h) << HBA_PO    
 77 #define HBA_PORT_SPACE_SIZE     (1UL << HBA_PO    
 78                                                   
 79 #define PCI_PORT_HBA(a)         ((a) >> HBA_PO    
 80 #define PCI_PORT_ADDR(a)        ((a) & (HBA_PO    
 81                                                   
 82 #ifdef CONFIG_64BIT                               
 83 #define PCI_F_EXTEND            0xffffffff0000    
 84 #else   /* !CONFIG_64BIT */                       
 85 #define PCI_F_EXTEND            0UL               
 86 #endif /* !CONFIG_64BIT */                        
 87                                                   
 88 /*                                                
 89 ** Most PCI devices (eg Tulip, NCR720) also ex    
 90 ** to both MMIO and I/O port space.  Due to po    
 91 ** access under HP PCI bus adapters, strongly     
 92 ** address space.                                 
 93 **                                                
 94 ** While I'm at it more PA programming notes:     
 95 **                                                
 96 ** 1) MMIO stores (writes) are posted operatio    
 97 **    gets an "ACK" before the write actually     
 98 **    to the same device (or typically the bus    
 99 **    force in-flight write transaction(s) out    
100 **    before the read can complete.               
101 **                                                
102 ** 2) The Programmed I/O (PIO) data may not al    
103 **    respect to DMA on all platforms. Ie PIO     
104 **    before in-flight DMA reaches memory. Sin    
105 **    are I/O coherent, it generally doesn't m    
106 **    it does.                                    
107 **                                                
108 ** I've helped device driver writers debug bot    
109 */                                                
110 struct pci_port_ops {                             
111           u8 (*inb)  (struct pci_hba_data *hba    
112          u16 (*inw)  (struct pci_hba_data *hba    
113          u32 (*inl)  (struct pci_hba_data *hba    
114         void (*outb) (struct pci_hba_data *hba    
115         void (*outw) (struct pci_hba_data *hba    
116         void (*outl) (struct pci_hba_data *hba    
117 };                                                
118                                                   
119                                                   
120 struct pci_bios_ops {                             
121         void (*init)(void);                       
122         void (*fixup_bus)(struct pci_bus *bus)    
123 };                                                
124                                                   
125 /*                                                
126 ** Stuff declared in arch/parisc/kernel/pci.c     
127 */                                                
128 extern struct pci_port_ops *pci_port;             
129 extern struct pci_bios_ops *pci_bios;             
130                                                   
131 #ifdef CONFIG_PCI                                 
132 extern void pcibios_register_hba(struct pci_hb    
133 #else                                             
134 static inline void pcibios_register_hba(struct    
135 {                                                 
136 }                                                 
137 #endif                                            
138 extern void pcibios_init_bridge(struct pci_dev    
139                                                   
140 /*                                                
141  * pcibios_assign_all_busses() is used in driv    
142  *   0 == check if bridge is numbered before r    
143  *   1 == pci_do_scan_bus() should automatical    
144  *                                                
145  *   We *should* set this to zero for "legacy"    
146  *   for PAT platforms.                           
147  *                                                
148  *   But legacy platforms also need to renumbe    
149  *   Bus controller.  Adding a 4-port Tulip ca    
150  *   bus of a C200 resulted in the secondary b    
151  *   The second PCI host bus controller's root    
152  *   assigned bus number 1 by firmware and sys    
153  *                                                
154  *   Firmware isn't doing anything wrong here     
155  *   is its own PCI domain.  It's simpler and     
156  *   the busses rather than treat each Dino as    
157  *   Eventually, we may want to introduce PCI     
158  *   rp7420/8420 boxes and then revisit this i    
159  */                                               
160 #define pcibios_assign_all_busses()     (1)       
161                                                   
162 #define PCIBIOS_MIN_IO          0x10              
163 #define PCIBIOS_MIN_MEM         0x1000 /* NBPG    
164                                                   
165 #define HAVE_PCI_MMAP                             
166 #define ARCH_GENERIC_PCI_MMAP_RESOURCE            
167                                                   
168 #endif /* __ASM_PARISC_PCI_H */                   
169                                                   

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