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

Go to the source code of this file.

Data Structures

struct  host_interest
 
struct  ath6kl_dbglog_buf
 
struct  ath6kl_dbglog_hdr
 

Macros

#define AR6003_BOARD_DATA_SZ   1024
 
#define AR6003_BOARD_EXT_DATA_SZ   768
 
#define AR6003_BOARD_EXT_DATA_SZ_V2   1024
 
#define AR6004_BOARD_DATA_SZ   6144
 
#define AR6004_BOARD_EXT_DATA_SZ   0
 
#define RESET_CONTROL_ADDRESS   0x00000000
 
#define RESET_CONTROL_COLD_RST   0x00000100
 
#define RESET_CONTROL_MBOX_RST   0x00000004
 
#define CPU_CLOCK_STANDARD_S   0
 
#define CPU_CLOCK_STANDARD   0x00000003
 
#define CPU_CLOCK_ADDRESS   0x00000020
 
#define CLOCK_CONTROL_ADDRESS   0x00000028
 
#define CLOCK_CONTROL_LF_CLK32_S   2
 
#define CLOCK_CONTROL_LF_CLK32   0x00000004
 
#define SYSTEM_SLEEP_ADDRESS   0x000000c4
 
#define SYSTEM_SLEEP_DISABLE_S   0
 
#define SYSTEM_SLEEP_DISABLE   0x00000001
 
#define LPO_CAL_ADDRESS   0x000000e0
 
#define LPO_CAL_ENABLE_S   20
 
#define LPO_CAL_ENABLE   0x00100000
 
#define GPIO_PIN9_ADDRESS   0x0000004c
 
#define GPIO_PIN10_ADDRESS   0x00000050
 
#define GPIO_PIN11_ADDRESS   0x00000054
 
#define GPIO_PIN12_ADDRESS   0x00000058
 
#define GPIO_PIN13_ADDRESS   0x0000005c
 
#define HOST_INT_STATUS_ADDRESS   0x00000400
 
#define HOST_INT_STATUS_ERROR_S   7
 
#define HOST_INT_STATUS_ERROR   0x00000080
 
#define HOST_INT_STATUS_CPU_S   6
 
#define HOST_INT_STATUS_CPU   0x00000040
 
#define HOST_INT_STATUS_COUNTER_S   4
 
#define HOST_INT_STATUS_COUNTER   0x00000010
 
#define CPU_INT_STATUS_ADDRESS   0x00000401
 
#define ERROR_INT_STATUS_ADDRESS   0x00000402
 
#define ERROR_INT_STATUS_WAKEUP_S   2
 
#define ERROR_INT_STATUS_WAKEUP   0x00000004
 
#define ERROR_INT_STATUS_RX_UNDERFLOW_S   1
 
#define ERROR_INT_STATUS_RX_UNDERFLOW   0x00000002
 
#define ERROR_INT_STATUS_TX_OVERFLOW_S   0
 
#define ERROR_INT_STATUS_TX_OVERFLOW   0x00000001
 
#define COUNTER_INT_STATUS_ADDRESS   0x00000403
 
#define COUNTER_INT_STATUS_COUNTER_S   0
 
#define COUNTER_INT_STATUS_COUNTER   0x000000ff
 
#define RX_LOOKAHEAD_VALID_ADDRESS   0x00000405
 
#define INT_STATUS_ENABLE_ADDRESS   0x00000418
 
#define INT_STATUS_ENABLE_ERROR_S   7
 
#define INT_STATUS_ENABLE_ERROR   0x00000080
 
#define INT_STATUS_ENABLE_CPU_S   6
 
#define INT_STATUS_ENABLE_CPU   0x00000040
 
#define INT_STATUS_ENABLE_INT_S   5
 
#define INT_STATUS_ENABLE_INT   0x00000020
 
#define INT_STATUS_ENABLE_COUNTER_S   4
 
#define INT_STATUS_ENABLE_COUNTER   0x00000010
 
#define INT_STATUS_ENABLE_MBOX_DATA_S   0
 
#define INT_STATUS_ENABLE_MBOX_DATA   0x0000000f
 
#define CPU_INT_STATUS_ENABLE_ADDRESS   0x00000419
 
#define CPU_INT_STATUS_ENABLE_BIT_S   0
 
#define CPU_INT_STATUS_ENABLE_BIT   0x000000ff
 
#define ERROR_STATUS_ENABLE_ADDRESS   0x0000041a
 
#define ERROR_STATUS_ENABLE_RX_UNDERFLOW_S   1
 
#define ERROR_STATUS_ENABLE_RX_UNDERFLOW   0x00000002
 
#define ERROR_STATUS_ENABLE_TX_OVERFLOW_S   0
 
#define ERROR_STATUS_ENABLE_TX_OVERFLOW   0x00000001
 
