vga_pcivar.h revision 1.4.32.1 1 1.4.32.1 mjf /* $NetBSD: vga_pcivar.h,v 1.4.32.1 2007/07/11 20:08:03 mjf Exp $ */
2 1.1 drochner
3 1.1 drochner /*
4 1.1 drochner * Copyright (c) 1995, 1996 Carnegie-Mellon University.
5 1.1 drochner * All rights reserved.
6 1.1 drochner *
7 1.1 drochner * Author: Chris G. Demetriou
8 1.3 perry *
9 1.1 drochner * Permission to use, copy, modify and distribute this software and
10 1.1 drochner * its documentation is hereby granted, provided that both the copyright
11 1.1 drochner * notice and this permission notice appear in all copies of the
12 1.1 drochner * software, derivative works or modified versions, and any portions
13 1.1 drochner * thereof, and that both notices appear in supporting documentation.
14 1.3 perry *
15 1.3 perry * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
16 1.3 perry * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
17 1.1 drochner * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
18 1.3 perry *
19 1.1 drochner * Carnegie Mellon requests users of this software to return to
20 1.1 drochner *
21 1.1 drochner * Software Distribution Coordinator or Software.Distribution (at) CS.CMU.EDU
22 1.1 drochner * School of Computer Science
23 1.1 drochner * Carnegie Mellon University
24 1.1 drochner * Pittsburgh PA 15213-3890
25 1.1 drochner *
26 1.1 drochner * any improvements or extensions that they make and grant Carnegie the
27 1.1 drochner * rights to redistribute these changes.
28 1.1 drochner */
29 1.1 drochner
30 1.1 drochner #define DEVICE_IS_VGA_PCI(class, id) \
31 1.1 drochner (((PCI_CLASS(class) == PCI_CLASS_DISPLAY && \
32 1.1 drochner PCI_SUBCLASS(class) == PCI_SUBCLASS_DISPLAY_VGA) || \
33 1.1 drochner (PCI_CLASS(class) == PCI_CLASS_PREHISTORIC && \
34 1.1 drochner PCI_SUBCLASS(class) == PCI_SUBCLASS_PREHISTORIC_VGA)) ? 1 : 0)
35 1.1 drochner
36 1.2 perry int vga_pci_cnattach(bus_space_tag_t, bus_space_tag_t,
37 1.2 perry pci_chipset_tag_t, int, int, int);
38 1.4.32.1 mjf
39 1.4.32.1 mjf int vga_drm_print(void *aux, const char *pnp);
40