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

Go to the source code of this file.

Macros

#define BBC_AID   0x00 /* [B] Agent ID */
 
#define BBC_DEVP   0x01 /* [B] Device Present */
 
#define BBC_ARB   0x02 /* [B] Arbitration */
 
#define BBC_QUIESCE   0x03 /* [B] Quiesce */
 
#define BBC_WDACTION   0x04 /* [B] Watchdog Action */
 
#define BBC_SPG   0x06 /* [B] Soft POR Gen */
 
#define BBC_SXG   0x07 /* [B] Soft XIR Gen */
 
#define BBC_PSRC   0x08 /* [W] POR Source */
 
#define BBC_XSRC   0x0c /* [B] XIR Source */
 
#define BBC_CSC   0x0d /* [B] Clock Synthesizers Control*/
 
#define BBC_ES_CTRL   0x0e /* [H] Energy Star Control */
 
#define BBC_ES_ACT   0x10 /* [W] E* Assert Change Time */
 
#define BBC_ES_DACT   0x14 /* [B] E* De-Assert Change Time */
 
#define BBC_ES_DABT   0x15 /* [B] E* De-Assert Bypass Time */
 
#define BBC_ES_ABT   0x16 /* [H] E* Assert Bypass Time */
 
#define BBC_ES_PST   0x18 /* [W] E* PLL Settle Time */
 
#define BBC_ES_FSL   0x1c /* [W] E* Frequency Switch Latency*/
 
#define BBC_EBUST   0x20 /* [Q] EBUS Timing */
 
#define BBC_JTAG_CMD   0x28 /* [W] JTAG+ Command */
 
#define BBC_JTAG_CTRL   0x2c /* [B] JTAG+ Control */
 
#define BBC_I2C_SEL   0x2d /* [B] I2C Selection */
 
#define BBC_I2C_0_S1   0x2e /* [B] I2C ctrlr-0 reg S1 */
 
#define BBC_I2C_0_S0   0x2f /* [B] I2C ctrlr-0 regs S0,S0',S2,S3*/
 
#define BBC_I2C_1_S1   0x30 /* [B] I2C ctrlr-1 reg S1 */
 
#define BBC_I2C_1_S0   0x31 /* [B] I2C ctrlr-1 regs S0,S0',S2,S3*/
 
#define BBC_KBD_BEEP   0x32 /* [B] Keyboard Beep */
 
#define BBC_KBD_BCNT   0x34 /* [W] Keyboard Beep Counter */
 
#define BBC_REGS_SIZE   0x40
 
#define BBC_AID_ID   0x07 /* Safari ID */
 
#define BBC_AID_RESV   0xf8 /* Reserved */
 
#define BBC_DEVP_CPU0   0x01 /* Processor 0 present */
 
#define BBC_DEVP_CPU1   0x02 /* Processor 1 present */
 
#define BBC_DEVP_CPU2   0x04 /* Processor 2 present */
 
#define BBC_DEVP_CPU3   0x08 /* Processor 3 present */
 
#define BBC_DEVP_RESV   0xf0 /* Reserved */
 
#define BBC_ARB_CPU0   0x01 /* Enable cpu 0 BBC arbitratrion */
 
#define BBC_ARB_CPU1   0x02 /* Enable cpu 1 BBC arbitratrion */
 
#define BBC_ARB_CPU2   0x04 /* Enable cpu 2 BBC arbitratrion */
 
#define BBC_ARB_CPU3   0x08 /* Enable cpu 3 BBC arbitratrion */
 
#define BBC_ARB_RESV   0xf0 /* Reserved */
 
#define BBC_QUIESCE_S02   0x01 /* Quiesce Safari segment for cpu 0 and 2 */
 
#define BBC_QUIESCE_S13   0x02 /* Quiesce Safari segment for cpu 1 and 3 */
 
#define BBC_QUIESCE_B02   0x04 /* Quiesce BBC segment for cpu 0 and 2 */
 
#define BBC_QUIESCE_B13   0x08 /* Quiesce BBC segment for cpu 1 and 3 */
 
#define BBC_QUIESCE_FD0   0x10 /* Disable Fatal_Error[0] reporting */
 
#define BBC_QUIESCE_FD1   0x20 /* Disable Fatal_Error[1] reporting */
 
#define BBC_QUIESCE_FD2   0x40 /* Disable Fatal_Error[2] reporting */
 
#define BBC_QUIESCE_FD3   0x80 /* Disable Fatal_Error[3] reporting */
 
#define BBC_WDACTION_RST
 
#define BBC_WDACTION_RESV   0xfe /* Reserved */
 
