Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
pcie.h File Reference
#include <linux/pci.h>
#include <linux/pcieport_if.h>
#include <linux/interrupt.h>
#include "main.h"

Go to the source code of this file.

Data Structures

struct  mwifiex_pcie_buf_desc
 
struct  pcie_service_card
 

Macros

#define PCIE8766_DEFAULT_FW_NAME   "mrvl/pcie8766_uapsta.bin"
 
#define MWIFIEX_MAX_TXRX_BD   0x20
 
#define MWIFIEX_TXBD_MASK   0x3F
 
#define MWIFIEX_RXBD_MASK   0x3F
 
#define MWIFIEX_MAX_EVT_BD   0x04
 
#define MWIFIEX_EVTBD_MASK   0x07
 
#define PCIE_SCRATCH_0_REG   0xC10
 
#define PCIE_SCRATCH_1_REG   0xC14
 
#define PCIE_CPU_INT_EVENT   0xC18
 
#define PCIE_CPU_INT_STATUS   0xC1C
 
#define PCIE_HOST_INT_STATUS   0xC30
 
#define PCIE_HOST_INT_MASK   0xC34
 
#define PCIE_HOST_INT_STATUS_MASK   0xC3C
 
#define PCIE_SCRATCH_2_REG   0xC40
 
#define PCIE_SCRATCH_3_REG   0xC44
 
#define PCIE_SCRATCH_4_REG   0xCD0
 
#define PCIE_SCRATCH_5_REG   0xCD4
 
#define PCIE_SCRATCH_6_REG   0xCD8
 
#define PCIE_SCRATCH_7_REG   0xCDC
 
#define PCIE_SCRATCH_8_REG   0xCE0
 
#define PCIE_SCRATCH_9_REG   0xCE4
 
#define PCIE_SCRATCH_10_REG   0xCE8
 
#define PCIE_SCRATCH_11_REG   0xCEC
 
#define PCIE_SCRATCH_12_REG   0xCF0
 
#define CPU_INTR_DNLD_RDY   BIT(0)
 
#define CPU_INTR_DOOR_BELL   BIT(1)
 
#define CPU_INTR_SLEEP_CFM_DONE   BIT(2)
 
#define CPU_INTR_RESET   BIT(3)
 
#define HOST_INTR_DNLD_DONE   BIT(0)
 
#define HOST_INTR_UPLD_RDY   BIT(1)
 
#define HOST_INTR_CMD_DONE   BIT(2)
 
#define HOST_INTR_EVENT_RDY   BIT(3)
 
#define HOST_INTR_MASK
 
#define MWIFIEX_BD_FLAG_ROLLOVER_IND   BIT(7)
 
#define MWIFIEX_BD_FLAG_FIRST_DESC   BIT(0)
 
#define MWIFIEX_BD_FLAG_LAST_DESC   BIT(1)
 
#define REG_CMD_ADDR_LO   PCIE_SCRATCH_0_REG
 
#define REG_CMD_ADDR_HI   PCIE_SCRATCH_1_REG
 
#define REG_CMD_SIZE   PCIE_SCRATCH_2_REG
 
#define REG_CMDRSP_ADDR_LO   PCIE_SCRATCH_4_REG
 
#define REG_CMDRSP_ADDR_HI   PCIE_SCRATCH_5_REG
 
#define REG_TXBD_RDPTR   PCIE_SCRATCH_6_REG
 
#define REG_TXBD_WRPTR   PCIE_SCRATCH_7_REG
 
#define REG_RXBD_RDPTR   PCIE_SCRATCH_8_REG
 
#define REG_RXBD_WRPTR   PCIE_SCRATCH_9_REG
 
#define REG_EVTBD_RDPTR   PCIE_SCRATCH_10_REG
 
#define REG_EVTBD_WRPTR   PCIE_SCRATCH_11_REG
 
#define REG_DRV_READY   PCIE_SCRATCH_12_REG
 
#define MAX_WRITE_IOMEM_RETRY   2
 
#define MWIFIEX_PCIE_BLOCK_SIZE_FW_DNLD   256
 
#define FW_AWAKE_COOKIE   (0xAA55AA55)
 

Variables

struct mwifiex_pcie_buf_desc __packed
 

Macro Definition Documentation

#define CPU_INTR_DNLD_RDY   BIT(0)

Definition at line 61 of file pcie.h.

#define CPU_INTR_DOOR_BELL   BIT(1)

Definition at line 62 of file pcie.h.

#define CPU_INTR_RESET   BIT(3)

Definition at line 64 of file pcie.h.

#define CPU_INTR_SLEEP_CFM_DONE   BIT(2)

Definition at line 63 of file pcie.h.

#define FW_AWAKE_COOKIE   (0xAA55AA55)

Definition at line 105 of file pcie.h.

#define HOST_INTR_CMD_DONE   BIT(2)

Definition at line 68 of file pcie.h.

#define HOST_INTR_DNLD_DONE   BIT(0)

Definition at line 66 of file pcie.h.

#define HOST_INTR_EVENT_RDY   BIT(3)

Definition at line 69 of file pcie.h.

