Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sym_hipd.c File Reference
#include <linux/slab.h>
#include <asm/param.h>
#include "sym_glue.h"
#include "sym_nvram.h"

Go to the source code of this file.

Macros

#define _5M   5000000
 
#define burst_length(bc)   (!(bc))? 0 : 1 << (bc)
 
#define burst_code(dmode, ctest4, ctest5)   (ctest4) & 0x80? 0 : (((dmode) & 0xc0) >> 6) + ((ctest5) & 0x04) + 1
 
#define sym_num_devs   (ARRAY_SIZE(sym_dev_table))
 

Functions

void sym_print_xerr (struct scsi_cmnd *cmd, int x_status)
 
int sym_reset_scsi_bus (struct sym_hcb *np, int enab_int)
 
void sym_dump_registers (struct Scsi_Host *shost)
 
struct sym_chipsym_lookup_chip_table (u_short device_id, u_char revision)
 
void sym_put_start_queue (struct sym_hcb *np, struct sym_ccb *cp)
 
void sym_start_up (struct Scsi_Host *shost, int reason)
 
irqreturn_t sym_interrupt (struct Scsi_Host *shost)
 
int sym_clear_tasks (struct sym_hcb *np, int cam_status, int target, int lun, int task)
 
struct sym_ccbsym_get_ccb (struct sym_hcb *np, struct scsi_cmnd *cmd, u_char tag_order)
 
void sym_free_ccb (struct sym_hcb *np, struct sym_ccb *cp)
 
struct sym_lcbsym_alloc_lcb (struct sym_hcb *np, u_char tn, u_char ln)
 
int sym_free_lcb (struct sym_hcb *np, u_char tn, u_char ln)
 
int sym_queue_scsiio (struct sym_hcb *np, struct scsi_cmnd *cmd, struct sym_ccb *cp)
 
int sym_reset_scsi_target (struct sym_hcb *np, int target)
 
int sym_abort_scsiio (struct sym_hcb *np, struct scsi_cmnd *cmd, int timed_out)
 
int sym_hcb_attach (struct Scsi_Host *shost, struct sym_fw *fw, struct sym_nvram *nvram)
 
void sym_hcb_free (struct sym_hcb *np)
 

Macro Definition Documentation

#define _5M   5000000

Definition at line 474 of file sym_hipd.c.

#define burst_code (   dmode,
  ctest4,
  ctest5 
)    (ctest4) & 0x80? 0 : (((dmode) & 0xc0) >> 6) + ((ctest5) & 0x04) + 1

Definition at line 596 of file sym_hipd.c.

#define burst_length (   bc)    (!(bc))? 0 : 1 << (bc)

Definition at line 591 of file sym_hipd.c.

#define sym_num_devs   (ARRAY_SIZE(sym_dev_table))

Definition at line 1283 of file sym_hipd.c.

Function Documentation

int sym_abort_scsiio ( struct sym_hcb np,
struct scsi_cmnd cmd,
int  timed_out 
)

Definition at line 5326 of file sym_hipd.c.

struct sym_lcb* sym_alloc_lcb ( struct sym_hcb np,
u_char  tn,
u_char  ln 
)
read

Definition at line 4969 of file sym_hipd.c.

int sym_clear_tasks ( struct sym_hcb np,
int  cam_status,
int  target,
int  lun,
int  task 
)

Definition at line 3194 of file sym_hipd.c.

void sym_dump_registers ( struct Scsi_Host shost)

Definition at line 1188 of file sym_hipd.c.

void sym_free_ccb ( struct sym_hcb np,
struct sym_ccb cp 
)

Definition at line 4773 of file sym_hipd.c.

int sym_free_lcb ( struct sym_hcb np,
u_char  tn,
u_char  ln 
)

Definition at line 5100 of file sym_hipd.c.

struct sym_ccb* sym_get_ccb ( struct sym_hcb np,
struct scsi_cmnd cmd,
u_char  tag_order 
)
read

Definition at line 4646 of file sym_hipd.c.

int sym_hcb_attach ( struct Scsi_Host shost,
struct sym_fw fw,
struct sym_nvram nvram 
)

Definition at line 5576 of file sym_hipd.c.

void sym_hcb_free ( struct sym_hcb np)

Definition at line 5799 of file sym_hipd.c.

irqreturn_t sym_interrupt ( struct Scsi_Host shost)

Definition at line 2812 of file sym_hipd.c.

struct sym_chip* sym_lookup_chip_table ( u_short  device_id,
u_char  revision 
)
read

Definition at line 1292 of file sym_hipd.c.

void sym_print_xerr ( struct scsi_cmnd cmd,
int  x_status 
)

Definition at line 93 of file sym_hipd.c.

void sym_put_start_queue ( struct sym_hcb np,
struct sym_ccb cp 
)

Definition at line 1480 of file sym_hipd.c.

int sym_queue_scsiio ( struct sym_hcb np,
struct scsi_cmnd cmd,
struct sym_ccb cp 
)

Definition at line 5136 of file sym_hipd.c.

int sym_reset_scsi_bus ( struct sym_hcb np,
int  enab_int 
)

Definition at line 190 of file sym_hipd.c.

int sym_reset_scsi_target ( struct sym_hcb np,
int  target 
)

Definition at line 5277 of file sym_hipd.c.

void sym_start_up ( struct Scsi_Host shost,
int  reason 
)

Definition at line 1703 of file sym_hipd.c.