#define BBC_SPG_CPU0   0x01 /* Assert POR for processor 0 */
 
#define BBC_SPG_CPU1   0x02 /* Assert POR for processor 1 */
 
#define BBC_SPG_CPU2   0x04 /* Assert POR for processor 2 */
 
#define BBC_SPG_CPU3   0x08 /* Assert POR for processor 3 */
 
#define BBC_SPG_CPUALL
 
#define BBC_SPG_RESV   0xe0 /* Reserved */
 
#define BBC_SXG_CPU0   0x01 /* Assert XIR for processor 0 */
 
#define BBC_SXG_CPU1   0x02 /* Assert XIR for processor 1 */
 
#define BBC_SXG_CPU2   0x04 /* Assert XIR for processor 2 */
 
#define BBC_SXG_CPU3   0x08 /* Assert XIR for processor 3 */
 
#define BBC_SXG_RESV   0xf0 /* Reserved */
 
#define BBC_PSRC_SPG0   0x0001 /* CPU 0 reset via BBC_SPG register */
 
#define BBC_PSRC_SPG1   0x0002 /* CPU 1 reset via BBC_SPG register */
 
#define BBC_PSRC_SPG2   0x0004 /* CPU 2 reset via BBC_SPG register */
 
#define BBC_PSRC_SPG3   0x0008 /* CPU 3 reset via BBC_SPG register */
 
#define BBC_PSRC_SPGSYS   0x0010 /* System reset via BBC_SPG register */
 
#define BBC_PSRC_JTAG   0x0020 /* System reset via JTAG+ */
 
#define BBC_PSRC_BUTTON   0x0040 /* System reset via push-button dongle */
 
#define BBC_PSRC_PWRUP   0x0080 /* System reset via power-up */
 
#define BBC_PSRC_FE0   0x0100 /* CPU 0 reported Fatal_Error */
 
#define BBC_PSRC_FE1   0x0200 /* CPU 1 reported Fatal_Error */
 
#define BBC_PSRC_FE2   0x0400 /* CPU 2 reported Fatal_Error */
 
#define BBC_PSRC_FE3   0x0800 /* CPU 3 reported Fatal_Error */
 
#define BBC_PSRC_FE4   0x1000 /* Schizo reported Fatal_Error */
 
#define BBC_PSRC_FE5   0x2000 /* Safari device 5 reported Fatal_Error */
 
#define BBC_PSRC_FE6   0x4000 /* CPMS reported Fatal_Error */
 
#define BBC_PSRC_SYNTH
 
#define BBC_PSRC_WDT   0x10000 /* System reset via Super I/O watchdog */
 
#define BBC_PSRC_RSC
 
#define BBC_XSRC_SXG0   0x01 /* CPU 0 received XIR via Soft_XIR_GEN reg */
 
#define BBC_XSRC_SXG1   0x02 /* CPU 1 received XIR via Soft_XIR_GEN reg */
 
#define BBC_XSRC_SXG2   0x04 /* CPU 2 received XIR via Soft_XIR_GEN reg */
 
#define BBC_XSRC_SXG3   0x08 /* CPU 3 received XIR via Soft_XIR_GEN reg */
 
#define BBC_XSRC_JTAG   0x10 /* All CPUs received XIR via JTAG+ */
 
#define BBC_XSRC_W_OR_B
 
#define BBC_XSRC_RESV   0xc0 /* Reserved */
 
#define BBC_CSC_SLOAD   0x01 /* Directly connected to S_LOAD pins */
 
#define BBC_CSC_SDATA   0x02 /* Directly connected to S_DATA pins */
 
#define BBC_CSC_SCLOCK   0x04 /* Directly connected to S_CLOCK pins */
 
#define BBC_CSC_RESV   0x78 /* Reserved */
 
#define BBC_CSC_RST   0x80 /* Generate system reset when S_LOAD==1 */
 
#define BBC_ES_CTRL_1_1   0x01 /* Full frequency */
 
#define BBC_ES_CTRL_1_2   0x02 /* 1/2 frequency */
 
#define BBC_ES_CTRL_1_32   0x20 /* 1/32 frequency */
 
#define BBC_ES_RESV   0xdc /* Reserved */
 
#define BBC_ES_ACT_VAL   0xff
 
#define BBC_ES_ABT_VAL   0xffff
 
#define BBC_ES_PST_VAL   0xffffffff
 
#define BBC_ES_FSL_VAL   0xffffffff
 
#define BBC_KBD_BEEP_ENABLE   0x01 /* Enable beep */
 
#define BBC_KBD_BEEP_RESV   0xfe /* Reserved */
 
