Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mddi_hw.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Macros

#define MDDI_CMD   0x0000
 
#define MDDI_VERSION   0x0004
 
#define MDDI_PRI_PTR   0x0008
 
#define MDDI_SEC_PTR   0x000c
 
#define MDDI_BPS   0x0010
 
#define MDDI_SPM   0x0014
 
#define MDDI_INT   0x0018
 
#define MDDI_INTEN   0x001c
 
#define MDDI_REV_PTR   0x0020
 
#define MDDI_REV_SIZE   0x0024
 
#define MDDI_STAT   0x0028
 
#define MDDI_REV_RATE_DIV   0x002c
 
#define MDDI_REV_CRC_ERR   0x0030
 
#define MDDI_TA1_LEN   0x0034
 
#define MDDI_TA2_LEN   0x0038
 
#define MDDI_TEST_BUS   0x003c
 
#define MDDI_TEST   0x0040
 
#define MDDI_REV_PKT_CNT   0x0044
 
#define MDDI_DRIVE_HI   0x0048
 
#define MDDI_DRIVE_LO   0x004c
 
#define MDDI_DISP_WAKE   0x0050
 
#define MDDI_REV_ENCAP_SZ   0x0054
 
#define MDDI_RTD_VAL   0x0058
 
#define MDDI_PAD_CTL   0x0068
 
#define MDDI_DRIVER_START_CNT   0x006c
 
#define MDDI_NEXT_PRI_PTR   0x0070
 
#define MDDI_NEXT_SEC_PTR   0x0074
 
#define MDDI_MISR_CTL   0x0078
 
#define MDDI_MISR_DATA   0x007c
 
#define MDDI_SF_CNT   0x0080
 
#define MDDI_MF_CNT   0x0084
 
#define MDDI_CURR_REV_PTR   0x0088
 
#define MDDI_CORE_VER   0x008c
 
#define MDDI_INT_PRI_PTR_READ   0x0001
 
#define MDDI_INT_SEC_PTR_READ   0x0002
 
#define MDDI_INT_REV_DATA_AVAIL   0x0004
 
#define MDDI_INT_DISP_REQ   0x0008
 
#define MDDI_INT_PRI_UNDERFLOW   0x0010
 
#define MDDI_INT_SEC_UNDERFLOW   0x0020
 
#define MDDI_INT_REV_OVERFLOW   0x0040
 
#define MDDI_INT_CRC_ERROR   0x0080
 
#define MDDI_INT_MDDI_IN   0x0100
 
#define MDDI_INT_PRI_OVERWRITE   0x0200
 
#define MDDI_INT_SEC_OVERWRITE   0x0400
 
#define MDDI_INT_REV_OVERWRITE   0x0800
 
#define MDDI_INT_DMA_FAILURE   0x1000
 
#define MDDI_INT_LINK_ACTIVE   0x2000
 
#define MDDI_INT_IN_HIBERNATION   0x4000
 
#define MDDI_INT_PRI_LINK_LIST_DONE   0x8000
 
#define MDDI_INT_SEC_LINK_LIST_DONE   0x10000
 
#define MDDI_INT_NO_CMD_PKTS_PEND   0x20000
 
#define MDDI_INT_RTD_FAILURE   0x40000
 
#define MDDI_INT_REV_PKT_RECEIVED   0x80000
 
#define MDDI_INT_REV_PKTS_AVAIL   0x100000
 
#define MDDI_INT_NEED_CLEAR
 
#define MDDI_STAT_LINK_ACTIVE   0x0001
 
#define MDDI_STAT_NEW_REV_PTR   0x0002
 
#define MDDI_STAT_NEW_PRI_PTR   0x0004
 
#define MDDI_STAT_NEW_SEC_PTR   0x0008
 
#define MDDI_STAT_IN_HIBERNATION   0x0010
 
#define MDDI_STAT_PRI_LINK_LIST_DONE   0x0020
 
#define MDDI_STAT_SEC_LINK_LIST_DONE   0x0040
 
#define MDDI_STAT_PENDING_TIMING_PKT   0x0080
 
#define MDDI_STAT_PENDING_REV_ENCAP   0x0100
 
#define MDDI_STAT_PENDING_POWERDOWN   0x0200
 
#define MDDI_STAT_RTD_MEAS_FAIL   0x0800
 
