Annotation of sys/arch/hppa/dev/sti_pci_machdep.c, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: sti_pci_machdep.c,v 1.1 2007/01/11 22:06:39 miod Exp $ */
2:
3: /*
4: * Copyright (c) 2007 Miodrag Vallat.
5: *
6: * Permission to use, copy, modify, and distribute this software for any
7: * purpose with or without fee is hereby granted, provided that the above
8: * copyright notice, this permission notice, and the disclaimer below
9: * appear in all copies.
10: *
11: * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12: * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13: * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14: * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15: * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16: * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17: * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18: */
19:
20: #include <sys/param.h>
21: #include <sys/systm.h>
22: #include <sys/device.h>
23:
24: #include <machine/iomod.h>
25: #include <machine/autoconf.h>
26:
27: #include <dev/pci/pcivar.h>
28:
29: int sti_pci_is_console(struct pci_attach_args *, bus_addr_t *);
30:
31: int
32: sti_pci_is_console(struct pci_attach_args *paa, bus_addr_t *bases)
33: {
34: return ((hppa_hpa_t)bases[0] == (hppa_hpa_t)PAGE0->mem_cons.pz_hpa);
35: }
CVSweb