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 (the "License"). 6 * You may not use this file except in compliance with the License. 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. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27#ifndef _CPUBOARD_TOPO_H 28#define _CPUBOARD_TOPO_H 29 30#include <fm/topo_hc.h> 31#include <fm/topo_mod.h> 32 33#ifdef __cplusplus 34extern "C" { 35#endif 36 37#define PCI_BUS_VERS 1 38 39#define CPUBOARD_PX_DEVTYPE "pciex" /* T5440 is PCI-Ex devtype */ 40#define CPUBOARD_PX_DRV "px" 41 42#define CPUBOARD_MAX 4 /* Max 4 cpuboards */ 43#define CHIP_MAX CPUBOARD_MAX /* Max 4 chips */ 44#define HOSTBRIDGE_MAX CPUBOARD_MAX /* Max 4 hostbridges */ 45 46#define CPUBOARD_PX_BDF "0x200" /* BDF is always 2/0/0 */ 47 48/* cpuboard info */ 49typedef struct { 50 int present; /* cpuboard present */ 51 char *sn; /* cpuboard serial # */ 52 char *pn; /* cpuboard part # + dash # */ 53} cpuboard_contents_t; 54 55/* Shared device tree root node */ 56int cpuboard_hb_enum(topo_mod_t *mp, di_node_t dnode, char *rcpath, 57 tnode_t *cpubn, int brd); 58 59/* Until future PRI changes, make connection between cpuboard id and RC */ 60#define CPUBOARD0_RC "/pci@400" 61#define CPUBOARD1_RC "/pci@500" 62#define CPUBOARD2_RC "/pci@600" 63#define CPUBOARD3_RC "/pci@700" 64 65#ifdef __cplusplus 66} 67#endif 68 69#endif /* _CPUBOARD_TOPO_H */ 70