#define MDDI_STAT_CLIENT_WAKEUP_REQ   0x1000
 
#define MDDI_CMD_POWERDOWN   0x0100
 
#define MDDI_CMD_POWERUP   0x0200
 
#define MDDI_CMD_HIBERNATE   0x0300
 
#define MDDI_CMD_RESET   0x0400
 
#define MDDI_CMD_DISP_IGNORE   0x0501
 
#define MDDI_CMD_DISP_LISTEN   0x0500
 
#define MDDI_CMD_SEND_REV_ENCAP   0x0600
 
#define MDDI_CMD_GET_CLIENT_CAP   0x0601
 
#define MDDI_CMD_GET_CLIENT_STATUS   0x0602
 
#define MDDI_CMD_SEND_RTD   0x0700
 
#define MDDI_CMD_LINK_ACTIVE   0x0900
 
#define MDDI_CMD_PERIODIC_REV_ENCAP   0x0A00
 
#define MDDI_CMD_FORCE_NEW_REV_PTR   0x0C00
 
#define MDDI_VIDEO_REV_PKT_SIZE   0x40
 
#define MDDI_CLIENT_CAPABILITY_REV_PKT_SIZE   0x60
 
#define MDDI_MAX_REV_PKT_SIZE   0x60
 
#define MDDI_REV_BUFFER_SIZE   (MDDI_MAX_REV_PKT_SIZE * 4)
 
#define MDDI_HOST_BYTES_PER_SUBFRAME   0x3C00
 
#define MDDI_HOST_TA2_LEN   0x000c
 
#define MDDI_HOST_REV_RATE_DIV   0x0002
 
#define TYPE_VIDEO_STREAM   16
 
#define TYPE_CLIENT_CAPS   66
 
#define TYPE_REGISTER_ACCESS   146
 
#define TYPE_CLIENT_STATUS   70
 
#define MDDI_WRITE   (0 << 14)
 
#define MDDI_READ   (2 << 14)
 
#define MDDI_READ_RESP   (3 << 14)
 

Functions

struct __attribute__ ((packed)) mddi_rev_packet
 

Variables

 mddi_client_capability_type
 

Macro Definition Documentation

#define MDDI_BPS   0x0010

Definition at line 27 of file mddi_hw.h.

#define MDDI_CLIENT_CAPABILITY_REV_PKT_SIZE   0x60

Definition at line 119 of file mddi_hw.h.

#define MDDI_CMD   0x0000

Definition at line 23 of file mddi_hw.h.

#define MDDI_CMD_DISP_IGNORE   0x0501

Definition at line 106 of file mddi_hw.h.

#define MDDI_CMD_DISP_LISTEN   0x0500

Definition at line 107 of file mddi_hw.h.

#define MDDI_CMD_FORCE_NEW_REV_PTR   0x0C00

Definition at line 114 of file mddi_hw.h.

#define MDDI_CMD_GET_CLIENT_CAP   0x0601

Definition at line 109 of file mddi_hw.h.

#define MDDI_CMD_GET_CLIENT_STATUS   0x0602

Definition at line 110 of file mddi_hw.h.

#define MDDI_CMD_HIBERNATE   0x0300

Definition at line 104 of file mddi_hw.h.

#define MDDI_CMD_LINK_ACTIVE   0x0900

Definition at line 112 of file mddi_hw.h.

#define MDDI_CMD_PERIODIC_REV_ENCAP   0x0A00

Definition at line 113 of file mddi_hw.h.

#define MDDI_CMD_POWERDOWN   0x0100

Definition at line 102 of file mddi_hw.h.

#define MDDI_CMD_POWERUP   0x0200

Definition at line 103 of file mddi_hw.h.

#define MDDI_CMD_RESET   0x0400

Definition at line 105 of file mddi_hw.h.

#define MDDI_CMD_SEND_REV_ENCAP   0x0600

Definition at line 108 of file mddi_hw.h.

#define MDDI_CMD_SEND_RTD   0x0700

Definition at line 111 of file mddi_hw.h.

#define MDDI_CORE_VER   0x008c

Definition at line 55 of file mddi_hw.h.

#define MDDI_CURR_REV_PTR   0x0088

Definition at line 54 of file mddi_hw.h.

#define MDDI_DISP_WAKE   0x0050

Definition at line 43 of file mddi_hw.h.

#define MDDI_DRIVE_HI   0x0048