#define BBC_KBD_BCNT_BITS   0x0007fc00
 
#define BBC_KBC_BCNT_RESV   0xfff803ff
 

Macro Definition Documentation

#define BBC_AID   0x00 /* [B] Agent ID */

Definition at line 16 of file bbc.h.

#define BBC_AID_ID   0x07 /* Safari ID */

Definition at line 54 of file bbc.h.

#define BBC_AID_RESV   0xf8 /* Reserved */

Definition at line 55 of file bbc.h.

#define BBC_ARB   0x02 /* [B] Arbitration */

Definition at line 18 of file bbc.h.

#define BBC_ARB_CPU0   0x01 /* Enable cpu 0 BBC arbitratrion */

Definition at line 69 of file bbc.h.

#define BBC_ARB_CPU1   0x02 /* Enable cpu 1 BBC arbitratrion */

Definition at line 70 of file bbc.h.

#define BBC_ARB_CPU2   0x04 /* Enable cpu 2 BBC arbitratrion */

Definition at line 71 of file bbc.h.

#define BBC_ARB_CPU3   0x08 /* Enable cpu 3 BBC arbitratrion */

Definition at line 72 of file bbc.h.

#define BBC_ARB_RESV   0xf0 /* Reserved */

Definition at line 73 of file bbc.h.

#define BBC_CSC   0x0d /* [B] Clock Synthesizers Control*/

Definition at line 25 of file bbc.h.

#define BBC_CSC_RESV   0x78 /* Reserved */

Definition at line 152 of file bbc.h.

#define BBC_CSC_RST   0x80 /* Generate system reset when S_LOAD==1 */

Definition at line 153 of file bbc.h.

#define BBC_CSC_SCLOCK   0x04 /* Directly connected to S_CLOCK pins */

Definition at line 151 of file bbc.h.

#define BBC_CSC_SDATA   0x02 /* Directly connected to S_DATA pins */

Definition at line 150 of file bbc.h.

#define BBC_CSC_SLOAD   0x01 /* Directly connected to S_LOAD pins */

Definition at line 149 of file bbc.h.

#define BBC_DEVP   0x01 /* [B] Device Present */

Definition at line 17 of file bbc.h.

#define BBC_DEVP_CPU0   0x01 /* Processor 0 present */

Definition at line 60 of file bbc.h.

#define BBC_DEVP_CPU1   0x02 /* Processor 1 present */

Definition at line 61 of file bbc.h.

#define BBC_DEVP_CPU2   0x04 /* Processor 2 present */

Definition at line 62 of file bbc.h.

#define BBC_DEVP_CPU3   0x08 /* Processor 3 present */

Definition at line 63 of file bbc.h.

#define BBC_DEVP_RESV   0xf0 /* Reserved */

Definition at line 64 of file bbc.h.

#define BBC_EBUST   0x20 /* [Q] EBUS Timing */

Definition at line 33 of file bbc.h.

#define BBC_ES_ABT   0x16 /* [H] E* Assert Bypass Time */

Definition at line 30 of file bbc.h.

#define BBC_ES_ABT_VAL   0xffff

Definition at line 182 of file bbc.h.

#define BBC_ES_ACT   0x10 /* [W] E* Assert Change Time */

Definition at line 27 of file bbc.h.

#define BBC_ES_ACT_VAL   0xff

Definition at line 175 of file bbc.h.

#define BBC_ES_CTRL   0x0e /* [H] Energy Star Control */

Definition at line 26 of file bbc.h.

#define BBC_ES_CTRL_1_1   0x01 /* Full frequency */

Definition at line 165 of file bbc.h.

#define BBC_ES_CTRL_1_2   0x02 /* 1/2 frequency */

Definition at line 166 of file bbc.h.

#define BBC_ES_CTRL_1_32   0x20 /* 1/32 frequency */

Definition at line 167 of file bbc.h.

#define BBC_ES_DABT   0x15 /* [B] E* De-Assert Bypass Time */

Definition at line 29 of file bbc.h.

#define BBC_ES_DACT   0x14 /* [B] E* De-Assert Change Time */

Definition at line 28 of file bbc.h.

#define BBC_ES_FSL   0x1c /* [W] E* Frequency Switch Latency*/

Definition at line 32 of file bbc.h.

#define BBC_ES_FSL_VAL   0xffffffff

Definition at line 195 of file bbc.h.

#define BBC_ES_PST   0x18 /* [W] E* PLL Settle Time */

Definition at line 31 of file bbc.h.

#define BBC_ES_PST_VAL   0xffffffff

Definition at line 189 of file bbc.h.

#define BBC_ES_RESV   0xdc /* Reserved */

