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

Go to the source code of this file.

Data Structures

struct  acpi_fde_info
 
struct  acpi_grt_info
 
struct  acpi_gtm_info
 
struct  acpi_pld_info
 

Macros

#define ACPI_PLD_REV1_BUFFER_SIZE   16 /* For Revision 1 of the buffer (From ACPI spec) */
 
#define ACPI_PLD_BUFFER_SIZE   20 /* For Revision 2 of the buffer (From ACPI spec) */
 
#define ACPI_PLD_GET_REVISION(dword)   ACPI_GET_BITS (dword, 0, ACPI_7BIT_MASK)
 
#define ACPI_PLD_SET_REVISION(dword, value)   ACPI_SET_BITS (dword, 0, ACPI_7BIT_MASK, value) /* Offset 0, Len 7 */
 
#define ACPI_PLD_GET_IGNORE_COLOR(dword)   ACPI_GET_BITS (dword, 7, ACPI_1BIT_MASK)
 
#define ACPI_PLD_SET_IGNORE_COLOR(dword, value)   ACPI_SET_BITS (dword, 7, ACPI_1BIT_MASK, value) /* Offset 7, Len 1 */
 
#define ACPI_PLD_GET_COLOR(dword)   ACPI_GET_BITS (dword, 8, ACPI_24BIT_MASK)
 
#define ACPI_PLD_SET_COLOR(dword, value)   ACPI_SET_BITS (dword, 8, ACPI_24BIT_MASK, value) /* Offset 8, Len 24 */
 
#define ACPI_PLD_GET_WIDTH(dword)   ACPI_GET_BITS (dword, 0, ACPI_16BIT_MASK)
 
#define ACPI_PLD_SET_WIDTH(dword, value)   ACPI_SET_BITS (dword, 0, ACPI_16BIT_MASK, value) /* Offset 32+0=32, Len 16 */
 
#define ACPI_PLD_GET_HEIGHT(dword)   ACPI_GET_BITS (dword, 16, ACPI_16BIT_MASK)
 
#define ACPI_PLD_SET_HEIGHT(dword, value)   ACPI_SET_BITS (dword, 16, ACPI_16BIT_MASK, value) /* Offset 32+16=48, Len 16 */
 
#define ACPI_PLD_GET_USER_VISIBLE(dword)   ACPI_GET_BITS (dword, 0, ACPI_1BIT_MASK)
 
#define ACPI_PLD_SET_USER_VISIBLE(dword, value)   ACPI_SET_BITS (dword, 0, ACPI_1BIT_MASK, value) /* Offset 64+0=64, Len 1 */
 
#define ACPI_PLD_GET_DOCK(dword)   ACPI_GET_BITS (dword, 1, ACPI_1BIT_MASK)
 
#define ACPI_PLD_SET_DOCK(dword, value)   ACPI_SET_BITS (dword, 1, ACPI_1BIT_MASK, value) /* Offset 64+1=65, Len 1 */
 
#define ACPI_PLD_GET_LID(dword)   ACPI_GET_BITS (dword, 2, ACPI_1BIT_MASK)
 
#define ACPI_PLD_SET_LID(dword, value)   ACPI_SET_BITS (dword, 2, ACPI_1BIT_MASK, value) /* Offset 64+2=66, Len 1 */
 
#define ACPI_PLD_GET_PANEL(dword)   ACPI_GET_BITS (dword, 3, ACPI_3BIT_MASK)
 
#define ACPI_PLD_SET_PANEL(dword, value)   ACPI_SET_BITS (dword, 3, ACPI_3BIT_MASK, value) /* Offset 64+3=67, Len 3 */
 
#define ACPI_PLD_GET_VERTICAL(dword)   ACPI_GET_BITS (dword, 6, ACPI_2BIT_MASK)
 
#define ACPI_PLD_SET_VERTICAL(dword, value)   ACPI_SET_BITS (dword, 6, ACPI_2BIT_MASK, value) /* Offset 64+6=70, Len 2 */
 
#define ACPI_PLD_GET_HORIZONTAL(dword)   ACPI_GET_BITS (dword, 8, ACPI_2BIT_MASK)
 
