/* $NetBSD: chpidpnp.h,v 1.4 2008/04/28 20:23:33 martin Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Tim Rightnour
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Based on:
* IBM Power Personal Systems Architecture: Residual Data
* Document Number: PPS-AR-FW0001 Rev 0.5 April 3, 1996
*/
#ifndef _CHPIDPNP_H_
#define _CHPIDPNP_H_
#define ChipID_Packet 0x70 /* tag for ChipIdPack without size */
/* the words MOT and IBM are made from these two bytes */
#define CHIP_VENDOR_IBM0 0x24
#define CHIP_VENDOR_IBM1 0x4d
#define CHIP_VENDOR_MOT0 0x35
#define CHIP_VENDOR_MOT1 0xf4
/*
* The chipid is the vendor id followed by 4 hex digits, e.g. for IBM
* platforms: Chip_ID=IBMxxxx. To avoid confusion with PnP Device IDs, IBM
* Chip IDs will begin at 0x8000.
*/
typedef enum _Chip_Type {
Chip_MemCont = 0,
Chip_ISABridge = 1,
Chip_PCIBridge = 2,
Chip_PCMCIABridge = 3,
Chip_EISABridge = 4,
Chip_MCABridge = 5,
Chip_L2Cache = 6,
Chip_PM = 7,
Chip_IntrCont = 8,
Chip_MiscPlanar = 9,
} Chip_Type;
typedef enum _Chip_ID {
/* Memory Controllers Memory Controller range: IBM80xx */
Dakota = 0x8001, /* IBM8001: IBM North/South Dakota */
Idaho = 0x8002, /* IBM8002: IBM Idaho */
Eagle = 0x8003, /* IBM8003: Motorola Eagle */
Kauai_Lanai = 0x8004, /* IBM8004: IBM Kauai/Lanai */
Montana_Nevada = 0x8005, /* IBM8005: IBM Montana/Nevada */
Union = 0x8006, /* IBM8006: IBM Union */
Cobra_Viper = 0x8007, /* IBM8007: IBM Cobra/Viper */
Grackle = 0x8008, /* IBM8008: Motorola Grackle */
/* ISA Bridge chips Bus Bridge Range: IBM81xx */
SIO_ZB = 0x8100, /* IBM8100: Intel 82378ZB */
FireCoral = 0x8101, /* IBM8101: IBM FireCoral */