md_var.h revision 184728
1129198Scognet/*-
2129198Scognet * Copyright (c) 1995 Bruce D. Evans.
3129198Scognet * All rights reserved.
4129198Scognet *
5129198Scognet * Redistribution and use in source and binary forms, with or without
6129198Scognet * modification, are permitted provided that the following conditions
7129198Scognet * are met:
8129198Scognet * 1. Redistributions of source code must retain the above copyright
9129198Scognet *    notice, this list of conditions and the following disclaimer.
10129198Scognet * 2. Redistributions in binary form must reproduce the above copyright
11129198Scognet *    notice, this list of conditions and the following disclaimer in the
12129198Scognet *    documentation and/or other materials provided with the distribution.
13129198Scognet * 3. Neither the name of the author nor the names of contributors
14129198Scognet *    may be used to endorse or promote products derived from this software
15129198Scognet *    without specific prior written permission.
16129198Scognet *
17129198Scognet * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18129198Scognet * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19129198Scognet * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20129198Scognet * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21129198Scognet * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22129198Scognet * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23129198Scognet * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24129198Scognet * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25129198Scognet * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26129198Scognet * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27129198Scognet * SUCH DAMAGE.
28129198Scognet *
29129198Scognet *	from: FreeBSD: src/sys/i386/include/md_var.h,v 1.40 2001/07/12
30129198Scognet * $FreeBSD: head/sys/arm/include/md_var.h 184728 2008-11-06 16:20:27Z raj $
31129198Scognet */
32129198Scognet
33129198Scognet#ifndef	_MACHINE_MD_VAR_H_
34129198Scognet#define	_MACHINE_MD_VAR_H_
35129198Scognet
36135663Scognetextern char sigcode[];
37135663Scognetextern int szsigcode;
38184728Srajextern uint32_t *vm_page_dump;
39184728Srajextern int vm_page_dump_size;
40135663Scognet
41150864Scognetextern int (*_arm_memcpy)(void *, void *, int, int);
42150864Scognetextern int (*_arm_bzero)(void *, int, int);
43150864Scognet
44150864Scognetextern int _min_memcpy_size;
45150864Scognetextern int _min_bzero_size;
46150864Scognet
47150864Scognet#define DST_IS_USER	0x1
48150864Scognet#define SRC_IS_USER	0x2
49150864Scognet#define IS_PHYSICAL	0x4
50150864Scognet
51184728Srajstruct dumperinfo;
52166063Scognetextern int busdma_swi_pending;
53166063Scognetvoid busdma_swi(void);
54184728Srajvoid dump_add_page(vm_paddr_t);
55184728Srajvoid dump_drop_page(vm_paddr_t);
56184728Srajvoid minidumpsys(struct dumperinfo *);
57166063Scognet
58129198Scognet#endif /* !_MACHINE_MD_VAR_H_ */
59