Definition at line 41 of file mddi_hw.h.

#define MDDI_DRIVE_LO   0x004c

Definition at line 42 of file mddi_hw.h.

#define MDDI_DRIVER_START_CNT   0x006c

Definition at line 47 of file mddi_hw.h.

#define MDDI_HOST_BYTES_PER_SUBFRAME   0x3C00

Definition at line 127 of file mddi_hw.h.

#define MDDI_HOST_REV_RATE_DIV   0x0002

Definition at line 129 of file mddi_hw.h.

#define MDDI_HOST_TA2_LEN   0x000c

Definition at line 128 of file mddi_hw.h.

#define MDDI_INT   0x0018

Definition at line 29 of file mddi_hw.h.

#define MDDI_INT_CRC_ERROR   0x0080

Definition at line 64 of file mddi_hw.h.

#define MDDI_INT_DISP_REQ   0x0008

Definition at line 60 of file mddi_hw.h.

#define MDDI_INT_DMA_FAILURE   0x1000

Definition at line 69 of file mddi_hw.h.

#define MDDI_INT_IN_HIBERNATION   0x4000

Definition at line 71 of file mddi_hw.h.

#define MDDI_INT_LINK_ACTIVE   0x2000

Definition at line 70 of file mddi_hw.h.

#define MDDI_INT_MDDI_IN   0x0100

Definition at line 65 of file mddi_hw.h.

#define MDDI_INT_NEED_CLEAR
Value:
( \
MDDI_INT_REV_DATA_AVAIL | \
MDDI_INT_PRI_UNDERFLOW | \
MDDI_INT_SEC_UNDERFLOW | \
MDDI_INT_REV_OVERFLOW | \
MDDI_INT_CRC_ERROR | \
MDDI_INT_REV_PKT_RECEIVED)

Definition at line 79 of file mddi_hw.h.

#define MDDI_INT_NO_CMD_PKTS_PEND   0x20000

Definition at line 74 of file mddi_hw.h.

#define MDDI_INT_PRI_LINK_LIST_DONE   0x8000

Definition at line 72 of file mddi_hw.h.

#define MDDI_INT_PRI_OVERWRITE   0x0200

Definition at line 66 of file mddi_hw.h.

#define MDDI_INT_PRI_PTR_READ   0x0001

Definition at line 57 of file mddi_hw.h.

#define MDDI_INT_PRI_UNDERFLOW   0x0010

Definition at line 61 of file mddi_hw.h.

#define MDDI_INT_REV_DATA_AVAIL   0x0004

Definition at line 59 of file mddi_hw.h.

#define MDDI_INT_REV_OVERFLOW   0x0040

Definition at line 63 of file mddi_hw.h.

#define MDDI_INT_REV_OVERWRITE   0x0800

Definition at line 68 of file mddi_hw.h.

#define MDDI_INT_REV_PKT_RECEIVED   0x80000

Definition at line 76 of file mddi_hw.h.

#define MDDI_INT_REV_PKTS_AVAIL   0x100000

Definition at line 77 of file mddi_hw.h.

#define MDDI_INT_RTD_FAILURE   0x40000

Definition at line 75 of file mddi_hw.h.

#define MDDI_INT_SEC_LINK_LIST_DONE   0x10000

Definition at line 73 of file mddi_hw.h.

#define MDDI_INT_SEC_OVERWRITE   0x0400

Definition at line 67 of file mddi_hw.h.

#define MDDI_INT_SEC_PTR_READ   0x0002

Definition at line 58 of file mddi_hw.h.

#define MDDI_INT_SEC_UNDERFLOW   0x0020

Definition at line 62 of file mddi_hw.h.

#define MDDI_INTEN   0x001c

Definition at line 30 of file mddi_hw.h.

#define MDDI_MAX_REV_PKT_SIZE   0x60

Definition at line 120 of file mddi_hw.h.

#define MDDI_MF_CNT   0x0084

Definition at line 53 of file mddi_hw.h.

#define MDDI_MISR_CTL   0x0078

Definition at line 50 of file mddi_hw.h.

#define MDDI_MISR_DATA   0x007c

Definition at line 51 of file mddi_hw.h.

#define MDDI_NEXT_PRI_PTR   0x0070

Definition at line 48 of file mddi_hw.h.

#define MDDI_NEXT_SEC_PTR   0x0074

