md_var.h revision 209975
1296047Soshogbo/*- 2296047Soshogbo * Copyright (c) 1998 Doug Rabson 3296047Soshogbo * All rights reserved. 4296047Soshogbo * 5296047Soshogbo * Redistribution and use in source and binary forms, with or without 6296047Soshogbo * modification, are permitted provided that the following conditions 7296047Soshogbo * are met: 8296047Soshogbo * 1. Redistributions of source code must retain the above copyright 9296047Soshogbo * notice, this list of conditions and the following disclaimer. 10296047Soshogbo * 2. Redistributions in binary form must reproduce the above copyright 11296047Soshogbo * notice, this list of conditions and the following disclaimer in the 12296047Soshogbo * documentation and/or other materials provided with the distribution. 13296047Soshogbo * 14296047Soshogbo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15296047Soshogbo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16296047Soshogbo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17296047Soshogbo * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18296047Soshogbo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19296047Soshogbo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20296047Soshogbo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21296047Soshogbo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22296047Soshogbo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23296047Soshogbo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24296047Soshogbo * SUCH DAMAGE. 25296047Soshogbo * 26296047Soshogbo * $FreeBSD: head/sys/powerpc/include/md_var.h 209975 2010-07-13 05:32:19Z nwhitehorn $ 27296047Soshogbo */ 28296047Soshogbo 29296047Soshogbo#ifndef _MACHINE_MD_VAR_H_ 30296047Soshogbo#define _MACHINE_MD_VAR_H_ 31296047Soshogbo 32296047Soshogbo/* 33296047Soshogbo * Miscellaneous machine-dependent declarations. 34296047Soshogbo */ 35296047Soshogbo 36296047Soshogboextern char sigcode32[]; 37296047Soshogboextern int szsigcode32; 38296047Soshogbo 39296047Soshogbo#ifdef __powerpc64__ 40296047Soshogboextern char sigcode64[]; 41296047Soshogboextern int szsigcode64; 42296047Soshogbo#endif 43296047Soshogbo 44296047Soshogboextern long Maxmem; 45296047Soshogboextern int busdma_swi_pending; 46296047Soshogbo 47296047Soshogboextern vm_offset_t kstack0; 48296047Soshogboextern vm_offset_t kstack0_phys; 49296047Soshogbo 50296047Soshogboextern u_long ns_per_tick; 51296047Soshogbo 52296047Soshogboextern int powerpc_pow_enabled; 53296047Soshogboextern int cacheline_size; 54296047Soshogboextern int hw_direct_map; 55296047Soshogbo 56296047Soshogbovoid __syncicache(void *, int); 57296047Soshogbo 58296047Soshogbovoid busdma_swi(void); 59296047Soshogboint is_physical_memory(vm_offset_t addr); 60296047Soshogboint mem_valid(vm_offset_t addr, int len); 61296047Soshogbo 62296047Soshogbovoid decr_init(void); 63296047Soshogbovoid decr_ap_init(void); 64296047Soshogbovoid decr_tc_init(void); 65296047Soshogbo 66296047Soshogbovoid cpu_setup(u_int); 67296047Soshogbo 68296047Soshogbostruct trapframe; 69296047Soshogbovoid powerpc_interrupt(struct trapframe *); 70296047Soshogbo 71296047Soshogbo#endif /* !_MACHINE_MD_VAR_H_ */ 72296047Soshogbo