#define COUNTER_INT_STATUS_ENABLE_ADDRESS   0x0000041b
 
#define COUNTER_INT_STATUS_ENABLE_BIT_S   0
 
#define COUNTER_INT_STATUS_ENABLE_BIT   0x000000ff
 
#define COUNT_ADDRESS   0x00000420
 
#define COUNT_DEC_ADDRESS   0x00000440
 
#define WINDOW_DATA_ADDRESS   0x00000474
 
#define WINDOW_WRITE_ADDR_ADDRESS   0x00000478
 
#define WINDOW_READ_ADDR_ADDRESS   0x0000047c
 
#define CPU_DBG_SEL_ADDRESS   0x00000483
 
#define CPU_DBG_ADDRESS   0x00000484
 
#define LOCAL_SCRATCH_ADDRESS   0x000000c0
 
#define ATH6KL_OPTION_SLEEP_DISABLE   0x08
 
#define RTC_BASE_ADDRESS   0x00004000
 
#define GPIO_BASE_ADDRESS   0x00014000
 
#define MBOX_BASE_ADDRESS   0x00018000
 
#define ANALOG_INTF_BASE_ADDRESS   0x0001c000
 
#define ATH6KL_ANALOG_PLL_REGISTER   (ANALOG_INTF_BASE_ADDRESS + 0x284)
 
#define SM(f, v)   (((v) << f##_S) & f)
 
#define MS(f, v)   (((v) & f) >> f##_S)
 
#define ATH6KL_AR6003_HI_START_ADDR   0x00540600
 
#define ATH6KL_AR6004_HI_START_ADDR   0x00400800
 
#define HI_ITEM(item)   offsetof(struct host_interest, item)
 
#define HI_OPTION_MAC_ADDR_METHOD_SHIFT   3
 
#define HI_OPTION_FW_MODE_IBSS   0x0
 
#define HI_OPTION_FW_MODE_BSS_STA   0x1
 
#define HI_OPTION_FW_MODE_AP   0x2
 
#define HI_OPTION_FW_SUBMODE_NONE   0x0
 
#define HI_OPTION_FW_SUBMODE_P2PDEV   0x1
 
#define HI_OPTION_FW_SUBMODE_P2PCLIENT   0x2
 
#define HI_OPTION_FW_SUBMODE_P2PGO   0x3
 
#define HI_OPTION_NUM_DEV_SHIFT   0x9
 
#define HI_OPTION_FW_BRIDGE_SHIFT   0x04
 
#define HI_OPTION_FW_MODE_BITS   0x2
 
#define HI_OPTION_FW_MODE_SHIFT   0xC
 
#define HI_OPTION_FW_SUBMODE_BITS   0x2
 
#define HI_OPTION_FW_SUBMODE_SHIFT   0x14
 
#define AR6003_VTOP(vaddr)   ((vaddr) & 0x001fffff)
 
#define AR6004_VTOP(vaddr)   (vaddr)
 
#define TARG_VTOP(target_type, vaddr)
 
#define ATH6KL_FWLOG_PAYLOAD_SIZE   1500
 

Variables

struct host_interest __packed
 

Macro Definition Documentation

#define ANALOG_INTF_BASE_ADDRESS   0x0001c000

Definition at line 128 of file target.h.

#define AR6003_BOARD_DATA_SZ   1024

Definition at line 21 of file target.h.

#define AR6003_BOARD_EXT_DATA_SZ   768

Definition at line 22 of file target.h.

#define AR6003_BOARD_EXT_DATA_SZ_V2   1024

Definition at line 23 of file target.h.

#define AR6003_VTOP (   vaddr)    ((vaddr) & 0x001fffff)

Definition at line 333 of file target.h.

#define AR6004_BOARD_DATA_SZ   6144

Definition at line 25 of file target.h.

#define AR6004_BOARD_EXT_DATA_SZ   0

Definition at line 26 of file target.h.

#define AR6004_VTOP (   vaddr)    (vaddr)

Definition at line 334 of file target.h.

#define ATH6KL_ANALOG_PLL_REGISTER   (ANALOG_INTF_BASE_ADDRESS + 0x284)

Definition at line 131 of file target.h.

#define ATH6KL_AR6003_HI_START_ADDR   0x00540600

Definition at line 144 of file target.h.

#define ATH6KL_AR6004_HI_START_ADDR   0x00400800

Definition at line 145 of file target.h.

#define ATH6KL_FWLOG_PAYLOAD_SIZE   1500

Definition at line 340 of file target.h.

#define ATH6KL_OPTION_SLEEP_DISABLE   0x08

Definition at line 123 of file target.h.

#define CLOCK_CONTROL_ADDRESS   0x00000028

Definition at line 36 of file target.h.