Definition at line 49 of file mddi_hw.h.

#define MDDI_PAD_CTL   0x0068

Definition at line 46 of file mddi_hw.h.

#define MDDI_PRI_PTR   0x0008

Definition at line 25 of file mddi_hw.h.

#define MDDI_READ   (2 << 14)
#define MDDI_READ_RESP   (3 << 14)
#define MDDI_REV_BUFFER_SIZE   (MDDI_MAX_REV_PKT_SIZE * 4)

Definition at line 123 of file mddi_hw.h.

#define MDDI_REV_CRC_ERR   0x0030

Definition at line 35 of file mddi_hw.h.

#define MDDI_REV_ENCAP_SZ   0x0054

Definition at line 44 of file mddi_hw.h.

#define MDDI_REV_PKT_CNT   0x0044

Definition at line 40 of file mddi_hw.h.

#define MDDI_REV_PTR   0x0020

Definition at line 31 of file mddi_hw.h.

#define MDDI_REV_RATE_DIV   0x002c

Definition at line 34 of file mddi_hw.h.

#define MDDI_REV_SIZE   0x0024

Definition at line 32 of file mddi_hw.h.

#define MDDI_RTD_VAL   0x0058

Definition at line 45 of file mddi_hw.h.

#define MDDI_SEC_PTR   0x000c

Definition at line 26 of file mddi_hw.h.

#define MDDI_SF_CNT   0x0080

Definition at line 52 of file mddi_hw.h.

#define MDDI_SPM   0x0014

Definition at line 28 of file mddi_hw.h.

#define MDDI_STAT   0x0028

Definition at line 33 of file mddi_hw.h.

#define MDDI_STAT_CLIENT_WAKEUP_REQ   0x1000

Definition at line 99 of file mddi_hw.h.

#define MDDI_STAT_IN_HIBERNATION   0x0010

Definition at line 92 of file mddi_hw.h.

#define MDDI_STAT_LINK_ACTIVE   0x0001

Definition at line 88 of file mddi_hw.h.

#define MDDI_STAT_NEW_PRI_PTR   0x0004

Definition at line 90 of file mddi_hw.h.

#define MDDI_STAT_NEW_REV_PTR   0x0002

Definition at line 89 of file mddi_hw.h.

#define MDDI_STAT_NEW_SEC_PTR   0x0008

Definition at line 91 of file mddi_hw.h.

#define MDDI_STAT_PENDING_POWERDOWN   0x0200

Definition at line 97 of file mddi_hw.h.

#define MDDI_STAT_PENDING_REV_ENCAP   0x0100

Definition at line 96 of file mddi_hw.h.

#define MDDI_STAT_PENDING_TIMING_PKT   0x0080

Definition at line 95 of file mddi_hw.h.

#define MDDI_STAT_PRI_LINK_LIST_DONE   0x0020

Definition at line 93 of file mddi_hw.h.

#define MDDI_STAT_RTD_MEAS_FAIL   0x0800

Definition at line 98 of file mddi_hw.h.

#define MDDI_STAT_SEC_LINK_LIST_DONE   0x0040

Definition at line 94 of file mddi_hw.h.

#define MDDI_TA1_LEN   0x0034

Definition at line 36 of file mddi_hw.h.

#define MDDI_TA2_LEN   0x0038

Definition at line 37 of file mddi_hw.h.

#define MDDI_TEST   0x0040

Definition at line 39 of file mddi_hw.h.

#define MDDI_TEST_BUS   0x003c

Definition at line 38 of file mddi_hw.h.

#define MDDI_VERSION   0x0004

Definition at line 24 of file mddi_hw.h.

#define MDDI_VIDEO_REV_PKT_SIZE   0x40

Definition at line 118 of file mddi_hw.h.

#define MDDI_WRITE   (0 << 14)
#define TYPE_CLIENT_CAPS   66

Definition at line 261 of file mddi_hw.h.

#define TYPE_CLIENT_STATUS   70

Definition at line 263 of file mddi_hw.h.

#define TYPE_REGISTER_ACCESS   146

Definition at line 262 of file mddi_hw.h.

#define TYPE_VIDEO_STREAM   16

Definition at line 260 of file mddi_hw.h.

Function Documentation

struct __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 132 of file mddi_hw.h.

Variable Documentation

mddi_client_capability_type

Definition at line 193 of file mddi_hw.h.