Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
aic94xx_seq.c File Reference
#include <linux/delay.h>
#include <linux/gfp.h>
#include <linux/pci.h>
#include <linux/module.h>
#include <linux/firmware.h>
#include "aic94xx_reg.h"
#include "aic94xx_hwi.h"
#include "aic94xx_seq.h"
#include "aic94xx_dump.h"

Go to the source code of this file.


#define PAUSE_DELAY   1
#define PAUSE_TRIES   1000
#define LSEQ_CODEPAGE_SIZE   4096
#define MAX_DMA_OVLY_COUNT   ((1U << 14)-1)


int asd_release_firmware (void)
int asd_init_seqs (struct asd_ha_struct *asd_ha)
int asd_start_seqs (struct asd_ha_struct *asd_ha)
void asd_update_port_links (struct asd_ha_struct *asd_ha, struct asd_phy *phy)

Macro Definition Documentation


Definition at line 284 of file aic94xx_seq.c.

#define LSEQ_CODEPAGE_SIZE   4096
#define MAX_DMA_OVLY_COUNT   ((1U << 14)-1)

Definition at line 287 of file aic94xx_seq.c.

#define PAUSE_DELAY   1

Definition at line 44 of file aic94xx_seq.c.

#define PAUSE_TRIES   1000

Definition at line 45 of file aic94xx_seq.c.

Function Documentation

int asd_init_seqs ( struct asd_ha_struct asd_ha)

Definition at line 1314 of file aic94xx_seq.c.

int asd_release_firmware ( void  )

Definition at line 1229 of file aic94xx_seq.c.

int asd_start_seqs ( struct asd_ha_struct asd_ha)

Definition at line 1338 of file aic94xx_seq.c.

void asd_update_port_links ( struct asd_ha_struct asd_ha,
struct asd_phy phy 

asd_update_port_links – update port_map_by_links and phy_is_up : pointer to the phy which has been added to a port

1) When a link reset has completed and we got BYTES DMAED with a valid frame we call this function for that phy, to indicate that the phy is up, i.e. we update the phy_is_up in DDB 0. The sequencer checks phy_is_up when pending SCBs are to be sent, and when an open address frame has been received.

2) When we know of ports, we call this function to update the map of phys participaing in that port, i.e. we update the port_map_by_links in DDB 0. When a HARD_RESET primitive has been received, the sequencer disables all phys in that port. port_map_by_links is also used as the conn_mask byte in the initiator/target port DDB.

Definition at line 1381 of file aic94xx_seq.c.