#define HOST_INTR_MASK
Value:
HOST_INTR_UPLD_RDY | \
HOST_INTR_CMD_DONE | \
HOST_INTR_EVENT_RDY)

Definition at line 70 of file pcie.h.

#define HOST_INTR_UPLD_RDY   BIT(1)

Definition at line 67 of file pcie.h.

#define MAX_WRITE_IOMEM_RETRY   2

Definition at line 101 of file pcie.h.

#define MWIFIEX_BD_FLAG_FIRST_DESC   BIT(0)

Definition at line 76 of file pcie.h.

#define MWIFIEX_BD_FLAG_LAST_DESC   BIT(1)

Definition at line 77 of file pcie.h.

#define MWIFIEX_BD_FLAG_ROLLOVER_IND   BIT(7)

Definition at line 75 of file pcie.h.

#define MWIFIEX_EVTBD_MASK   0x07

Definition at line 39 of file pcie.h.

#define MWIFIEX_MAX_EVT_BD   0x04

Definition at line 38 of file pcie.h.

#define MWIFIEX_MAX_TXRX_BD   0x20

Definition at line 34 of file pcie.h.

#define MWIFIEX_PCIE_BLOCK_SIZE_FW_DNLD   256

Definition at line 103 of file pcie.h.

#define MWIFIEX_RXBD_MASK   0x3F

Definition at line 36 of file pcie.h.

#define MWIFIEX_TXBD_MASK   0x3F

Definition at line 35 of file pcie.h.

#define PCIE8766_DEFAULT_FW_NAME   "mrvl/pcie8766_uapsta.bin"

Definition at line 31 of file pcie.h.

#define PCIE_CPU_INT_EVENT   0xC18

Definition at line 44 of file pcie.h.

#define PCIE_CPU_INT_STATUS   0xC1C

Definition at line 45 of file pcie.h.

#define PCIE_HOST_INT_MASK   0xC34

Definition at line 47 of file pcie.h.

#define PCIE_HOST_INT_STATUS   0xC30

Definition at line 46 of file pcie.h.

#define PCIE_HOST_INT_STATUS_MASK   0xC3C

Definition at line 48 of file pcie.h.

#define PCIE_SCRATCH_0_REG   0xC10

Definition at line 42 of file pcie.h.

#define PCIE_SCRATCH_10_REG   0xCE8

Definition at line 57 of file pcie.h.

#define PCIE_SCRATCH_11_REG   0xCEC

Definition at line 58 of file pcie.h.

#define PCIE_SCRATCH_12_REG   0xCF0

Definition at line 59 of file pcie.h.

#define PCIE_SCRATCH_1_REG   0xC14

Definition at line 43 of file pcie.h.

#define PCIE_SCRATCH_2_REG   0xC40

Definition at line 49 of file pcie.h.

#define PCIE_SCRATCH_3_REG   0xC44

Definition at line 50 of file pcie.h.

#define PCIE_SCRATCH_4_REG   0xCD0

Definition at line 51 of file pcie.h.

#define PCIE_SCRATCH_5_REG   0xCD4

Definition at line 52 of file pcie.h.

#define PCIE_SCRATCH_6_REG   0xCD8

Definition at line 53 of file pcie.h.

#define PCIE_SCRATCH_7_REG   0xCDC

Definition at line 54 of file pcie.h.

#define PCIE_SCRATCH_8_REG   0xCE0

Definition at line 55 of file pcie.h.

#define PCIE_SCRATCH_9_REG   0xCE4

Definition at line 56 of file pcie.h.

#define REG_CMD_ADDR_HI   PCIE_SCRATCH_1_REG

Definition at line 79 of file pcie.h.

#define REG_CMD_ADDR_LO   PCIE_SCRATCH_0_REG

Definition at line 78 of file pcie.h.

#define REG_CMD_SIZE   PCIE_SCRATCH_2_REG

Definition at line 80 of file pcie.h.

#define REG_CMDRSP_ADDR_HI   PCIE_SCRATCH_5_REG

Definition at line 83 of file pcie.h.

#define REG_CMDRSP_ADDR_LO   PCIE_SCRATCH_4_REG

Definition at line 82 of file pcie.h.

#define REG_DRV_READY   PCIE_SCRATCH_12_REG

Definition at line 98 of file pcie.h.

#define REG_EVTBD_RDPTR   PCIE_SCRATCH_10_REG

Definition at line 94 of file pcie.h.

#define REG_EVTBD_WRPTR   PCIE_SCRATCH_11_REG

Definition at line 96 of file pcie.h.

#define REG_RXBD_RDPTR   PCIE_SCRATCH_8_REG

Definition at line 90 of file pcie.h.

#define REG_RXBD_WRPTR   PCIE_SCRATCH_9_REG

Definition at line 92 of file pcie.h.

#define REG_TXBD_RDPTR   PCIE_SCRATCH_6_REG

Definition at line 86 of file pcie.h.

#define REG_TXBD_WRPTR   PCIE_SCRATCH_7_REG

Definition at line 88 of file pcie.h.

Variable Documentation