cpu.h revision 1.20
11.20Spavel/* $NetBSD: cpu.h,v 1.20 2007/09/01 06:41:28 pavel Exp $ */ 21.1Sws 31.1Sws/* 41.2Sthorpej * Copyright (C) 1995-1997 Wolfgang Solfrank. 51.2Sthorpej * Copyright (C) 1995-1997 TooLs GmbH. 61.1Sws * All rights reserved. 71.1Sws * 81.1Sws * Redistribution and use in source and binary forms, with or without 91.1Sws * modification, are permitted provided that the following conditions 101.1Sws * are met: 111.1Sws * 1. Redistributions of source code must retain the above copyright 121.1Sws * notice, this list of conditions and the following disclaimer. 131.1Sws * 2. Redistributions in binary form must reproduce the above copyright 141.1Sws * notice, this list of conditions and the following disclaimer in the 151.1Sws * documentation and/or other materials provided with the distribution. 161.1Sws * 3. All advertising materials mentioning features or use of this software 171.1Sws * must display the following acknowledgement: 181.1Sws * This product includes software developed by TooLs GmbH. 191.1Sws * 4. The name of TooLs GmbH may not be used to endorse or promote products 201.1Sws * derived from this software without specific prior written permission. 211.1Sws * 221.1Sws * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR 231.1Sws * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 241.1Sws * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 251.1Sws * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 261.1Sws * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 271.1Sws * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 281.1Sws * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 291.1Sws * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 301.1Sws * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 311.1Sws * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 321.1Sws */ 331.1Sws#ifndef _MACHINE_CPU_H_ 341.1Sws#define _MACHINE_CPU_H_ 351.1Sws 361.20Spavel#if defined(_KERNEL) 371.17Smatt#include <sys/device.h> 381.7Sthorpej 391.17Smattstruct cpu_softc { 401.17Smatt struct device sc_dev; 411.17Smatt int sc_ofnode; 421.7Sthorpej}; 431.7Sthorpej 441.17Smatt#define CPU_MAXNUM 1 451.17Smattextern struct cfdriver cpu_cd; 461.20Spavel#endif /* _KERNEL */ 471.1Sws 481.4Sws#include <powerpc/cpu.h> 491.1Sws 501.1Sws#endif /* _MACHINE_CPU_H_ */ 51