Home | History | Annotate | Line # | Download | only in include
chpidpnp.h revision 1.2.36.1
      1  1.2.36.1    joerg /* $NetBSD: chpidpnp.h,v 1.2.36.1 2007/10/26 15:43:21 joerg Exp $ */
      2       1.1  garbled /*-
      3       1.1  garbled  * Copyright (c) 2006 The NetBSD Foundation, Inc.
      4       1.1  garbled  * All rights reserved.
      5       1.1  garbled  *
      6       1.1  garbled  * This code is derived from software contributed to The NetBSD Foundation
      7       1.1  garbled  * by Tim Rightnour
      8       1.1  garbled  *
      9       1.1  garbled  * Redistribution and use in source and binary forms, with or without
     10       1.1  garbled  * modification, are permitted provided that the following conditions
     11       1.1  garbled  * are met:
     12       1.1  garbled  * 1. Redistributions of source code must retain the above copyright
     13       1.1  garbled  *    notice, this list of conditions and the following disclaimer.
     14       1.1  garbled  * 2. Redistributions in binary form must reproduce the above copyright
     15       1.1  garbled  *    notice, this list of conditions and the following disclaimer in the
     16       1.1  garbled  *    documentation and/or other materials provided with the distribution.
     17       1.1  garbled  * 3. All advertising materials mentioning features or use of this software
     18       1.1  garbled  *    must display the following acknowledgement:
     19       1.1  garbled  *        This product includes software developed by the NetBSD
     20       1.1  garbled  *        Foundation, Inc. and its contributors.
     21       1.1  garbled  * 4. Neither the name of The NetBSD Foundation nor the names of its
     22       1.1  garbled  *    contributors may be used to endorse or promote products derived
     23       1.1  garbled  *    from this software without specific prior written permission.
     24       1.1  garbled  *
     25       1.1  garbled  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     26       1.1  garbled  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     27       1.1  garbled  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     28       1.1  garbled  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     29       1.1  garbled  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     30       1.1  garbled  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     31       1.1  garbled  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     32       1.1  garbled  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     33       1.1  garbled  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     34       1.1  garbled  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     35       1.1  garbled  * POSSIBILITY OF SUCH DAMAGE.
     36       1.1  garbled  */
     37       1.1  garbled 
     38       1.1  garbled /*
     39       1.1  garbled  * Based on:
     40       1.1  garbled  * IBM Power Personal Systems Architecture: Residual Data
     41       1.1  garbled  * Document Number: PPS-AR-FW0001 Rev 0.5  April 3, 1996
     42       1.1  garbled  */
     43       1.1  garbled 
     44       1.1  garbled #ifndef _CHPIDPNP_H_
     45       1.1  garbled #define _CHPIDPNP_H_
     46       1.1  garbled 
     47       1.1  garbled #define ChipID_Packet	0x70	/* tag for ChipIdPack without size */
     48       1.1  garbled 
     49       1.2  garbled /* the words MOT and IBM are made from these two bytes */
     50       1.2  garbled #define CHIP_VENDOR_IBM0	0x24
     51       1.2  garbled #define CHIP_VENDOR_IBM1	0x4d
     52       1.2  garbled #define CHIP_VENDOR_MOT0	0x35
     53       1.2  garbled #define CHIP_VENDOR_MOT1	0xf4
     54       1.2  garbled 
     55       1.1  garbled /*
     56       1.1  garbled  * The chipid is the vendor id followed by 4 hex digits, e.g. for IBM
     57       1.1  garbled  * platforms: Chip_ID=IBMxxxx.  To avoid confusion with PnP Device IDs, IBM
     58       1.1  garbled  * Chip IDs will begin at 0x8000.
     59       1.1  garbled  */
     60       1.1  garbled typedef enum _Chip_Type {
     61       1.1  garbled 	Chip_MemCont = 0,
     62       1.1  garbled 	Chip_ISABridge = 1,
     63       1.1  garbled 	Chip_PCIBridge = 2,
     64       1.1  garbled 	Chip_PCMCIABridge = 3,
     65       1.1  garbled 	Chip_EISABridge = 4,
     66       1.1  garbled 	Chip_MCABridge = 5,
     67       1.1  garbled 	Chip_L2Cache = 6,
     68       1.1  garbled 	Chip_PM = 7,
     69       1.1  garbled 	Chip_IntrCont = 8,
     70       1.1  garbled 	Chip_MiscPlanar = 9,
     71       1.1  garbled } Chip_Type;
     72       1.1  garbled 
     73       1.1  garbled typedef enum _Chip_ID {
     74       1.1  garbled 
     75       1.1  garbled /* Memory Controllers		Memory Controller range: IBM80xx */
     76       1.1  garbled Dakota = 0x8001,		/* IBM8001: IBM North/South Dakota */
     77       1.1  garbled Idaho = 0x8002,			/* IBM8002: IBM Idaho */
     78       1.1  garbled Eagle = 0x8003,			/* IBM8003: Motorola Eagle */
     79       1.1  garbled Kauai_Lanai = 0x8004,		/* IBM8004: IBM Kauai/Lanai */
     80       1.1  garbled Montana_Nevada = 0x8005,	/* IBM8005: IBM Montana/Nevada */
     81       1.1  garbled Union = 0x8006,			/* IBM8006: IBM Union */
     82       1.1  garbled Cobra_Viper = 0x8007,		/* IBM8007: IBM Cobra/Viper */
     83       1.1  garbled Grackle = 0x8008,		/* IBM8008: Motorola Grackle */
     84       1.1  garbled 
     85       1.1  garbled /* ISA Bridge chips		Bus Bridge Range: IBM81xx */
     86       1.1  garbled SIO_ZB = 0x8100,		/* IBM8100: Intel 82378ZB */
     87       1.1  garbled FireCoral = 0x8101,		/* IBM8101: IBM FireCoral */
     88       1.1  garbled 
     89       1.1  garbled /* PCI Bridge chips */
     90       1.1  garbled Python = 0x8102,		/* IBM8102: IBM Python */
     91  1.2.36.1    joerg DEC21050 = 0x8103,		/* IBM8103: PCI-PCI (dec 21050) */
     92       1.1  garbled IBM2782351 = 0x8106,		/* IBM8106: PCI-PCI */
     93       1.1  garbled IBM2782352 = 0x8109,		/* IBM8109: PCI-PCI352 */
     94       1.1  garbled 
     95       1.1  garbled /* PCMCIA Bridge Chips */
     96       1.1  garbled INTEL_8236SL = 0x8104,		/* IBM8104: Intel 8236SL */
     97       1.1  garbled RICOH_RF5C366C = 0x8105,	/* IBM8105: RICOH RF5C366C */
     98       1.1  garbled 
     99       1.1  garbled /* EISA Bridge Chips */
    100       1.1  garbled INTEL_82374 = 0x8108,		/* IBM8108: Intel 82374/82375 */
    101       1.1  garbled 
    102       1.1  garbled /* MCA Bridge Chips */
    103       1.1  garbled MCACoral = 0x8107,		/* IBM8107: 6xxxMx - T=1 MCA (servers) */
    104       1.1  garbled 
    105       1.1  garbled /* L2 Cache controller		L2 Controller Range: IBM82xx */
    106       1.1  garbled Cheyenne = 0x8200,		/* IBM8200: IBM Cheyenne */
    107       1.1  garbled IDT = 0x8201,			/* IBM8201: IDT */
    108       1.1  garbled Sony1PB = 0x8202,		/* IBM8202: Sony1PB */
    109       1.1  garbled Mamba = 0x8203,			/* IBM8203: IBM Mamba */
    110       1.1  garbled Alaska = 0x8204,		/* IBM8204: IBM Alaska */
    111       1.1  garbled Glance = 0x8205,		/* IBM8205: IBM Glance */
    112       1.1  garbled Ocelot = 0x8206,		/* IBM8206: IBM Ocelot */
    113       1.1  garbled 
    114       1.1  garbled /* Power management chips	PM Range: IBM83xx */
    115       1.1  garbled Carrera = 0x8300,		/* IBM8300: IBM Carrera */
    116       1.1  garbled Sig750 = 0x8301,		/* IBM8301: Signetics 87C750 */
    117       1.1  garbled 
    118       1.1  garbled /* Interrupt controller chips	PIC Chip range: IBM84xx */
    119       1.1  garbled MPIC_2 = 0x8400,		/* IBM8400: IBM MPIC-2 */
    120       1.1  garbled 
    121       1.1  garbled /* Miscellaneous Planar chips	MISC Chip Range: IBM8Fxx */
    122       1.1  garbled DallasRTC = 0x8F00,		/* IBM8F00: Dallas 1385 compatible */
    123       1.1  garbled Dallas1585 = 0x8F01,		/* IBM8F01: Dallas 1585 compatible */
    124       1.1  garbled Timer8254 = 0x8F10,		/* IBM8F10: 8254-compatible timer */
    125       1.1  garbled HarddiskLt = 0x8FF0,		/* IBM8FF0: Op Panel HD light */
    126       1.2  garbled MOTmk48 = 0x3040,		/* MOT3040: mk48txx compatible */
    127       1.1  garbled } Chip_ID;
    128       1.1  garbled 
    129       1.1  garbled /* small tag = 0x7n with n bytes.  Type == 1 for ChipID
    130       1.1  garbled  * VendorID0:
    131       1.1  garbled  *  bit(7) = 0
    132       1.1  garbled  *  bits(6:2) 1st character in compressed ASCII
    133       1.1  garbled  *  bits(1:0) 2nd character in compressed ASCII bits(4:3)
    134       1.1  garbled  * VendorID1:
    135       1.1  garbled  *  bits(7:5) 2nd character in compressed ASCII bits(2:0)
    136       1.1  garbled  *  bits(4:0) 3rd character in compressed ASCII
    137       1.1  garbled  * Name:
    138       1.1  garbled  * Example: IBM8001
    139       1.1  garbled  *  I,B,M = 01001, 00010, 01101
    140       1.1  garbled  *  bytes 0,1 = 00100100,01001101
    141       1.1  garbled  *            =   2   4    4   D
    142       1.1  garbled  * byte0 = 24  byte1 = 4D byte2 = 01 byte3 = 80
    143       1.1  garbled  */
    144       1.1  garbled typedef struct _ChipIDPack {
    145       1.1  garbled 	unsigned char Tag;
    146       1.1  garbled 	unsigned char Type;
    147       1.1  garbled 	unsigned char VendorID0;
    148       1.1  garbled 	unsigned char VendorID1;
    149       1.1  garbled 	unsigned char Name[2];
    150       1.1  garbled } ChipIDPack;
    151       1.1  garbled 
    152       1.1  garbled #endif /* _CHPIDPNP_H_ */
    153