Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/pci.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/completion.h>
#include <linux/blkdev.h>
#include <linux/delay.h>
#include <linux/kthread.h>
#include <linux/interrupt.h>
#include <linux/semaphore.h>
#include <scsi/scsi.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_cmnd.h>
#include "aacraid.h"
Go to the source code of this file.
Macros | |
#define | AIF_SNIFF_TIMEOUT (30*HZ) |
Functions | |
void | aac_fib_map_free (struct aac_dev *dev) |
int | aac_fib_setup (struct aac_dev *dev) |
struct fib * | aac_fib_alloc (struct aac_dev *dev) |
void | aac_fib_free (struct fib *fibptr) |
void | aac_fib_init (struct fib *fibptr) |
int | aac_queue_get (struct aac_dev *dev, u32 *index, u32 qid, struct hw_fib *hw_fib, int wait, struct fib *fibptr, unsigned long *nonotify) |
int | aac_fib_send (u16 command, struct fib *fibptr, unsigned long size, int priority, int wait, int reply, fib_callback callback, void *callback_data) |
int | aac_consumer_get (struct aac_dev *dev, struct aac_queue *q, struct aac_entry **entry) |
void | aac_consumer_free (struct aac_dev *dev, struct aac_queue *q, u32 qid) |
int | aac_fib_adapter_complete (struct fib *fibptr, unsigned short size) |
int | aac_fib_complete (struct fib *fibptr) |
void | aac_printf (struct aac_dev *dev, u32 val) |
int | aac_reset_adapter (struct aac_dev *aac, int forced) |
int | aac_check_health (struct aac_dev *aac) |
int | aac_command_thread (void *data) |
#define AIF_SNIFF_TIMEOUT (30*HZ) |
int aac_fib_send | ( | u16 | command, |
struct fib * | fibptr, | ||
unsigned long | size, | ||
int | priority, | ||
int | wait, | ||
int | reply, | ||
fib_callback | callback, | ||
void * | callback_data | ||
) |
aac_fib_send - send a fib to the adapter : Command to send : The fib : Size of fib data area : Priority of Fib : Async/sync select : True if a reply is wanted : Called with reply : Passed to callback
Sends the requested FIB to the adapter and optionally will wait for a response FIB. If the caller does not wish to wait for a response than an event to wait on must be supplied. This event will be set when a response FIB is received from the adapter.
int aac_queue_get | ( | struct aac_dev * | dev, |
u32 * | index, | ||
u32 | qid, | ||
struct hw_fib * | hw_fib, | ||
int | wait, | ||
struct fib * | fibptr, | ||
unsigned long * | nonotify | ||
) |
aac_queue_get - get the next free QE : Adapter : Returned index : Priority of fib : Fib to associate with the queue entry : Wait if queue full : Driver fib object to go with fib : Don't notify the adapter
Gets the next free QE off the requested priorty adapter command queue and associates the Fib with the QE. The QE represented by index is ready to insert on the queue when this routine returns success.