Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
umem.h File Reference

Go to the source code of this file.

Data Structures

struct  mm_dma_desc
 

Macros

#define IRQ_TIMEOUT   (1 * HZ)
 
#define MEMCTRLSTATUS_MAGIC   0x00
 
#define MM_MAGIC_VALUE   (unsigned char)0x59
 
#define MEMCTRLSTATUS_BATTERY   0x04
 
#define BATTERY_1_DISABLED   0x01
 
#define BATTERY_1_FAILURE   0x02
 
#define BATTERY_2_DISABLED   0x04
 
#define BATTERY_2_FAILURE   0x08
 
#define MEMCTRLSTATUS_MEMORY   0x07
 
#define MEM_128_MB   0xfe
 
#define MEM_256_MB   0xfc
 
#define MEM_512_MB   0xf8
 
#define MEM_1_GB   0xf0
 
#define MEM_2_GB   0xe0
 
#define MEMCTRLCMD_LEDCTRL   0x08
 
#define LED_REMOVE   2
 
#define LED_FAULT   4
 
#define LED_POWER   6
 
#define LED_FLIP   255
 
#define LED_OFF   0x00
 
#define LED_ON   0x01
 
#define LED_FLASH_3_5   0x02
 
#define LED_FLASH_7_0   0x03
 
#define LED_POWER_ON   0x00
 
#define LED_POWER_OFF   0x01
 
#define USER_BIT1   0x01
 
#define USER_BIT2   0x02
 
#define MEMORY_INITIALIZED   USER_BIT1
 
#define MEMCTRLCMD_ERRCTRL   0x0C
 
#define EDC_NONE_DEFAULT   0x00
 
#define EDC_NONE   0x01
 
#define EDC_STORE_READ   0x02
 
#define EDC_STORE_CORRECT   0x03
 
#define MEMCTRLCMD_ERRCNT   0x0D
 
#define MEMCTRLCMD_ERRSTATUS   0x0E
 
#define ERROR_DATA_LOG   0x20
 
#define ERROR_ADDR_LOG   0x28
 
#define ERROR_COUNT   0x3D
 
#define ERROR_SYNDROME   0x3E
 
#define ERROR_CHECK   0x3F
 
#define DMA_PCI_ADDR   0x40
 
#define DMA_LOCAL_ADDR   0x48
 
#define DMA_TRANSFER_SIZE   0x50
 
#define DMA_DESCRIPTOR_ADDR   0x58
 
#define DMA_SEMAPHORE_ADDR   0x60
 
#define DMA_STATUS_CTRL   0x68
 
#define DMASCR_GO   0x00001
 
#define DMASCR_TRANSFER_READ   0x00002
 
#define DMASCR_CHAIN_EN   0x00004
 
#define DMASCR_SEM_EN   0x00010
 
#define DMASCR_DMA_COMP_EN   0x00020
 
#define DMASCR_CHAIN_COMP_EN   0x00040
 
#define DMASCR_ERR_INT_EN   0x00080
 
#define DMASCR_PARITY_INT_EN   0x00100
 
#define DMASCR_ANY_ERR   0x00800
 
#define DMASCR_MBE_ERR   0x01000
 
#define DMASCR_PARITY_ERR_REP   0x02000
 
#define DMASCR_PARITY_ERR_DET   0x04000
 
#define DMASCR_SYSTEM_ERR_SIG   0x08000
 
#define DMASCR_TARGET_ABT   0x10000
 
#define DMASCR_MASTER_ABT   0x20000
 
#define DMASCR_DMA_COMPLETE   0x40000
 
#define DMASCR_CHAIN_COMPLETE   0x80000
 
#define DMASCR_READ   0x60000000
 
#define DMASCR_READLINE   0xE0000000
 
#define DMASCR_READMULTI   0xC0000000
 
#define DMASCR_ERROR_MASK   (DMASCR_MASTER_ABT | DMASCR_TARGET_ABT | DMASCR_SYSTEM_ERR_SIG | DMASCR_PARITY_ERR_DET | DMASCR_MBE_ERR | DMASCR_ANY_ERR)
 
#define DMASCR_HARD_ERROR   (DMASCR_MASTER_ABT | DMASCR_TARGET_ABT | DMASCR_SYSTEM_ERR_SIG | DMASCR_PARITY_ERR_DET | DMASCR_MBE_ERR)
 
#define WINDOWMAP_WINNUM   0x7B
 
#define DMA_READ_FROM_HOST   0
 
