Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | mm_dma_desc |
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 |
#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) |
|
read |
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.
dma_addr_t data_dma_handle |