/*
* 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.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_MC_US3I_H
#define _SYS_MC_US3I_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#if defined(_KERNEL)
#ifndef _ASM
struct mc_soft_state {
int portid;
int mcr_read_ok;
int reglen;
void *reg;
int memlayoutlen;
void *memlayoutp;
};
struct memory_reg_info {
};
struct dimm_info {
};
struct pin_info {
};
/* This struct is included at the following structs to set up list */
typedef struct mc_dlist {
int id;
} mc_dlist_t;
/* unique segment id */
struct seg_info {
};
/* id = mc_id * nbanks + bank_no */
struct bank_info {
};
/* id = id of dgrp_info * ndevices + device_no */
struct device_info {
};
/* id = mc_id * ndevgrps + devgrp_no */
struct dgrp_info {
};
/* id = portid */
struct mctrl_info {
};
extern int (*p2get_mem_unum)(int, uint64_t, char *, int, int *);
uint64_t *, int *, int *, int *);
extern void plat_add_mem_unum_label(char *, int, int, int);
/* #ifdef DEBUG */
/* useful debugging level of DPRINTF */
#else
/* #endif DEBUG */
#endif /* !_ASM */
/* Memory Control Registers */
/* Mask and shift constants for Memory Control Register I */
#define BASE_DEVICE_128Mb 0
#define INTERLEAVE_DISABLE 0
#define PART_TYPE_X8 0
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_MC_US3I_H */