acmacros.h (2f3faaba5922d3763f3e9398a2b00dc7239e2d27) | acmacros.h (57bf6aefc2b9c89b89bb3fca54725ceea797bb63) |
---|---|
1/****************************************************************************** 2 * 3 * Name: acmacros.h - C macros for the entire subsystem. 4 * 5 *****************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2012, Intel Corp. --- 35 unchanged lines hidden (view full) --- 44#ifndef __ACMACROS_H__ 45#define __ACMACROS_H__ 46 47/* 48 * Extract data using a pointer. Any more than a byte and we 49 * get into potential aligment issues -- see the STORE macros below. 50 * Use with care. 51 */ | 1/****************************************************************************** 2 * 3 * Name: acmacros.h - C macros for the entire subsystem. 4 * 5 *****************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2012, Intel Corp. --- 35 unchanged lines hidden (view full) --- 44#ifndef __ACMACROS_H__ 45#define __ACMACROS_H__ 46 47/* 48 * Extract data using a pointer. Any more than a byte and we 49 * get into potential aligment issues -- see the STORE macros below. 50 * Use with care. 51 */ |
52#define ACPI_GET8(ptr) *ACPI_CAST_PTR (u8, ptr) 53#define ACPI_GET16(ptr) *ACPI_CAST_PTR (u16, ptr) 54#define ACPI_GET32(ptr) *ACPI_CAST_PTR (u32, ptr) 55#define ACPI_GET64(ptr) *ACPI_CAST_PTR (u64, ptr) 56#define ACPI_SET8(ptr) *ACPI_CAST_PTR (u8, ptr) 57#define ACPI_SET16(ptr) *ACPI_CAST_PTR (u16, ptr) 58#define ACPI_SET32(ptr) *ACPI_CAST_PTR (u32, ptr) 59#define ACPI_SET64(ptr) *ACPI_CAST_PTR (u64, ptr) | 52#define ACPI_CAST8(ptr) ACPI_CAST_PTR (u8, (ptr)) 53#define ACPI_CAST16(ptr) ACPI_CAST_PTR (u16, (ptr)) 54#define ACPI_CAST32(ptr) ACPI_CAST_PTR (u32, (ptr)) 55#define ACPI_CAST64(ptr) ACPI_CAST_PTR (u64, (ptr)) 56#define ACPI_GET8(ptr) (*ACPI_CAST8 (ptr)) 57#define ACPI_GET16(ptr) (*ACPI_CAST16 (ptr)) 58#define ACPI_GET32(ptr) (*ACPI_CAST32 (ptr)) 59#define ACPI_GET64(ptr) (*ACPI_CAST64 (ptr)) 60#define ACPI_SET8(ptr, val) (*ACPI_CAST8 (ptr) = (u8) (val)) 61#define ACPI_SET16(ptr, val) (*ACPI_CAST16 (ptr) = (u16) (val)) 62#define ACPI_SET32(ptr, val) (*ACPI_CAST32 (ptr) = (u32) (val)) 63#define ACPI_SET64(ptr, val) (*ACPI_CAST64 (ptr) = (u64) (val)) |
60 61/* 62 * printf() format helpers 63 */ 64 65/* Split 64-bit integer into two 32-bit values. Use with %8.8X%8.8X */ 66 67#define ACPI_FORMAT_UINT64(i) ACPI_HIDWORD(i), ACPI_LODWORD(i) --- 507 unchanged lines hidden --- | 64 65/* 66 * printf() format helpers 67 */ 68 69/* Split 64-bit integer into two 32-bit values. Use with %8.8X%8.8X */ 70 71#define ACPI_FORMAT_UINT64(i) ACPI_HIDWORD(i), ACPI_LODWORD(i) --- 507 unchanged lines hidden --- |