1*0660f804Spirofti /* $OpenBSD: glxvar.h,v 1.2 2013/01/14 21:18:47 pirofti Exp $ */ 22581a76dSpirofti 32581a76dSpirofti /* 42581a76dSpirofti * Copyright (c) 2009 Miodrag Vallat. 52581a76dSpirofti * 62581a76dSpirofti * Permission to use, copy, modify, and distribute this software for any 72581a76dSpirofti * purpose with or without fee is hereby granted, provided that the above 82581a76dSpirofti * copyright notice and this permission notice appear in all copies. 92581a76dSpirofti * 102581a76dSpirofti * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 112581a76dSpirofti * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 122581a76dSpirofti * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 132581a76dSpirofti * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 142581a76dSpirofti * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 152581a76dSpirofti * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 162581a76dSpirofti * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 172581a76dSpirofti */ 182581a76dSpirofti 192581a76dSpirofti void glx_init(pci_chipset_tag_t, pcitag_t, int); 202581a76dSpirofti 212581a76dSpirofti uint64_t rdmsr(uint); 222581a76dSpirofti void wrmsr(uint, uint64_t); 23*0660f804Spirofti 24*0660f804Spirofti struct glxpcib_attach_args { 25*0660f804Spirofti const char *gaa_name; 26*0660f804Spirofti 27*0660f804Spirofti struct pci_attach_args *gaa_pa; 28*0660f804Spirofti bus_space_tag_t gaa_iot; 29*0660f804Spirofti bus_space_handle_t gaa_ioh; 30*0660f804Spirofti }; 31