1 /* $NetBSD: mpbiosreg.h,v 1.6 2010/04/18 23:47:51 jym Exp $ */
4 * Copyright (c) 2000 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by RedBack Networks Inc.
10 * Author: Bill Sommerfeld
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above copyright
18 * notice, this list of conditions and the following disclaimer in the
19 * documentation and/or other materials provided with the distribution.
21 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
22 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
23 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
34 #ifndef _X86_MPBIOSREG_H_
35 #define _X86_MPBIOSREG_H_
37 #define BIOS_BASE (0xf0000)
38 #define BIOS_SIZE (0x10000)
39 #define BIOS_COUNT (BIOS_SIZE)
42 * Multiprocessor config table entry types.
47 #define MPS_MCT_IOAPIC 2
48 #define MPS_MCT_IOINT 3
49 #define MPS_MCT_LINT 4
51 #define MPS_MCT_NTYPES 5
53 /* MP Floating Pointer Structure */
56 /* string defined by the Intel MP Spec as identifying the MP table */
57 #define MP_FP_SIG 0x5f504d5f /* _MP_ */
63 uint8_t mpfb1
; /* system configuration */
64 uint8_t mpfb2
; /* flags */
65 #define MPFPS_FLAG_IMCR 0x80 /* IMCR present */
66 uint8_t mpfb3
; /* unused */
67 uint8_t mpfb4
; /* unused */
68 uint8_t mpfb5
; /* unused */
71 /* MP Configuration Table Header */
74 #define MP_CT_SIG 0x504d4350 /* PCMP */
80 uint8_t product_id
[12];
81 uint32_t oem_table_pointer
;
82 uint16_t oem_table_size
;
84 uint32_t apic_address
;
95 #define PROCENTRY_FLAG_EN 0x01
96 #define PROCENTRY_FLAG_BP 0x02
107 struct mpbios_ioapic
{
110 uint8_t apic_version
;
112 #define IOAPICENTRY_FLAG_EN 0x01
113 uint32_t apic_address
;
123 #define MPS_ALL_APICS 0xff
124 uint8_t dst_apic_int
;
128 #endif /* !_X86_MPBIOSREG_H_ */