Deleted Added
full compact
md_var.h (32677) md_var.h (33008)
1/*-
2 * Copyright (c) 1995 Bruce D. Evans.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 1995 Bruce D. Evans.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $Id: md_var.h,v 1.21 1998/01/15 07:32:56 gibbs Exp $
29 * $Id: md_var.h,v 1.22 1998/01/21 18:28:46 gibbs Exp $
30 */
31
32#ifndef _MACHINE_MD_VAR_H_
33#define _MACHINE_MD_VAR_H_
34
35/*
36 * Miscellaneous machine-dependent declarations.
37 */
38
39extern int Maxmem;
40extern u_int atdevbase; /* offset in virtual memory of ISA io mem */
41#ifdef BOUNCE_BUFFERS
42extern char *bouncememory;
43extern int bouncepages;
44#endif
30 */
31
32#ifndef _MACHINE_MD_VAR_H_
33#define _MACHINE_MD_VAR_H_
34
35/*
36 * Miscellaneous machine-dependent declarations.
37 */
38
39extern int Maxmem;
40extern u_int atdevbase; /* offset in virtual memory of ISA io mem */
41#ifdef BOUNCE_BUFFERS
42extern char *bouncememory;
43extern int bouncepages;
44#endif
45extern int busdma_swi_pending;
45extern u_long cpu_feature;
46extern u_long cpu_high;
47extern u_long cpu_id;
48extern u_long cyrix_did;
49extern char cpu_vendor[];
50extern char kstack[];
51#ifdef BOUNCE_BUFFERS
52extern int maxbkva;
53#endif
54extern void (*netisrs[32]) __P((void));
55extern int nfs_diskless_valid;
56extern char sigcode[];
57extern int szsigcode;
46extern u_long cpu_feature;
47extern u_long cpu_high;
48extern u_long cpu_id;
49extern u_long cyrix_did;
50extern char cpu_vendor[];
51extern char kstack[];
52#ifdef BOUNCE_BUFFERS
53extern int maxbkva;
54#endif
55extern void (*netisrs[32]) __P((void));
56extern int nfs_diskless_valid;
57extern char sigcode[];
58extern int szsigcode;
58extern int busdma_swi_pending;
59
60typedef void alias_for_inthand_t __P((u_int cs, u_int ef, u_int esp, u_int ss));
61struct proc;
62struct reg;
63
64void bcopyb __P((const void *from, void *to, size_t len));
59
60typedef void alias_for_inthand_t __P((u_int cs, u_int ef, u_int esp, u_int ss));
61struct proc;
62struct reg;
63
64void bcopyb __P((const void *from, void *to, size_t len));
65void busdma_swi __P((void));
65void cpu_reset __P((void));
66void cpu_halt __P((void));
67void cpu_power_down __P((void));
68void cpu_switch_load_fs __P((void)) __asm(__STRING(cpu_switch_load_fs));
69void cpu_switch_load_gs __P((void)) __asm(__STRING(cpu_switch_load_gs));
70void doreti_iret __P((void)) __asm(__STRING(doreti_iret));
71void doreti_iret_fault __P((void)) __asm(__STRING(doreti_iret_fault));
72void doreti_popl_ds __P((void)) __asm(__STRING(doreti_popl_ds));
73void doreti_popl_ds_fault __P((void)) __asm(__STRING(doreti_popl_ds_fault));
74void doreti_popl_es __P((void)) __asm(__STRING(doreti_popl_es));
75void doreti_popl_es_fault __P((void)) __asm(__STRING(doreti_popl_es_fault));
76int fill_regs __P((struct proc *p, struct reg *regs));
77void fillw __P((int /*u_short*/ pat, void *base, size_t cnt));
78int is_physical_memory __P((vm_offset_t addr));
79u_long kvtop __P((void *addr));
80void setidt __P((int idx, alias_for_inthand_t *func, int typ, int dpl,
81 int selec));
66void cpu_reset __P((void));
67void cpu_halt __P((void));
68void cpu_power_down __P((void));
69void cpu_switch_load_fs __P((void)) __asm(__STRING(cpu_switch_load_fs));
70void cpu_switch_load_gs __P((void)) __asm(__STRING(cpu_switch_load_gs));
71void doreti_iret __P((void)) __asm(__STRING(doreti_iret));
72void doreti_iret_fault __P((void)) __asm(__STRING(doreti_iret_fault));
73void doreti_popl_ds __P((void)) __asm(__STRING(doreti_popl_ds));
74void doreti_popl_ds_fault __P((void)) __asm(__STRING(doreti_popl_ds_fault));
75void doreti_popl_es __P((void)) __asm(__STRING(doreti_popl_es));
76void doreti_popl_es_fault __P((void)) __asm(__STRING(doreti_popl_es_fault));
77int fill_regs __P((struct proc *p, struct reg *regs));
78void fillw __P((int /*u_short*/ pat, void *base, size_t cnt));
79int is_physical_memory __P((vm_offset_t addr));
80u_long kvtop __P((void *addr));
81void setidt __P((int idx, alias_for_inthand_t *func, int typ, int dpl,
82 int selec));
83void swi_vm __P((void));
82void userconfig __P((void));
83void vm_bounce_init __P((void));
84int vm_page_zero_idle __P((void));
84void userconfig __P((void));
85void vm_bounce_init __P((void));
86int vm_page_zero_idle __P((void));
85void swi_vm __P((void));
86void busdma_swi __P((void));
87
88#ifdef PC98
89extern int need_pre_dma_flush;
90extern int need_post_dma_flush;
91#endif
92
93#endif /* !_MACHINE_MD_VAR_H_ */
87
88#ifdef PC98
89extern int need_pre_dma_flush;
90extern int need_post_dma_flush;
91#endif
92
93#endif /* !_MACHINE_MD_VAR_H_ */