#define ACPI_PLD_SET_HORIZONTAL(dword, value)   ACPI_SET_BITS (dword, 8, ACPI_2BIT_MASK, value) /* Offset 64+8=72, Len 2 */
 
#define ACPI_PLD_GET_SHAPE(dword)   ACPI_GET_BITS (dword, 10, ACPI_4BIT_MASK)
 
#define ACPI_PLD_SET_SHAPE(dword, value)   ACPI_SET_BITS (dword, 10, ACPI_4BIT_MASK, value) /* Offset 64+10=74, Len 4 */
 
#define ACPI_PLD_GET_ORIENTATION(dword)   ACPI_GET_BITS (dword, 14, ACPI_1BIT_MASK)
 
#define ACPI_PLD_SET_ORIENTATION(dword, value)   ACPI_SET_BITS (dword, 14, ACPI_1BIT_MASK, value) /* Offset 64+14=78, Len 1 */
 
#define ACPI_PLD_GET_TOKEN(dword)   ACPI_GET_BITS (dword, 15, ACPI_8BIT_MASK)
 
#define ACPI_PLD_SET_TOKEN(dword, value)   ACPI_SET_BITS (dword, 15, ACPI_8BIT_MASK, value) /* Offset 64+15=79, Len 8 */
 
#define ACPI_PLD_GET_POSITION(dword)   ACPI_GET_BITS (dword, 23, ACPI_8BIT_MASK)
 
#define ACPI_PLD_SET_POSITION(dword, value)   ACPI_SET_BITS (dword, 23, ACPI_8BIT_MASK, value) /* Offset 64+23=87, Len 8 */
 
#define ACPI_PLD_GET_BAY(dword)   ACPI_GET_BITS (dword, 31, ACPI_1BIT_MASK)
 
#define ACPI_PLD_SET_BAY(dword, value)   ACPI_SET_BITS (dword, 31, ACPI_1BIT_MASK, value) /* Offset 64+31=95, Len 1 */
 
#define ACPI_PLD_GET_EJECTABLE(dword)   ACPI_GET_BITS (dword, 0, ACPI_1BIT_MASK)
 
#define ACPI_PLD_SET_EJECTABLE(dword, value)   ACPI_SET_BITS (dword, 0, ACPI_1BIT_MASK, value) /* Offset 96+0=96, Len 1 */
 
#define ACPI_PLD_GET_OSPM_EJECT(dword)   ACPI_GET_BITS (dword, 1, ACPI_1BIT_MASK)
 
#define ACPI_PLD_SET_OSPM_EJECT(dword, value)   ACPI_SET_BITS (dword, 1, ACPI_1BIT_MASK, value) /* Offset 96+1=97, Len 1 */
 
#define ACPI_PLD_GET_CABINET(dword)   ACPI_GET_BITS (dword, 2, ACPI_8BIT_MASK)
 
#define ACPI_PLD_SET_CABINET(dword, value)   ACPI_SET_BITS (dword, 2, ACPI_8BIT_MASK, value) /* Offset 96+2=98, Len 8 */
 
#define ACPI_PLD_GET_CARD_CAGE(dword)   ACPI_GET_BITS (dword, 10, ACPI_8BIT_MASK)
 
#define ACPI_PLD_SET_CARD_CAGE(dword, value)   ACPI_SET_BITS (dword, 10, ACPI_8BIT_MASK, value) /* Offset 96+10=106, Len 8 */
 
#define ACPI_PLD_GET_REFERENCE(dword)   ACPI_GET_BITS (dword, 18, ACPI_1BIT_MASK)
 
#define ACPI_PLD_SET_REFERENCE(dword, value)   ACPI_SET_BITS (dword, 18, ACPI_1BIT_MASK, value) /* Offset 96+18=114, Len 1 */
 
#define ACPI_PLD_GET_ROTATION(dword)   ACPI_GET_BITS (dword, 19, ACPI_4BIT_MASK)
 
#define ACPI_PLD_SET_ROTATION(dword, value)   ACPI_SET_BITS (dword, 19, ACPI_4BIT_MASK, value) /* Offset 96+19=115, Len 4 */
 
#define ACPI_PLD_GET_ORDER(dword)   ACPI_GET_BITS (dword, 23, ACPI_5BIT_MASK)
 
