1*c94ffba5Sdyoung /* $NetBSD: mpbiosvar.h,v 1.8 2009/04/17 21:07:58 dyoung Exp $ */ 28375b2d9Sfvdl 38375b2d9Sfvdl /*- 48375b2d9Sfvdl * Copyright (c) 2000 The NetBSD Foundation, Inc. 58375b2d9Sfvdl * All rights reserved. 68375b2d9Sfvdl * 78375b2d9Sfvdl * This code is derived from software contributed to The NetBSD Foundation 88375b2d9Sfvdl * by RedBack Networks Inc. 98375b2d9Sfvdl * 108375b2d9Sfvdl * Author: Bill Sommerfeld 118375b2d9Sfvdl * 128375b2d9Sfvdl * Redistribution and use in source and binary forms, with or without 138375b2d9Sfvdl * modification, are permitted provided that the following conditions 148375b2d9Sfvdl * are met: 158375b2d9Sfvdl * 1. Redistributions of source code must retain the above copyright 168375b2d9Sfvdl * notice, this list of conditions and the following disclaimer. 178375b2d9Sfvdl * 2. Redistributions in binary form must reproduce the above copyright 188375b2d9Sfvdl * notice, this list of conditions and the following disclaimer in the 198375b2d9Sfvdl * documentation and/or other materials provided with the distribution. 208375b2d9Sfvdl * 218375b2d9Sfvdl * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 228375b2d9Sfvdl * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 238375b2d9Sfvdl * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 248375b2d9Sfvdl * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 258375b2d9Sfvdl * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 268375b2d9Sfvdl * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 278375b2d9Sfvdl * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 288375b2d9Sfvdl * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 298375b2d9Sfvdl * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 308375b2d9Sfvdl * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 318375b2d9Sfvdl * POSSIBILITY OF SUCH DAMAGE. 328375b2d9Sfvdl */ 338375b2d9Sfvdl 348375b2d9Sfvdl 358375b2d9Sfvdl #ifndef _X86_MPBIOSVAR_H_ 368375b2d9Sfvdl #define _X86_MPBIOSVAR_H_ 378375b2d9Sfvdl 38ffc984aaSthorpej #define MP_TRAMPOLINE (2 * PAGE_SIZE) 398375b2d9Sfvdl 408375b2d9Sfvdl #if !defined(_LOCORE) 418375b2d9Sfvdl 428375b2d9Sfvdl #include <machine/mpbiosreg.h> 438375b2d9Sfvdl #include <machine/mpconfig.h> 448375b2d9Sfvdl 45afff857eSfvdl struct pcibus_attach_args; 46afff857eSfvdl 478375b2d9Sfvdl #if defined(_KERNEL) 4876d48919Scegger void mpbios_scan(device_t, int *); 4976d48919Scegger int mpbios_probe(device_t); 5076d48919Scegger int mpbios_pci_attach_hook(device_t, device_t, 51afff857eSfvdl struct pcibus_attach_args *); 528375b2d9Sfvdl 538375b2d9Sfvdl extern int mpbios_scanned; 548375b2d9Sfvdl #endif 558375b2d9Sfvdl 568375b2d9Sfvdl #endif 578375b2d9Sfvdl 588375b2d9Sfvdl #endif /* !_X86_MPBIOSVAR_H_ */ 59