Definition at line 168 of file bbc.h.

#define BBC_I2C_0_S0   0x2f /* [B] I2C ctrlr-0 regs S0,S0',S2,S3*/

Definition at line 38 of file bbc.h.

#define BBC_I2C_0_S1   0x2e /* [B] I2C ctrlr-0 reg S1 */

Definition at line 37 of file bbc.h.

#define BBC_I2C_1_S0   0x31 /* [B] I2C ctrlr-1 regs S0,S0',S2,S3*/

Definition at line 40 of file bbc.h.

#define BBC_I2C_1_S1   0x30 /* [B] I2C ctrlr-1 reg S1 */

Definition at line 39 of file bbc.h.

#define BBC_I2C_SEL   0x2d /* [B] I2C Selection */

Definition at line 36 of file bbc.h.

#define BBC_JTAG_CMD   0x28 /* [W] JTAG+ Command */

Definition at line 34 of file bbc.h.

#define BBC_JTAG_CTRL   0x2c /* [B] JTAG+ Control */

Definition at line 35 of file bbc.h.

#define BBC_KBC_BCNT_RESV   0xfff803ff

Definition at line 211 of file bbc.h.

#define BBC_KBD_BCNT   0x34 /* [W] Keyboard Beep Counter */

Definition at line 42 of file bbc.h.

#define BBC_KBD_BCNT_BITS   0x0007fc00

Definition at line 210 of file bbc.h.

#define BBC_KBD_BEEP   0x32 /* [B] Keyboard Beep */

Definition at line 41 of file bbc.h.

#define BBC_KBD_BEEP_ENABLE   0x01 /* Enable beep */

Definition at line 200 of file bbc.h.

#define BBC_KBD_BEEP_RESV   0xfe /* Reserved */

Definition at line 201 of file bbc.h.

#define BBC_PSRC   0x08 /* [W] POR Source */

Definition at line 23 of file bbc.h.

#define BBC_PSRC_BUTTON   0x0040 /* System reset via push-button dongle */

Definition at line 122 of file bbc.h.

#define BBC_PSRC_FE0   0x0100 /* CPU 0 reported Fatal_Error */

Definition at line 124 of file bbc.h.

#define BBC_PSRC_FE1   0x0200 /* CPU 1 reported Fatal_Error */

Definition at line 125 of file bbc.h.

#define BBC_PSRC_FE2   0x0400 /* CPU 2 reported Fatal_Error */

Definition at line 126 of file bbc.h.

#define BBC_PSRC_FE3   0x0800 /* CPU 3 reported Fatal_Error */

Definition at line 127 of file bbc.h.

#define BBC_PSRC_FE4   0x1000 /* Schizo reported Fatal_Error */

Definition at line 128 of file bbc.h.

#define BBC_PSRC_FE5   0x2000 /* Safari device 5 reported Fatal_Error */

Definition at line 129 of file bbc.h.

#define BBC_PSRC_FE6   0x4000 /* CPMS reported Fatal_Error */

Definition at line 130 of file bbc.h.

#define BBC_PSRC_JTAG   0x0020 /* System reset via JTAG+ */

Definition at line 121 of file bbc.h.

#define BBC_PSRC_PWRUP   0x0080 /* System reset via power-up */

Definition at line 123 of file bbc.h.

#define BBC_PSRC_RSC
Value:
0x20000 /* System reset via RSC remote monitoring
* device
*/

Definition at line 133 of file bbc.h.

#define BBC_PSRC_SPG0   0x0001 /* CPU 0 reset via BBC_SPG register */

Definition at line 116 of file bbc.h.

#define BBC_PSRC_SPG1   0x0002 /* CPU 1 reset via BBC_SPG register */

Definition at line 117 of file bbc.h.

#define BBC_PSRC_SPG2   0x0004 /* CPU 2 reset via BBC_SPG register */

Definition at line 118 of file bbc.h.

#define BBC_PSRC_SPG3   0x0008 /* CPU 3 reset via BBC_SPG register */

Definition at line 119 of file bbc.h.

#define BBC_PSRC_SPGSYS   0x0010 /* System reset via BBC_SPG register */

Definition at line 120 of file bbc.h.

#define BBC_PSRC_SYNTH
Value:
0x8000 /* System reset when on-board clock synthesizers
* were updated.
*/

Definition at line 131 of file bbc.h.

#define BBC_PSRC_WDT   0x10000 /* System reset via Super I/O watchdog */

Definition at line 132 of file bbc.h.

#define BBC_QUIESCE   0x03 /* [B] Quiesce */

Definition at line 19 of file bbc.h.