#define ACPI_PLD_SET_ORDER(dword, value)   ACPI_SET_BITS (dword, 23, ACPI_5BIT_MASK, value) /* Offset 96+23=119, Len 5 */
 
#define ACPI_PLD_GET_VERT_OFFSET(dword)   ACPI_GET_BITS (dword, 0, ACPI_16BIT_MASK)
 
#define ACPI_PLD_SET_VERT_OFFSET(dword, value)   ACPI_SET_BITS (dword, 0, ACPI_16BIT_MASK, value) /* Offset 128+0=128, Len 16 */
 
#define ACPI_PLD_GET_HORIZ_OFFSET(dword)   ACPI_GET_BITS (dword, 16, ACPI_16BIT_MASK)
 
#define ACPI_PLD_SET_HORIZ_OFFSET(dword, value)   ACPI_SET_BITS (dword, 16, ACPI_16BIT_MASK, value) /* Offset 128+16=144, Len 16 */
 

Macro Definition Documentation

#define ACPI_PLD_BUFFER_SIZE   20 /* For Revision 2 of the buffer (From ACPI spec) */

Definition at line 148 of file acbuffer.h.

#define ACPI_PLD_GET_BAY (   dword)    ACPI_GET_BITS (dword, 31, ACPI_1BIT_MASK)

Definition at line 201 of file acbuffer.h.

#define ACPI_PLD_GET_CABINET (   dword)    ACPI_GET_BITS (dword, 2, ACPI_8BIT_MASK)

Definition at line 212 of file acbuffer.h.

#define ACPI_PLD_GET_CARD_CAGE (   dword)    ACPI_GET_BITS (dword, 10, ACPI_8BIT_MASK)

Definition at line 215 of file acbuffer.h.

#define ACPI_PLD_GET_COLOR (   dword)    ACPI_GET_BITS (dword, 8, ACPI_24BIT_MASK)

Definition at line 158 of file acbuffer.h.

#define ACPI_PLD_GET_DOCK (   dword)    ACPI_GET_BITS (dword, 1, ACPI_1BIT_MASK)

Definition at line 174 of file acbuffer.h.

#define ACPI_PLD_GET_EJECTABLE (   dword)    ACPI_GET_BITS (dword, 0, ACPI_1BIT_MASK)

Definition at line 206 of file acbuffer.h.

#define ACPI_PLD_GET_HEIGHT (   dword)    ACPI_GET_BITS (dword, 16, ACPI_16BIT_MASK)

Definition at line 166 of file acbuffer.h.

#define ACPI_PLD_GET_HORIZ_OFFSET (   dword)    ACPI_GET_BITS (dword, 16, ACPI_16BIT_MASK)

Definition at line 232 of file acbuffer.h.

#define ACPI_PLD_GET_HORIZONTAL (   dword)    ACPI_GET_BITS (dword, 8, ACPI_2BIT_MASK)

Definition at line 186 of file acbuffer.h.

#define ACPI_PLD_GET_IGNORE_COLOR (   dword)    ACPI_GET_BITS (dword, 7, ACPI_1BIT_MASK)

Definition at line 155 of file acbuffer.h.

#define ACPI_PLD_GET_LID (   dword)    ACPI_GET_BITS (dword, 2, ACPI_1BIT_MASK)

Definition at line 177 of file acbuffer.h.

#define ACPI_PLD_GET_ORDER (   dword)    ACPI_GET_BITS (dword, 23, ACPI_5BIT_MASK)

Definition at line 224 of file acbuffer.h.

#define ACPI_PLD_GET_ORIENTATION (   dword)    ACPI_GET_BITS (dword, 14, ACPI_1BIT_MASK)

Definition at line 192 of file acbuffer.h.

#define ACPI_PLD_GET_OSPM_EJECT (   dword)    ACPI_GET_BITS (dword, 1, ACPI_1BIT_MASK)

Definition at line 209 of file acbuffer.h.

#define ACPI_PLD_GET_PANEL (   dword)    ACPI_GET_BITS (dword, 3, ACPI_3BIT_MASK)

Definition at line 180 of file acbuffer.h.

#define ACPI_PLD_GET_POSITION (   dword)    ACPI_GET_BITS (dword, 23, ACPI_8BIT_MASK)

Definition at line 198 of file acbuffer.h.

