summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpidump
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2007-10-08 08:17:15 +0000
committergilles <gilles@openbsd.org>2007-10-08 08:17:15 +0000
commit3eb7b8f314f64e05b0f98d579c26824ddb1a4ef6 (patch)
tree20ecec9c15c358ef62851ebcb1e2bea0c8acffb1 /usr.sbin/acpidump
parentPrint registered/CAS latency information for SDRAM. (diff)
downloadwireguard-openbsd-3eb7b8f314f64e05b0f98d579c26824ddb1a4ef6.tar.xz
wireguard-openbsd-3eb7b8f314f64e05b0f98d579c26824ddb1a4ef6.zip
attribute packed -> __packed
OK millert
Diffstat (limited to 'usr.sbin/acpidump')
-rw-r--r--usr.sbin/acpidump/acpidump.h14
-rw-r--r--usr.sbin/acpidump/aml/aml_memman.h10
2 files changed, 12 insertions, 12 deletions
diff --git a/usr.sbin/acpidump/acpidump.h b/usr.sbin/acpidump/acpidump.h
index b090218d4cd..682f20c0a39 100644
--- a/usr.sbin/acpidump/acpidump.h
+++ b/usr.sbin/acpidump/acpidump.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpidump.h,v 1.2 2005/06/04 02:25:53 cloder Exp $ */
+/* $OpenBSD: acpidump.h,v 1.3 2007/10/08 08:20:49 gilles Exp $ */
/*-
* Copyright (c) 1999 Doug Rabson
* Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@FreeBSD.org>
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: acpidump.h,v 1.2 2005/06/04 02:25:53 cloder Exp $
+ * $Id: acpidump.h,v 1.3 2007/10/08 08:20:49 gilles Exp $
* $FreeBSD: src/usr.sbin/acpi/acpidump/acpidump.h,v 1.2 2000/11/08 02:37:00 iwasaki Exp $
*/
@@ -48,7 +48,7 @@ struct ACPIgas {
u_int8_t register_bit_offset;
u_int8_t res;
u_int64_t address;
-} __attribute__((packed));
+} __packed;
/* Root System Description Pointer */
struct ACPIrsdp {
@@ -57,7 +57,7 @@ struct ACPIrsdp {
u_char oem[6];
u_char res;
u_int32_t addr;
-} __attribute__((packed));
+} __packed;
/* System Description Table */
struct ACPIsdt {
@@ -72,7 +72,7 @@ struct ACPIsdt {
u_int32_t crerev;
#define SIZEOF_SDT_HDR 36 /* struct size except body */
u_int32_t body[1];/* This member should be casted */
-} __attribute__((packed));
+} __packed;
/* Fixed ACPI Description Table (body) */
struct FACPbody {
@@ -139,7 +139,7 @@ struct FACPbody {
struct ACPIgas x_pm_tmr_blk;
struct ACPIgas x_gpe0_blk;
struct ACPIgas x_gpe1_blk;
-} __attribute__((packed));
+} __packed;
/* Firmware ACPI Control Structure */
struct FACS {
@@ -158,7 +158,7 @@ struct FACS {
u_int32_t flags; /* bit field */
#define ACPI_FACS_FLAG_S4BIOS_F 1 /* Supports S4BIOS_SEQ */
char reserved[40];
-} __attribute__((packed));
+} __packed;
void *acpi_map_physical(vm_offset_t, size_t);
struct ACPIrsdp *acpi_find_rsd_ptr(void);
diff --git a/usr.sbin/acpidump/aml/aml_memman.h b/usr.sbin/acpidump/aml/aml_memman.h
index 6018db1804f..0f54d4a202c 100644
--- a/usr.sbin/acpidump/aml/aml_memman.h
+++ b/usr.sbin/acpidump/aml/aml_memman.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aml_memman.h,v 1.2 2006/02/06 21:46:40 jmc Exp $ */
+/* $OpenBSD: aml_memman.h,v 1.3 2007/10/08 08:20:49 gilles Exp $ */
/*-
* Copyright (c) 1999, 2000 Mitsuru IWASAKI <iwasaki@FreeBSD.org>
* All rights reserved.
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: aml_memman.h,v 1.2 2006/02/06 21:46:40 jmc Exp $
+ * $Id: aml_memman.h,v 1.3 2007/10/08 08:20:49 gilles Exp $
* $FreeBSD: src/usr.sbin/acpi/amldb/aml/aml_memman.h,v 1.1 2000/08/24 09:33:08 takawata Exp $
*/
@@ -47,7 +47,7 @@ struct memman_block {
unsigned int available; /* number of available chunks */
unsigned int allocated_mem; /* block + misc (in bytes) */
-}__attribute__((packed));
+} __packed;
LIST_HEAD(memman_block_list, memman_block);
@@ -56,7 +56,7 @@ struct memman_node {
LIST_ENTRY(memman_node) links;
void *node;
struct memman_block *memblock;
-}__attribute__((packed));
+} __packed;
LIST_HEAD(memman_node_list, memman_node);
@@ -87,7 +87,7 @@ struct memman_flexmem_info {
LIST_ENTRY(memman_flexmem_info) links;
void *addr;
size_t mem_size;
-}__attribute__((packed));
+} __packed;
LIST_HEAD(memman_flexmem_info_list, memman_flexmem_info);