Linux kernel & device driver programming

Cross-Referenced Linux and Device Driver Code

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]
Version: [ 2.6.11.8 ] [ 2.6.25 ] [ 2.6.25.8 ] [ 2.6.31.13 ] Architecture: [ i386 ]

Diff markup

Differences between /linux/drivers/infiniband/hw/cxgb3/cxio_resource.h (Version 2.6.25) and /linux/drivers/infiniband/hw/cxgb3/cxio_resource.h (Version 2.6.11.8)


  1 /*                                                  1 
  2  * Copyright (c) 2006 Chelsio, Inc. All rights    
  3  *                                                
  4  * This software is available to you under a c    
  5  * licenses.  You may choose to be licensed un    
  6  * General Public License (GPL) Version 2, ava    
  7  * COPYING in the main directory of this sourc    
  8  * OpenIB.org BSD license below:                  
  9  *                                                
 10  *     Redistribution and use in source and bi    
 11  *     without modification, are permitted pro    
 12  *     conditions are met:                        
 13  *                                                
 14  *      - Redistributions of source code must     
 15  *        copyright notice, this list of condi    
 16  *        disclaimer.                             
 17  *                                                
 18  *      - Redistributions in binary form must     
 19  *        copyright notice, this list of condi    
 20  *        disclaimer in the documentation and/    
 21  *        provided with the distribution.         
 22  *                                                
 23  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT W    
 24  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMIT    
 25  * MERCHANTABILITY, FITNESS FOR A PARTICULAR P    
 26  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTH    
 27  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER L    
 28  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARIS    
 29  * CONNECTION WITH THE SOFTWARE OR THE USE OR     
 30  * SOFTWARE.                                      
 31  */                                               
 32 #ifndef __CXIO_RESOURCE_H__                       
 33 #define __CXIO_RESOURCE_H__                       
 34                                                   
 35 #include <linux/kernel.h>                         
 36 #include <linux/random.h>                         
 37 #include <linux/slab.h>                           
 38 #include <linux/kfifo.h>                          
 39 #include <linux/spinlock.h>                       
 40 #include <linux/errno.h>                          
 41 #include <linux/genalloc.h>                       
 42 #include "cxio_hal.h"                             
 43                                                   
 44 extern int cxio_hal_init_rhdl_resource(u32 nr_    
 45 extern void cxio_hal_destroy_rhdl_resource(voi    
 46 extern int cxio_hal_init_resource(struct cxio_    
 47                                   u32 nr_tpt,     
 48                                   u32 nr_rqt,     
 49                                   u32 nr_pdid)    
 50 extern u32 cxio_hal_get_stag(struct cxio_hal_r    
 51 extern void cxio_hal_put_stag(struct cxio_hal_    
 52 extern u32 cxio_hal_get_qpid(struct cxio_hal_r    
 53 extern void cxio_hal_put_qpid(struct cxio_hal_    
 54 extern u32 cxio_hal_get_cqid(struct cxio_hal_r    
 55 extern void cxio_hal_put_cqid(struct cxio_hal_    
 56 extern void cxio_hal_destroy_resource(struct c    
 57                                                   
 58 #define PBL_OFF(rdev_p, a) ( (a) - (rdev_p)->r    
 59 extern int cxio_hal_pblpool_create(struct cxio    
 60 extern void cxio_hal_pblpool_destroy(struct cx    
 61 extern u32 cxio_hal_pblpool_alloc(struct cxio_    
 62 extern void cxio_hal_pblpool_free(struct cxio_    
 63                                                   
 64 #define RQT_OFF(rdev_p, a) ( (a) - (rdev_p)->r    
 65 extern int cxio_hal_rqtpool_create(struct cxio    
 66 extern void cxio_hal_rqtpool_destroy(struct cx    
 67 extern u32 cxio_hal_rqtpool_alloc(struct cxio_    
 68 extern void cxio_hal_rqtpool_free(struct cxio_    
 69 #endif                                            
 70                                                   
  This page was automatically generated by the LXR engine.