Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
p54spi.h File Reference
#include <linux/mutex.h>
#include <linux/list.h>
#include <net/mac80211.h>
#include "p54.h"

Go to the source code of this file.

Data Structures

struct  p54s_dma_regs
 
struct  p54s_tx_info
 
struct  p54s_priv
 

Macros

#define SPI_ADRS_READ_BIT_15   0x8000
 
#define SPI_ADRS_ARM_INTERRUPTS   0x00
 
#define SPI_ADRS_ARM_INT_EN   0x04
 
#define SPI_ADRS_HOST_INTERRUPTS   0x08
 
#define SPI_ADRS_HOST_INT_EN   0x0c
 
#define SPI_ADRS_HOST_INT_ACK   0x10
 
#define SPI_ADRS_GEN_PURP_1   0x14
 
#define SPI_ADRS_GEN_PURP_2   0x18
 
#define SPI_ADRS_DEV_CTRL_STAT   0x26 /* high word */
 
#define SPI_ADRS_DMA_DATA   0x28
 
#define SPI_ADRS_DMA_WRITE_CTRL   0x2c
 
#define SPI_ADRS_DMA_WRITE_LEN   0x2e
 
#define SPI_ADRS_DMA_WRITE_BASE   0x30
 
#define SPI_ADRS_DMA_READ_CTRL   0x34
 
#define SPI_ADRS_DMA_READ_LEN   0x36
 
#define SPI_ADRS_DMA_READ_BASE   0x38
 
#define SPI_CTRL_STAT_HOST_OVERRIDE   0x8000
 
#define SPI_CTRL_STAT_START_HALTED   0x4000
 
#define SPI_CTRL_STAT_RAM_BOOT   0x2000
 
#define SPI_CTRL_STAT_HOST_RESET   0x1000
 
#define SPI_CTRL_STAT_HOST_CPU_EN   0x0800
 
#define SPI_DMA_WRITE_CTRL_ENABLE   0x0001
 
#define SPI_DMA_READ_CTRL_ENABLE   0x0001
 
#define HOST_ALLOWED   (1 << 7)
 
#define SPI_TIMEOUT   100 /* msec */
 
#define SPI_MAX_TX_PACKETS   32
 
#define SPI_MAX_PACKET_SIZE   32767
 
#define SPI_TARGET_INT_WAKEUP   0x00000001
 
#define SPI_TARGET_INT_SLEEP   0x00000002
 
#define SPI_TARGET_INT_RDDONE   0x00000004
 
#define SPI_TARGET_INT_CTS   0x00004000
 
#define SPI_TARGET_INT_DR   0x00008000
 
#define SPI_HOST_INT_READY   0x00000001
 
#define SPI_HOST_INT_WR_READY   0x00000002
 
#define SPI_HOST_INT_SW_UPDATE   0x00000004
 
#define SPI_HOST_INT_UPDATE   0x10000000
 
#define SPI_HOST_INT_CR   0x00004000
 
#define SPI_HOST_INT_DR   0x00008000
 
#define SPI_HOST_INTS_DEFAULT   (SPI_HOST_INT_READY | SPI_HOST_INT_UPDATE | SPI_HOST_INT_SW_UPDATE)
 
#define TARGET_BOOT_SLEEP   50
 

Variables

struct p54s_dma_regs __packed
 

Macro Definition Documentation

#define HOST_ALLOWED   (1 << 7)

Definition at line 64 of file p54spi.h.

#define SPI_ADRS_ARM_INT_EN   0x04

Definition at line 35 of file p54spi.h.

#define SPI_ADRS_ARM_INTERRUPTS   0x00

Definition at line 34 of file p54spi.h.

#define SPI_ADRS_DEV_CTRL_STAT   0x26 /* high word */

Definition at line 44 of file p54spi.h.

#define SPI_ADRS_DMA_DATA   0x28

Definition at line 46 of file p54spi.h.

#define SPI_ADRS_DMA_READ_BASE   0x38

