1/*	$OpenBSD: glxvar.h,v 1.2 2013/01/14 21:18:47 pirofti Exp $	*/
2
3/*
4 * Copyright (c) 2009 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 and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18
19void		glx_init(pci_chipset_tag_t, pcitag_t, int);
20
21uint64_t	rdmsr(uint);
22void		wrmsr(uint, uint64_t);
23
24struct glxpcib_attach_args {
25	const char			*gaa_name;
26
27	struct pci_attach_args		*gaa_pa;
28	bus_space_tag_t			 gaa_iot;
29	bus_space_handle_t		 gaa_ioh;
30};
31