#define CLOCK_CONTROL_LF_CLK32   0x00000004

Definition at line 38 of file target.h.

#define CLOCK_CONTROL_LF_CLK32_S   2

Definition at line 37 of file target.h.

#define COUNT_ADDRESS   0x00000420

Definition at line 112 of file target.h.

#define COUNT_DEC_ADDRESS   0x00000440

Definition at line 114 of file target.h.

#define COUNTER_INT_STATUS_ADDRESS   0x00000403

Definition at line 76 of file target.h.

#define COUNTER_INT_STATUS_COUNTER   0x000000ff

Definition at line 78 of file target.h.

#define COUNTER_INT_STATUS_COUNTER_S   0

Definition at line 77 of file target.h.

#define COUNTER_INT_STATUS_ENABLE_ADDRESS   0x0000041b

Definition at line 108 of file target.h.

#define COUNTER_INT_STATUS_ENABLE_BIT   0x000000ff

Definition at line 110 of file target.h.

#define COUNTER_INT_STATUS_ENABLE_BIT_S   0

Definition at line 109 of file target.h.

#define CPU_CLOCK_ADDRESS   0x00000020

Definition at line 34 of file target.h.

#define CPU_CLOCK_STANDARD   0x00000003

Definition at line 33 of file target.h.

#define CPU_CLOCK_STANDARD_S   0

Definition at line 32 of file target.h.

#define CPU_DBG_ADDRESS   0x00000484

Definition at line 120 of file target.h.

#define CPU_DBG_SEL_ADDRESS   0x00000483

Definition at line 119 of file target.h.

#define CPU_INT_STATUS_ADDRESS   0x00000401

Definition at line 64 of file target.h.

#define CPU_INT_STATUS_ENABLE_ADDRESS   0x00000419

Definition at line 97 of file target.h.

#define CPU_INT_STATUS_ENABLE_BIT   0x000000ff

Definition at line 99 of file target.h.

#define CPU_INT_STATUS_ENABLE_BIT_S   0

Definition at line 98 of file target.h.

#define ERROR_INT_STATUS_ADDRESS   0x00000402

Definition at line 66 of file target.h.

#define ERROR_INT_STATUS_RX_UNDERFLOW   0x00000002

Definition at line 71 of file target.h.

#define ERROR_INT_STATUS_RX_UNDERFLOW_S   1

Definition at line 70 of file target.h.

#define ERROR_INT_STATUS_TX_OVERFLOW   0x00000001

Definition at line 74 of file target.h.

#define ERROR_INT_STATUS_TX_OVERFLOW_S   0

Definition at line 73 of file target.h.

#define ERROR_INT_STATUS_WAKEUP   0x00000004

Definition at line 68 of file target.h.

#define ERROR_INT_STATUS_WAKEUP_S   2

Definition at line 67 of file target.h.

#define ERROR_STATUS_ENABLE_ADDRESS   0x0000041a

Definition at line 101 of file target.h.

#define ERROR_STATUS_ENABLE_RX_UNDERFLOW   0x00000002

Definition at line 103 of file target.h.

#define ERROR_STATUS_ENABLE_RX_UNDERFLOW_S   1

Definition at line 102 of file target.h.

#define ERROR_STATUS_ENABLE_TX_OVERFLOW   0x00000001

Definition at line 106 of file target.h.

#define ERROR_STATUS_ENABLE_TX_OVERFLOW_S   0

Definition at line 105 of file target.h.

#define GPIO_BASE_ADDRESS   0x00014000

Definition at line 126 of file target.h.

#define GPIO_PIN10_ADDRESS   0x00000050

Definition at line 49 of file target.h.

#define GPIO_PIN11_ADDRESS   0x00000054

Definition at line 50 of file target.h.

#define GPIO_PIN12_ADDRESS   0x00000058

Definition at line 51 of file target.h.

#define GPIO_PIN13_ADDRESS   0x0000005c

Definition at line 52 of file target.h.

#define GPIO_PIN9_ADDRESS   0x0000004c

Definition at line 48 of file target.h.

#define HI_ITEM (   item)    offsetof(struct host_interest, item)

Definition at line 302 of file target.h.

#define HI_OPTION_FW_BRIDGE_SHIFT   0x04

Definition at line 317 of file target.h.

#define HI_OPTION_FW_MODE_AP   0x2

Definition at line 308 of file target.h.

#define HI_OPTION_FW_MODE_BITS   0x2

Definition at line 326 of file target.h.

#define HI_OPTION_FW_MODE_BSS_STA   0x1

Definition at line 307 of file target.h.

#define HI_OPTION_FW_MODE_IBSS   0x0

Definition at line 306 of file target.h.

#define HI_OPTION_FW_MODE_SHIFT   0xC

Definition at line 327 of file target.h.