#define DMA_WRITE_TO_HOST   1
 
#define UM_FLAG_DMA_IN_REGS   1
 
#define UM_FLAG_NO_BYTE_STATUS   2
 
#define UM_FLAG_NO_BATTREG   4
 
#define UM_FLAG_NO_BATT   8
 

Functions

struct mm_dma_desc __attribute__ ((aligned(8)))
 Packet vector entry.
 

Variables

__le64 pci_addr
 
__le64 local_addr
 
__le32 transfer_size
 
u32 zero1
 
__le64 next_desc_addr
 
__le64 sem_addr
 
__le32 control_bits
 
u32 zero2
 
dma_addr_t data_dma_handle
 
__le64 sem_control_bits
 

Macro Definition Documentation

#define BATTERY_1_DISABLED   0x01

Definition at line 23 of file umem.h.

#define BATTERY_1_FAILURE   0x02

Definition at line 24 of file umem.h.

#define BATTERY_2_DISABLED   0x04

Definition at line 25 of file umem.h.

#define BATTERY_2_FAILURE   0x08

Definition at line 26 of file umem.h.

#define DMA_DESCRIPTOR_ADDR   0x58

Definition at line 69 of file umem.h.

#define DMA_LOCAL_ADDR   0x48

Definition at line 67 of file umem.h.

#define DMA_PCI_ADDR   0x40

Definition at line 66 of file umem.h.

#define DMA_READ_FROM_HOST   0

Definition at line 109 of file umem.h.

#define DMA_SEMAPHORE_ADDR   0x60

Definition at line 70 of file umem.h.

#define DMA_STATUS_CTRL   0x68

Definition at line 71 of file umem.h.

#define DMA_TRANSFER_SIZE   0x50

Definition at line 68 of file umem.h.

#define DMA_WRITE_TO_HOST   1

Definition at line 110 of file umem.h.

#define DMASCR_ANY_ERR   0x00800

Definition at line 80 of file umem.h.

#define DMASCR_CHAIN_COMP_EN   0x00040

Definition at line 77 of file umem.h.

#define DMASCR_CHAIN_COMPLETE   0x80000

Definition at line 88 of file umem.h.

#define DMASCR_CHAIN_EN   0x00004

Definition at line 74 of file umem.h.

#define DMASCR_DMA_COMP_EN   0x00020

Definition at line 76 of file umem.h.

#define DMASCR_DMA_COMPLETE   0x40000

Definition at line 87 of file umem.h.

#define DMASCR_ERR_INT_EN   0x00080

Definition at line 78 of file umem.h.

Definition at line 104 of file umem.h.

#define DMASCR_GO   0x00001

Definition at line 72 of file umem.h.

Definition at line 105 of file umem.h.

#define DMASCR_MASTER_ABT   0x20000

Definition at line 86 of file umem.h.

#define DMASCR_MBE_ERR   0x01000

Definition at line 81 of file umem.h.

#define DMASCR_PARITY_ERR_DET   0x04000

Definition at line 83 of file umem.h.

#define DMASCR_PARITY_ERR_REP   0x02000

Definition at line 82 of file umem.h.

#define DMASCR_PARITY_INT_EN   0x00100

Definition at line 79 of file umem.h.

#define DMASCR_READ   0x60000000

Definition at line 99 of file umem.h.

#define DMASCR_READLINE   0xE0000000

Definition at line 100 of file umem.h.

#define DMASCR_READMULTI   0xC0000000

Definition at line 101 of file umem.h.

#define DMASCR_SEM_EN   0x00010

Definition at line 75 of file umem.h.

#define DMASCR_SYSTEM_ERR_SIG   0x08000

Definition at line 84 of file umem.h.

#define DMASCR_TARGET_ABT   0x10000

Definition at line 85 of file umem.h.

#define DMASCR_TRANSFER_READ   0x00002

Definition at line 73 of file umem.h.

#define EDC_NONE   0x01

Definition at line 53 of file umem.h.

#define EDC_NONE_DEFAULT   0x00

Definition at line 52 of file umem.h.

#define EDC_STORE_CORRECT   0x03

Definition at line 55 of file umem.h.

#define EDC_STORE_READ   0x02

Definition at line 54 of file umem.h.

#define ERROR_ADDR_LOG   0x28

Definition at line 61 of file umem.h.

#define ERROR_CHECK   0x3F

Definition at line 64 of file umem.h.

#define ERROR_COUNT   0x3D

Definition at line 62 of file umem.h.

#define ERROR_DATA_LOG   0x20

