Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ibmvstgt.c File Reference
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <scsi/scsi.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_transport_srp.h>
#include <scsi/scsi_tgt.h>
#include <scsi/libsrp.h>
#include <asm/hvcall.h>
#include <asm/iommu.h>
#include <asm/prom.h>
#include <asm/vio.h>
#include "ibmvscsi.h"

Go to the source code of this file.

Data Structures

struct  vio_port
 

Macros

#define INITIAL_SRP_LIMIT   16
 
#define DEFAULT_MAX_SECTORS   256
 
#define TGT_NAME   "ibmvstgt"
 
#define h_copy_rdma(l, sa, sb, da, db)   plpar_hcall_norets(H_COPY_RDMA, l, sa, sb, da, db)
 
#define h_send_crq(ua, l, h)   plpar_hcall_norets(H_SEND_CRQ, ua, l, h)
 
#define h_reg_crq(ua, tok, sz)   plpar_hcall_norets(H_REG_CRQ, ua, tok, sz);
 
#define h_free_crq(ua)   plpar_hcall_norets(H_FREE_CRQ, ua);
 
#define eprintk(fmt, args...)
 
#define dprintk(fmt, args...)
 
#define SRP_RSP_SENSE_DATA_LEN   18
 

Functions

int send_adapter_info (struct iu_entry *iue, dma_addr_t remote_buffer, uint16_t length)
 
 MODULE_DEVICE_TABLE (vio, ibmvstgt_device_table)
 
 MODULE_DESCRIPTION ("IBM Virtual SCSI Target")
 
 MODULE_AUTHOR ("Santiago Leon")
 
 MODULE_LICENSE ("GPL")
 
 module_init (ibmvstgt_init)
 
 module_exit (ibmvstgt_exit)
 

Macro Definition Documentation

#define DEFAULT_MAX_SECTORS   256

Definition at line 40 of file ibmvstgt.c.

#define dprintk (   fmt,
  args... 
)

Definition at line 62 of file ibmvstgt.c.

#define eprintk (   fmt,
  args... 
)
Value:
do { \
printk("%s(%d) " fmt, __func__, __LINE__, ##args); \
} while (0)

Definition at line 57 of file ibmvstgt.c.

#define h_copy_rdma (   l,
  sa,
  sb,
  da,
  db 
)    plpar_hcall_norets(H_COPY_RDMA, l, sa, sb, da, db)

Definition at line 47 of file ibmvstgt.c.

#define h_free_crq (   ua)    plpar_hcall_norets(H_FREE_CRQ, ua);

Definition at line 53 of file ibmvstgt.c.

#define h_reg_crq (   ua,
  tok,
  sz 
)    plpar_hcall_norets(H_REG_CRQ, ua, tok, sz);

Definition at line 51 of file ibmvstgt.c.

#define h_send_crq (   ua,
  l,
  h 
)    plpar_hcall_norets(H_SEND_CRQ, ua, l, h)

Definition at line 49 of file ibmvstgt.c.

#define INITIAL_SRP_LIMIT   16

Definition at line 39 of file ibmvstgt.c.

#define SRP_RSP_SENSE_DATA_LEN   18

Definition at line 137 of file ibmvstgt.c.

#define TGT_NAME   "ibmvstgt"

Definition at line 42 of file ibmvstgt.c.

Function Documentation

MODULE_AUTHOR ( "Santiago Leon"  )
MODULE_DESCRIPTION ( "IBM Virtual SCSI Target"  )
MODULE_DEVICE_TABLE ( vio  ,
ibmvstgt_device_table   
)
module_exit ( ibmvstgt_exit  )
module_init ( ibmvstgt_init  )
MODULE_LICENSE ( "GPL"  )
int send_adapter_info ( struct iu_entry iue,
dma_addr_t  remote_buffer,
uint16_t  length 
)

Definition at line 315 of file ibmvstgt.c.