#define HI_OPTION_FW_SUBMODE_BITS   0x2

Definition at line 329 of file target.h.

#define HI_OPTION_FW_SUBMODE_NONE   0x0

Definition at line 310 of file target.h.

#define HI_OPTION_FW_SUBMODE_P2PCLIENT   0x2

Definition at line 312 of file target.h.

#define HI_OPTION_FW_SUBMODE_P2PDEV   0x1

Definition at line 311 of file target.h.

#define HI_OPTION_FW_SUBMODE_P2PGO   0x3

Definition at line 313 of file target.h.

#define HI_OPTION_FW_SUBMODE_SHIFT   0x14

Definition at line 330 of file target.h.

#define HI_OPTION_MAC_ADDR_METHOD_SHIFT   3

Definition at line 304 of file target.h.

#define HI_OPTION_NUM_DEV_SHIFT   0x9

Definition at line 315 of file target.h.

#define HOST_INT_STATUS_ADDRESS   0x00000400

Definition at line 54 of file target.h.

#define HOST_INT_STATUS_COUNTER   0x00000010

Definition at line 62 of file target.h.

#define HOST_INT_STATUS_COUNTER_S   4

Definition at line 61 of file target.h.

#define HOST_INT_STATUS_CPU   0x00000040

Definition at line 59 of file target.h.

#define HOST_INT_STATUS_CPU_S   6

Definition at line 58 of file target.h.

#define HOST_INT_STATUS_ERROR   0x00000080

Definition at line 56 of file target.h.

#define HOST_INT_STATUS_ERROR_S   7

Definition at line 55 of file target.h.

#define INT_STATUS_ENABLE_ADDRESS   0x00000418

Definition at line 82 of file target.h.

#define INT_STATUS_ENABLE_COUNTER   0x00000010

Definition at line 92 of file target.h.

#define INT_STATUS_ENABLE_COUNTER_S   4

Definition at line 91 of file target.h.

#define INT_STATUS_ENABLE_CPU   0x00000040

Definition at line 87 of file target.h.

#define INT_STATUS_ENABLE_CPU_S   6

Definition at line 86 of file target.h.

#define INT_STATUS_ENABLE_ERROR   0x00000080

Definition at line 84 of file target.h.

#define INT_STATUS_ENABLE_ERROR_S   7

Definition at line 83 of file target.h.

#define INT_STATUS_ENABLE_INT   0x00000020

Definition at line 90 of file target.h.

#define INT_STATUS_ENABLE_INT_S   5

Definition at line 89 of file target.h.

#define INT_STATUS_ENABLE_MBOX_DATA   0x0000000f

Definition at line 95 of file target.h.

#define INT_STATUS_ENABLE_MBOX_DATA_S   0

Definition at line 94 of file target.h.

#define LOCAL_SCRATCH_ADDRESS   0x000000c0

Definition at line 122 of file target.h.

#define LPO_CAL_ADDRESS   0x000000e0

Definition at line 44 of file target.h.

#define LPO_CAL_ENABLE   0x00100000

Definition at line 46 of file target.h.

#define LPO_CAL_ENABLE_S   20

Definition at line 45 of file target.h.

#define MBOX_BASE_ADDRESS   0x00018000

Definition at line 127 of file target.h.

#define MS (   f,
  v 
)    (((v) & f) >> f##_S)

Definition at line 134 of file target.h.

#define RESET_CONTROL_ADDRESS   0x00000000

Definition at line 28 of file target.h.

#define RESET_CONTROL_COLD_RST   0x00000100

Definition at line 29 of file target.h.

#define RESET_CONTROL_MBOX_RST   0x00000004

Definition at line 30 of file target.h.

#define RTC_BASE_ADDRESS   0x00004000

Definition at line 125 of file target.h.

#define RX_LOOKAHEAD_VALID_ADDRESS   0x00000405

Definition at line 80 of file target.h.

#define SM (   f,
  v 
)    (((v) << f##_S) & f)

Definition at line 133 of file target.h.

#define SYSTEM_SLEEP_ADDRESS   0x000000c4

Definition at line 40 of file target.h.

#define SYSTEM_SLEEP_DISABLE   0x00000001

Definition at line 42 of file target.h.

#define SYSTEM_SLEEP_DISABLE_S   0

Definition at line 41 of file target.h.

#define TARG_VTOP (   target_type,
  vaddr 
)
Value:

Definition at line 336 of file target.h.

#define WINDOW_DATA_ADDRESS   0x00000474

Definition at line 116 of file target.h.

#define WINDOW_READ_ADDR_ADDRESS   0x0000047c

Definition at line 118 of file target.h.

#define WINDOW_WRITE_ADDR_ADDRESS   0x00000478

Definition at line 117 of file target.h.

Variable Documentation