Definition at line 54 of file p54spi.h.

#define SPI_ADRS_DMA_READ_CTRL   0x34

Definition at line 52 of file p54spi.h.

#define SPI_ADRS_DMA_READ_LEN   0x36

Definition at line 53 of file p54spi.h.

#define SPI_ADRS_DMA_WRITE_BASE   0x30

Definition at line 50 of file p54spi.h.

#define SPI_ADRS_DMA_WRITE_CTRL   0x2c

Definition at line 48 of file p54spi.h.

#define SPI_ADRS_DMA_WRITE_LEN   0x2e

Definition at line 49 of file p54spi.h.

#define SPI_ADRS_GEN_PURP_1   0x14

Definition at line 41 of file p54spi.h.

#define SPI_ADRS_GEN_PURP_2   0x18

Definition at line 42 of file p54spi.h.

#define SPI_ADRS_HOST_INT_ACK   0x10

Definition at line 39 of file p54spi.h.

#define SPI_ADRS_HOST_INT_EN   0x0c

Definition at line 38 of file p54spi.h.

#define SPI_ADRS_HOST_INTERRUPTS   0x08

Definition at line 37 of file p54spi.h.

#define SPI_ADRS_READ_BIT_15   0x8000

Definition at line 32 of file p54spi.h.

#define SPI_CTRL_STAT_HOST_CPU_EN   0x0800

Definition at line 60 of file p54spi.h.

#define SPI_CTRL_STAT_HOST_OVERRIDE   0x8000

Definition at line 56 of file p54spi.h.

#define SPI_CTRL_STAT_HOST_RESET   0x1000

Definition at line 59 of file p54spi.h.

#define SPI_CTRL_STAT_RAM_BOOT   0x2000

Definition at line 58 of file p54spi.h.

#define SPI_CTRL_STAT_START_HALTED   0x4000

Definition at line 57 of file p54spi.h.

#define SPI_DMA_READ_CTRL_ENABLE   0x0001

Definition at line 63 of file p54spi.h.

#define SPI_DMA_WRITE_CTRL_ENABLE   0x0001

Definition at line 62 of file p54spi.h.

#define SPI_HOST_INT_CR   0x00004000

Definition at line 85 of file p54spi.h.

#define SPI_HOST_INT_DR   0x00008000

Definition at line 88 of file p54spi.h.

#define SPI_HOST_INT_READY   0x00000001

Definition at line 79 of file p54spi.h.

#define SPI_HOST_INT_SW_UPDATE   0x00000004

Definition at line 81 of file p54spi.h.

#define SPI_HOST_INT_UPDATE   0x10000000

Definition at line 82 of file p54spi.h.

#define SPI_HOST_INT_WR_READY   0x00000002

Definition at line 80 of file p54spi.h.

#define SPI_HOST_INTS_DEFAULT   (SPI_HOST_INT_READY | SPI_HOST_INT_UPDATE | SPI_HOST_INT_SW_UPDATE)

Definition at line 90 of file p54spi.h.

#define SPI_MAX_PACKET_SIZE   32767

Definition at line 70 of file p54spi.h.

#define SPI_MAX_TX_PACKETS   32

Definition at line 68 of file p54spi.h.

#define SPI_TARGET_INT_CTS   0x00004000

Definition at line 76 of file p54spi.h.

#define SPI_TARGET_INT_DR   0x00008000

Definition at line 77 of file p54spi.h.

#define SPI_TARGET_INT_RDDONE   0x00000004

Definition at line 74 of file p54spi.h.

#define SPI_TARGET_INT_SLEEP   0x00000002

Definition at line 73 of file p54spi.h.

#define SPI_TARGET_INT_WAKEUP   0x00000001

Definition at line 72 of file p54spi.h.

#define SPI_TIMEOUT   100 /* msec */

Definition at line 66 of file p54spi.h.

#define TARGET_BOOT_SLEEP   50

Definition at line 93 of file p54spi.h.

Variable Documentation