aboutsummaryrefslogtreecommitdiffstats
path: root/arch/h8300/include/asm/or
diff options
context:
space:
mode:
Diffstat (limited to 'arch/h8300/include/asm/or')
0 files changed, 0 insertions, 0 deletions
k'>wip-kshark The LITMUS^RT kernel.Bjoern Brandenburg
aboutsummaryrefslogblamecommitdiffstats
path: root/drivers/pci/probe.c
blob: 38e403dddf6e0e07166585e226d47f2793bd86f8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                         
                           
                                   
                


                                                                     
 






                                 



                                                   





























                                                               



                                                        
 


                                                      
                                                


                        

                           
 




                                                                        

                              
  

                
                                                  
 
                                                  


                                            
                                          
                                         




                                    
                                              
                                        







                                             
                                                    
 
                                                                       














                                                              
                                                                    
 
                     
                            
 
                                                                          


                                                        
         
 



                                                  
 




                                                        
                                                      

                                          

                                           
                
                                                            

                      
                     

 

                                                                             







                                                  
   
                                                                
                                                               
 
                        
                     
                                                      
                                                       
 
                                                
 
                                                    

                                                                  



                                                                       

         


                                            
                                                   




                                                                      


                                                                           
           
                                    









                                                                           


                                                   
                                                      
                                                                               









                                                              
                                             
















                                                         
                                                                               
                                           
                                  

                 
                                                         


                                                                            

                                          
                                            
                        

                                                

                 
                                           
 
                        

                                  

                                    

         
                                                   



















                                                                                                      
 





                       

                                                   

                                                                  
                        
                                                                               
                                        
                                                                               
 
                                                        

 

                                                                              
                              
 

                                                           
                                                      
                                                                       
         
 
                  
                                                                        
                                        



                                                                            


         
                                                     


                                          
                                                           
                                     








                                                      
 


                                                              

                                             


                                                                            
 

                                                                              

                                                             

         
                            
                                                                                   
                                    

                                                           
                                                                                
         

 
                                                       



                                          
                                     
                             



                                                                   

                                                                             
                            
                                                                                         

                                             
                                                           
                                                                                
         

 
                                                            



                                          
                                     
                             



                                                                        

                                                                           


                                                                                 
 









                                                                                  

                                                                      

                                                          

                                                                         




                                       
                            



                                                                              

                                             
                                                           
                                                                                


         
                                                 

                                          
                             




                                                                              

                                                    

                                                                  



                                                                            


                                         

                               



                                                                             

                                                                                        

                                                

                 

 
                                          


                          
                                            









                                             


                 











                                                                 




                                                                       

                            
 

                                         


                      
                                        

















                                               
                                         


                                               
                                               















                                                             
                                                                           


                                          



















                                                          
 










                                  




                                                  












                                                                              



                                                           
 



                                                                        
                                                        
                                                           
                                                        

                                                                                








                                                                

                                                            



                       
                                  


                            
                                                                             
                                                                                   
 
                                                                            




                                                     

                                                                             


                              
                







                                                                  

                                 
                                 
                                         
                                             
 
                                                                            
                                                        

                                         
                                                                            




                                                        


                                                      
 



                                                   


                                                 
                                          
                                   

                                 
                                                          
                                                       




                                                                               



                                           

                               


                                                                


                     
                                                                                             



                                                        
                    
                                         
                                                               
                                       
         


                     
                                                                              

                                               





                                                              

                                                              




                                                                              









                                                                   
                                                                                


                                                                    
                            
                 
                                           
                       

                                                            


                                           
 

                                                                               
 




                                                                               

                                               



                                                                                                      


                           
                                                                    
                                                   



                                                                   


                                                                         




                                                                              
                                 


                                                                            



                                                                            
                   
                                                                    
                             
                                                                     

                                         
                                                 
                                                                               
                                                 

                 


                                                 

                                                  




                                                                         
                            
                                                                  







                                                                            
                                 
                 



                                                               
                                                                      






                                                                      
                                                                  
                 

                                                                  

                                                                       








                                                                   
 





                                                                         
                                                 






                                                                          

                                                                      




                                                                       





                                                                      

                                                                 


                                                                    

                                                                             

                                                                              













                                                                               
                                 
                                                                       



                                                                    
                                                        


                                                                     


                                                                             
 
                                                                     
                             

                                                                
                                                    





                                                                     

                                                                             
                                                    
                                                



                                  


                                                             











                                                              
                       




                                                                    
                                             






                                                        
                             
                                                                
                                     

                                                                 

 
                                                  
 

                  
                                                                 



                                            
                                                                      
 



                                                                   
                                                                      

                                                                         

                                                                           
   
                                         

                  

                              
                    

                                     








                                                                  









                                                                        
 


                                                                             

                                                               
                                     
                                                                       
 

                                                                                
 


                                                
                                   
                                         


                                                   

                                                     








                                                                                           










                                                                                  



                                                                
                                                                           



                                                                
                                                                           

                                                



                                                                
                                                                           



                                                                
                                                                           

                         






                                                                           
                                             
                                  

                                                              
                                             




                                                                                                     











                                                                                              

                                                               
                            

            

                                                                                






                                                         


                                                         
                             
                                       

 











                                                                                   
                                          
                                     
                                        
                                  




                                                                           
                   







                                                                            
                                               
 
                   
                                     
 
                                                                           













                                           




                                                   
 
                                








                                                                            
                                           




                                  
                                                  






                                                          
                                       
                                      
                                    


                   





                                   

                             

                                                                       
 

                      

                                                                    

                                                                   


                                                   

                                                



                                     

                              

                                                                            
                                                                          
                                          
                                                                         


                                                                           
                                     


                 















                                                                      
                                 


                            
                           

                                         
 

                             
                                    
                                      


                            



                   




                                                      


                                                            




                                

                                               
                               


                                            

                                                
                            

 
                                                             
 

                

                                           
 
                                                     
                                           
                                             
                                                   
 
                                             
                                                  
 


                                                


                                                    


                                         

                                             
 



                                                           
                                 
                                                     
                               
 








                                                 

 
                                                                            


                            





                                       




                                          


                   
                                      
 
                                                                              
 


                         
 





                                                                       
 



                                                                            
 





                                                                      
 





                                              
 

                                            
                                                            
                         
                                                               
                                                  



                         






                                                               
                              

                                           
   
                                                 
 
                            
                            


                                                               
 
                                                 


                           

                     
                                                                             




                                                              

                 
 

                                           

                                                     


                  






                                                           













                                                                               
           

                                                         









                                                        
               

                                                      
                                            
 

                                                                   
                                                                         




                                                                                




                                                                                
                           
                                                                     






                                                                         
                                                
 
                     
 


                                                                             


                                                    

                                                                             

                                                                          
           
                                 

                                                                        
                                                                         

                                                                          
           

                                                             

                              
 
                                                                           

                          




                                                                                

 















                                                                                                                                                 

                                                                  
                          



                              




                                                   

                                     

                                 
                             
 
                                                                         

                                                                               



                 
                                                                             


                                                                           
                                                     
 
                 
 
                       

                       
                                    


                                                                               
                                                                           




                                                                              
                                               
                                             
 






                                                           
                                               
 
                                                    
 
                                                            

                            
                                             




                                                  


                                                  



                                                                        
                             
                                                       
                                       
                                  

         













                                                                           
                                                                      


                   











                                                                             







                                                   

                                                                                
 
                  
                                       
                               
                                                  
                             


                               


                            
                            


                             
                                            

                                                 
                                                                                         
                                                         

                             
 




                                          
                                                          
                                                                          
                                                    



                              
 
                                              



                                         
                                             
                                               
                               
 


                                                           

                                     
                                                                  
                                         

                                       
 

                           


                                                                




                                                                                   




                                                                



                                                                  










                                                                              

         



                                                 

                 
                  

                                        
        


                    
 






















                                                                                                







































                                                                      
                                                                 

                                                                                

                                              
                          






                                                          




                                                                      











                                                                                 




                                 
                                                 
                                                            

                                                            
                             

                          

                                                       
                                                     
                                                                       
              
                                      

                                                   

                 

                                     
                                                          






                                                       
                                                     

                                                                     
                                      







                                                   
   























                                                                       




















                                                             
                               

                               
                                      
 
                                                                                     
 


                                                  











                                                                          
                                       
 
                                                               
 
/*
 * probe.c - PCI detection and setup code
 */

#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/cpumask.h>
#include <linux/pci-aspm.h>
#include <asm-generic/pci-bridge.h>
#include "pci.h"

#define CARDBUS_LATENCY_TIMER	176	/* secondary latency timer */
#define CARDBUS_RESERVE_BUSNR	3

struct resource busn_resource = {
	.name	= "PCI busn",
	.start	= 0,
	.end	= 255,
	.flags	= IORESOURCE_BUS,
};

/* Ugh.  Need to stop exporting this to modules. */
LIST_HEAD(pci_root_buses);
EXPORT_SYMBOL(pci_root_buses);

static LIST_HEAD(pci_domain_busn_res_list);

struct pci_domain_busn_res {
	struct list_head list;
	struct resource res;
	int domain_nr;
};

static struct resource *get_pci_domain_busn_res(int domain_nr)
{
	struct pci_domain_busn_res *r;

	list_for_each_entry(r, &pci_domain_busn_res_list, list)
		if (r->domain_nr == domain_nr)
			return &r->res;

	r = kzalloc(sizeof(*r), GFP_KERNEL);
	if (!r)
		return NULL;

	r->domain_nr = domain_nr;
	r->res.start = 0;
	r->res.end = 0xff;