mc.h (7aec1d6e) | mc.h (8a40a695) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the |
5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. | 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. |
8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. --- 18 unchanged lines hidden (view full) --- 34 35#include <sys/cpuvar.h> 36 37#ifdef __cplusplus 38extern "C" { 39#endif 40 41#define MC_UNUM_NAMLEN 192 | 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. --- 18 unchanged lines hidden (view full) --- 33 34#include <sys/cpuvar.h> 35 36#ifdef __cplusplus 37extern "C" { 38#endif 39 40#define MC_UNUM_NAMLEN 192 |
42#define MC_UNUM_NDIMM 8 | 41#define MC_UNUM_NDIMM 2 |
43 44typedef struct mc_unum { 45 int unum_board; 46 int unum_chip; 47 int unum_mc; 48 int unum_cs; | 42 43typedef struct mc_unum { 44 int unum_board; 45 int unum_chip; 46 int unum_mc; 47 int unum_cs; |
48 int unum_rank; |
|
49 uint64_t unum_offset; 50 int unum_dimms[MC_UNUM_NDIMM]; 51} mc_unum_t; 52 | 49 uint64_t unum_offset; 50 int unum_dimms[MC_UNUM_NDIMM]; 51} mc_unum_t; 52 |
53/* 54 * Invalid marker used in some numeric properties 55 */ 56#define MC_INVALNUM ((uint32_t)-1) 57 |
|
53#define MC_AMD_DEV_OFFSET 24 /* node ID + offset == PCI dev num */ 54 | 58#define MC_AMD_DEV_OFFSET 24 /* node ID + offset == PCI dev num */ 59 |
60/* 61 * /dev/mc/mc* ioctl cmds 62 */ |
|
55#define MC_IOC (0x4d43 << 16) 56#define MC_IOC_SNAPSHOT_INFO (MC_IOC | 1) 57#define MC_IOC_SNAPSHOT (MC_IOC | 2) | 63#define MC_IOC (0x4d43 << 16) 64#define MC_IOC_SNAPSHOT_INFO (MC_IOC | 1) 65#define MC_IOC_SNAPSHOT (MC_IOC | 2) |
66#define MC_IOC_ONLINESPARE_EN (MC_IOC | 4) |
|
58 59/* 60 * Prior to requesting a copy of the snapshot, consumers are advised to request 61 * information regarding the snapshot. An mc_snapshot_info_t will be returned, 62 * containing the snapshot size as well as the snapshot generation number. Note 63 * that, due to the potentially dynamic nature of the system, the snapshot may 64 * change at any time. As such, the information in the mc_snapshot_info_t may 65 * be out of date by the time it is used. The generation number is used to --- 15 unchanged lines hidden --- | 67 68/* 69 * Prior to requesting a copy of the snapshot, consumers are advised to request 70 * information regarding the snapshot. An mc_snapshot_info_t will be returned, 71 * containing the snapshot size as well as the snapshot generation number. Note 72 * that, due to the potentially dynamic nature of the system, the snapshot may 73 * change at any time. As such, the information in the mc_snapshot_info_t may 74 * be out of date by the time it is used. The generation number is used to --- 15 unchanged lines hidden --- |