#define ACPI_PLD_GET_REFERENCE (   dword)    ACPI_GET_BITS (dword, 18, ACPI_1BIT_MASK)

Definition at line 218 of file acbuffer.h.

#define ACPI_PLD_GET_REVISION (   dword)    ACPI_GET_BITS (dword, 0, ACPI_7BIT_MASK)

Definition at line 152 of file acbuffer.h.

#define ACPI_PLD_GET_ROTATION (   dword)    ACPI_GET_BITS (dword, 19, ACPI_4BIT_MASK)

Definition at line 221 of file acbuffer.h.

#define ACPI_PLD_GET_SHAPE (   dword)    ACPI_GET_BITS (dword, 10, ACPI_4BIT_MASK)

Definition at line 189 of file acbuffer.h.

#define ACPI_PLD_GET_TOKEN (   dword)    ACPI_GET_BITS (dword, 15, ACPI_8BIT_MASK)

Definition at line 195 of file acbuffer.h.

#define ACPI_PLD_GET_USER_VISIBLE (   dword)    ACPI_GET_BITS (dword, 0, ACPI_1BIT_MASK)

Definition at line 171 of file acbuffer.h.

#define ACPI_PLD_GET_VERT_OFFSET (   dword)    ACPI_GET_BITS (dword, 0, ACPI_16BIT_MASK)

Definition at line 229 of file acbuffer.h.

#define ACPI_PLD_GET_VERTICAL (   dword)    ACPI_GET_BITS (dword, 6, ACPI_2BIT_MASK)

Definition at line 183 of file acbuffer.h.

#define ACPI_PLD_GET_WIDTH (   dword)    ACPI_GET_BITS (dword, 0, ACPI_16BIT_MASK)

Definition at line 163 of file acbuffer.h.

#define ACPI_PLD_REV1_BUFFER_SIZE   16 /* For Revision 1 of the buffer (From ACPI spec) */

Definition at line 147 of file acbuffer.h.

#define ACPI_PLD_SET_BAY (   dword,
  value 
)    ACPI_SET_BITS (dword, 31, ACPI_1BIT_MASK, value) /* Offset 64+31=95, Len 1 */

Definition at line 202 of file acbuffer.h.

#define ACPI_PLD_SET_CABINET (   dword,
  value 
)    ACPI_SET_BITS (dword, 2, ACPI_8BIT_MASK, value) /* Offset 96+2=98, Len 8 */

Definition at line 213 of file acbuffer.h.

#define ACPI_PLD_SET_CARD_CAGE (   dword,
  value 
)    ACPI_SET_BITS (dword, 10, ACPI_8BIT_MASK, value) /* Offset 96+10=106, Len 8 */

Definition at line 216 of file acbuffer.h.

#define ACPI_PLD_SET_COLOR (   dword,
  value 
)    ACPI_SET_BITS (dword, 8, ACPI_24BIT_MASK, value) /* Offset 8, Len 24 */

Definition at line 159 of file acbuffer.h.

#define ACPI_PLD_SET_DOCK (   dword,
  value 
)    ACPI_SET_BITS (dword, 1, ACPI_1BIT_MASK, value) /* Offset 64+1=65, Len 1 */

Definition at line 175 of file acbuffer.h.

#define ACPI_PLD_SET_EJECTABLE (   dword,
  value 
)    ACPI_SET_BITS (dword, 0, ACPI_1BIT_MASK, value) /* Offset 96+0=96, Len 1 */

Definition at line 207 of file acbuffer.h.

#define ACPI_PLD_SET_HEIGHT (   dword,
  value 
)    ACPI_SET_BITS (dword, 16, ACPI_16BIT_MASK, value) /* Offset 32+16=48, Len 16 */

Definition at line 167 of file acbuffer.h.

#define ACPI_PLD_SET_HORIZ_OFFSET (   dword,
  value 
)    ACPI_SET_BITS (dword, 16, ACPI_16BIT_MASK, value) /* Offset 128+16=144, Len 16 */

Definition at line 233 of file acbuffer.h.

#define ACPI_PLD_SET_HORIZONTAL (   dword,
  value 
)    ACPI_SET_BITS (dword, 8, ACPI_2BIT_MASK, value) /* Offset 64+8=72, Len 2 */