Definition at line 60 of file umem.h.

#define ERROR_SYNDROME   0x3E

Definition at line 63 of file umem.h.

#define IRQ_TIMEOUT   (1 * HZ)

Definition at line 16 of file umem.h.

#define LED_FAULT   4

Definition at line 37 of file umem.h.

#define LED_FLASH_3_5   0x02

Definition at line 42 of file umem.h.

#define LED_FLASH_7_0   0x03

Definition at line 43 of file umem.h.

#define LED_FLIP   255

Definition at line 39 of file umem.h.

#define LED_OFF   0x00

Definition at line 40 of file umem.h.

#define LED_ON   0x01

Definition at line 41 of file umem.h.

#define LED_POWER   6

Definition at line 38 of file umem.h.

#define LED_POWER_OFF   0x01

Definition at line 45 of file umem.h.

#define LED_POWER_ON   0x00

Definition at line 44 of file umem.h.

#define LED_REMOVE   2

Definition at line 36 of file umem.h.

#define MEM_128_MB   0xfe

Definition at line 29 of file umem.h.

#define MEM_1_GB   0xf0

Definition at line 32 of file umem.h.

#define MEM_256_MB   0xfc

Definition at line 30 of file umem.h.

#define MEM_2_GB   0xe0

Definition at line 33 of file umem.h.

#define MEM_512_MB   0xf8

Definition at line 31 of file umem.h.

#define MEMCTRLCMD_ERRCNT   0x0D

Definition at line 57 of file umem.h.

#define MEMCTRLCMD_ERRCTRL   0x0C

Definition at line 51 of file umem.h.

#define MEMCTRLCMD_ERRSTATUS   0x0E

Definition at line 58 of file umem.h.

#define MEMCTRLCMD_LEDCTRL   0x08

Definition at line 35 of file umem.h.

#define MEMCTRLSTATUS_BATTERY   0x04

Definition at line 22 of file umem.h.

#define MEMCTRLSTATUS_MAGIC   0x00

Definition at line 19 of file umem.h.

#define MEMCTRLSTATUS_MEMORY   0x07

Definition at line 28 of file umem.h.

#define MEMORY_INITIALIZED   USER_BIT1

Definition at line 49 of file umem.h.

#define MM_MAGIC_VALUE   (unsigned char)0x59

Definition at line 20 of file umem.h.

#define UM_FLAG_DMA_IN_REGS   1

Definition at line 129 of file umem.h.

#define UM_FLAG_NO_BATT   8

Definition at line 132 of file umem.h.

#define UM_FLAG_NO_BATTREG   4

Definition at line 131 of file umem.h.

#define UM_FLAG_NO_BYTE_STATUS   2

Definition at line 130 of file umem.h.

#define USER_BIT1   0x01

Definition at line 46 of file umem.h.

#define USER_BIT2   0x02

Definition at line 47 of file umem.h.

#define WINDOWMAP_WINNUM   0x7B

Definition at line 107 of file umem.h.

Function Documentation

Packet vector entry.

This data structure is used with netio_send_packet_vector() to send multiple packets with one NetIO call. The structure should be initialized by calling netio_pkt_vector_set(), rather than by setting the fields directly.

This structure is guaranteed to be a power of two in size, no bigger than one L2 cache line, and to be aligned modulo its size.

Reserved for use by the user application. When initialized with the netio_set_pkt_vector_entry() function, this field is guaranteed to be visible to readers only after all other fields are already visible. This way it can be used as a valid flag or generation counter.

Low 8 bits of the packet address to send. The high bits are acquired from the 'handle' field.

Number of bytes to transmit.

The raw handle from a netio_pkt_t. If this is NETIO_PKT_HANDLE_NONE, this vector entry will be skipped and no packet will be transmitted.

Definition at line 9 of file extable.c.

Variable Documentation

__le32 control_bits

Definition at line 133 of file umem.h.

dma_addr_t data_dma_handle

Definition at line 136 of file umem.h.

u32 local_addr

Definition at line 128 of file umem.h.

__le64 next_desc_addr

Definition at line 131 of file umem.h.

__le64 pci_addr

Definition at line 127 of file umem.h.

__le64 sem_addr

Definition at line 132 of file umem.h.

__le64 sem_control_bits

Definition at line 139 of file umem.h.

__le32 transfer_size

Definition at line 129 of file umem.h.

u32 zero1

Definition at line 130 of file umem.h.

unsigned char zero2

Definition at line 134 of file umem.h.