#define BBC_QUIESCE_B02   0x04 /* Quiesce BBC segment for cpu 0 and 2 */

Definition at line 80 of file bbc.h.

#define BBC_QUIESCE_B13   0x08 /* Quiesce BBC segment for cpu 1 and 3 */

Definition at line 81 of file bbc.h.

#define BBC_QUIESCE_FD0   0x10 /* Disable Fatal_Error[0] reporting */

Definition at line 82 of file bbc.h.

#define BBC_QUIESCE_FD1   0x20 /* Disable Fatal_Error[1] reporting */

Definition at line 83 of file bbc.h.

#define BBC_QUIESCE_FD2   0x40 /* Disable Fatal_Error[2] reporting */

Definition at line 84 of file bbc.h.

#define BBC_QUIESCE_FD3   0x80 /* Disable Fatal_Error[3] reporting */

Definition at line 85 of file bbc.h.

#define BBC_QUIESCE_S02   0x01 /* Quiesce Safari segment for cpu 0 and 2 */

Definition at line 78 of file bbc.h.

#define BBC_QUIESCE_S13   0x02 /* Quiesce Safari segment for cpu 1 and 3 */

Definition at line 79 of file bbc.h.

#define BBC_REGS_SIZE   0x40

Definition at line 44 of file bbc.h.

#define BBC_SPG   0x06 /* [B] Soft POR Gen */

Definition at line 21 of file bbc.h.

#define BBC_SPG_CPU0   0x01 /* Assert POR for processor 0 */

Definition at line 97 of file bbc.h.

#define BBC_SPG_CPU1   0x02 /* Assert POR for processor 1 */

Definition at line 98 of file bbc.h.

#define BBC_SPG_CPU2   0x04 /* Assert POR for processor 2 */

Definition at line 99 of file bbc.h.

#define BBC_SPG_CPU3   0x08 /* Assert POR for processor 3 */

Definition at line 100 of file bbc.h.

#define BBC_SPG_CPUALL
Value:
0x10 /* Reset all processors and reset
* the entire system.
*/

Definition at line 101 of file bbc.h.

#define BBC_SPG_RESV   0xe0 /* Reserved */

Definition at line 102 of file bbc.h.

#define BBC_SXG   0x07 /* [B] Soft XIR Gen */

Definition at line 22 of file bbc.h.

#define BBC_SXG_CPU0   0x01 /* Assert XIR for processor 0 */

Definition at line 107 of file bbc.h.

#define BBC_SXG_CPU1   0x02 /* Assert XIR for processor 1 */

Definition at line 108 of file bbc.h.

#define BBC_SXG_CPU2   0x04 /* Assert XIR for processor 2 */

Definition at line 109 of file bbc.h.

#define BBC_SXG_CPU3   0x08 /* Assert XIR for processor 3 */

Definition at line 110 of file bbc.h.

#define BBC_SXG_RESV   0xf0 /* Reserved */

Definition at line 111 of file bbc.h.

#define BBC_WDACTION   0x04 /* [B] Watchdog Action */

Definition at line 20 of file bbc.h.

#define BBC_WDACTION_RESV   0xfe /* Reserved */

Definition at line 92 of file bbc.h.

#define BBC_WDACTION_RST
Value:
0x01 /* When set, watchdog causes system reset.
* When clear, BBC ignores watchdog signal.
*/

Definition at line 91 of file bbc.h.

#define BBC_XSRC   0x0c /* [B] XIR Source */

Definition at line 24 of file bbc.h.

#define BBC_XSRC_JTAG   0x10 /* All CPUs received XIR via JTAG+ */

Definition at line 142 of file bbc.h.

#define BBC_XSRC_RESV   0xc0 /* Reserved */

Definition at line 144 of file bbc.h.

#define BBC_XSRC_SXG0   0x01 /* CPU 0 received XIR via Soft_XIR_GEN reg */

Definition at line 138 of file bbc.h.

#define BBC_XSRC_SXG1   0x02 /* CPU 1 received XIR via Soft_XIR_GEN reg */

Definition at line 139 of file bbc.h.

#define BBC_XSRC_SXG2   0x04 /* CPU 2 received XIR via Soft_XIR_GEN reg */

Definition at line 140 of file bbc.h.

#define BBC_XSRC_SXG3   0x08 /* CPU 3 received XIR via Soft_XIR_GEN reg */

Definition at line 141 of file bbc.h.

#define BBC_XSRC_W_OR_B
Value:
0x20 /* All CPUs received XIR either because:
* a) Super I/O watchdog fired, or
* b) XIR push button was activated
*/

Definition at line 143 of file bbc.h.