diff options
| author | vikram <none@none> | 2007-06-11 22:00:14 -0700 |
|---|---|---|
| committer | vikram <none@none> | 2007-06-11 22:00:14 -0700 |
| commit | 3e2676e0be8e80477443d63e0d8034428f5fa14f (patch) | |
| tree | f9743f959331d8b211a4627adb5c7cc3a872d6dd /usr/src/uts/common/sys/devinfo_impl.h | |
| parent | 11a1a29e5a989112307dce1460c5f72a1f2b1a57 (diff) | |
| download | illumos-joyent-3e2676e0be8e80477443d63e0d8034428f5fa14f.tar.gz | |
6568015 libtopo sets wrong return value for dev scheme's unusable method
6568016 libdevinfo should export devinfo node's flags field
6568017 libdevinfo should check snapshot version
Diffstat (limited to 'usr/src/uts/common/sys/devinfo_impl.h')
| -rw-r--r-- | usr/src/uts/common/sys/devinfo_impl.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/usr/src/uts/common/sys/devinfo_impl.h b/usr/src/uts/common/sys/devinfo_impl.h index 6bf4255cf6..1b78a5412c 100644 --- a/usr/src/uts/common/sys/devinfo_impl.h +++ b/usr/src/uts/common/sys/devinfo_impl.h @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -99,7 +98,8 @@ extern "C" { #define MAX_PTR_IN_PRV 5 #define DI_SNAPSHOT_VERSION_0 0 /* reserved */ #define DI_SNAPSHOT_VERSION_1 1 /* reserved */ -#define DI_SNAPSHOT_VERSION DI_SNAPSHOT_VERSION_1 /* current version */ +#define DI_SNAPSHOT_VERSION_2 2 /* reserved */ +#define DI_SNAPSHOT_VERSION DI_SNAPSHOT_VERSION_2 /* current version */ #define DI_PRIVDATA_VERSION_0 10 /* Start from 10 so caller must set */ #define DI_BIG_ENDIAN 0 /* reserved */ #define DI_LITTLE_ENDIAN 1 /* reserved */ @@ -277,6 +277,12 @@ struct di_node { /* useful info to export for each tree node */ di_off_t top_phci; di_off_t next_phci; uint32_t multipath_component; /* stores MDI_COMPONENT_* value. */ + + /* + * devi_flags field + */ + uint32_t flags; + uint32_t di_pad2; /* 4 byte padding for 32bit x86 app. */ }; /* |