Definition at line 187 of file acbuffer.h.

#define ACPI_PLD_SET_IGNORE_COLOR (   dword,
  value 
)    ACPI_SET_BITS (dword, 7, ACPI_1BIT_MASK, value) /* Offset 7, Len 1 */

Definition at line 156 of file acbuffer.h.

#define ACPI_PLD_SET_LID (   dword,
  value 
)    ACPI_SET_BITS (dword, 2, ACPI_1BIT_MASK, value) /* Offset 64+2=66, Len 1 */

Definition at line 178 of file acbuffer.h.

#define ACPI_PLD_SET_ORDER (   dword,
  value 
)    ACPI_SET_BITS (dword, 23, ACPI_5BIT_MASK, value) /* Offset 96+23=119, Len 5 */

Definition at line 225 of file acbuffer.h.

#define ACPI_PLD_SET_ORIENTATION (   dword,
  value 
)    ACPI_SET_BITS (dword, 14, ACPI_1BIT_MASK, value) /* Offset 64+14=78, Len 1 */

Definition at line 193 of file acbuffer.h.

#define ACPI_PLD_SET_OSPM_EJECT (   dword,
  value 
)    ACPI_SET_BITS (dword, 1, ACPI_1BIT_MASK, value) /* Offset 96+1=97, Len 1 */

Definition at line 210 of file acbuffer.h.

#define ACPI_PLD_SET_PANEL (   dword,
  value 
)    ACPI_SET_BITS (dword, 3, ACPI_3BIT_MASK, value) /* Offset 64+3=67, Len 3 */

Definition at line 181 of file acbuffer.h.

#define ACPI_PLD_SET_POSITION (   dword,
  value 
)    ACPI_SET_BITS (dword, 23, ACPI_8BIT_MASK, value) /* Offset 64+23=87, Len 8 */

Definition at line 199 of file acbuffer.h.

#define ACPI_PLD_SET_REFERENCE (   dword,
  value 
)    ACPI_SET_BITS (dword, 18, ACPI_1BIT_MASK, value) /* Offset 96+18=114, Len 1 */

Definition at line 219 of file acbuffer.h.

#define ACPI_PLD_SET_REVISION (   dword,
  value 
)    ACPI_SET_BITS (dword, 0, ACPI_7BIT_MASK, value) /* Offset 0, Len 7 */

Definition at line 153 of file acbuffer.h.

#define ACPI_PLD_SET_ROTATION (   dword,
  value 
)    ACPI_SET_BITS (dword, 19, ACPI_4BIT_MASK, value) /* Offset 96+19=115, Len 4 */

Definition at line 222 of file acbuffer.h.

#define ACPI_PLD_SET_SHAPE (   dword,
  value 
)    ACPI_SET_BITS (dword, 10, ACPI_4BIT_MASK, value) /* Offset 64+10=74, Len 4 */

Definition at line 190 of file acbuffer.h.

#define ACPI_PLD_SET_TOKEN (   dword,
  value 
)    ACPI_SET_BITS (dword, 15, ACPI_8BIT_MASK, value) /* Offset 64+15=79, Len 8 */

Definition at line 196 of file acbuffer.h.

#define ACPI_PLD_SET_USER_VISIBLE (   dword,
  value 
)    ACPI_SET_BITS (dword, 0, ACPI_1BIT_MASK, value) /* Offset 64+0=64, Len 1 */

Definition at line 172 of file acbuffer.h.

#define ACPI_PLD_SET_VERT_OFFSET (   dword,
  value 
)    ACPI_SET_BITS (dword, 0, ACPI_16BIT_MASK, value) /* Offset 128+0=128, Len 16 */

Definition at line 230 of file acbuffer.h.

#define ACPI_PLD_SET_VERTICAL (   dword,
  value 
)    ACPI_SET_BITS (dword, 6, ACPI_2BIT_MASK, value) /* Offset 64+6=70, Len 2 */

Definition at line 184 of file acbuffer.h.

#define ACPI_PLD_SET_WIDTH (   dword,
  value 
)    ACPI_SET_BITS (dword, 0, ACPI_16BIT_MASK, value) /* Offset 32+0=32, Len 16 */

Definition at line 164 of file acbuffer.h.