1*75b842b8Sskrll /* $NetBSD: cpuvar.h,v 1.1 2023/05/07 12:41:48 skrll Exp $ */ 2*75b842b8Sskrll 3*75b842b8Sskrll /*- 4*75b842b8Sskrll * Copyright (c) 2022 The NetBSD Foundation, Inc. 5*75b842b8Sskrll * All rights reserved. 6*75b842b8Sskrll * 7*75b842b8Sskrll * This code is derived from software contributed to The NetBSD Foundation 8*75b842b8Sskrll * by Nick Hudson 9*75b842b8Sskrll * 10*75b842b8Sskrll * Redistribution and use in source and binary forms, with or without 11*75b842b8Sskrll * modification, are permitted provided that the following conditions 12*75b842b8Sskrll * are met: 13*75b842b8Sskrll * 1. Redistributions of source code must retain the above copyright 14*75b842b8Sskrll * notice, this list of conditions and the following disclaimer. 15*75b842b8Sskrll * 2. Redistributions in binary form must reproduce the above copyright 16*75b842b8Sskrll * notice, this list of conditions and the following disclaimer in the 17*75b842b8Sskrll * documentation and/or other materials provided with the distribution. 18*75b842b8Sskrll * 19*75b842b8Sskrll * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20*75b842b8Sskrll * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21*75b842b8Sskrll * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22*75b842b8Sskrll * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23*75b842b8Sskrll * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24*75b842b8Sskrll * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25*75b842b8Sskrll * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26*75b842b8Sskrll * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27*75b842b8Sskrll * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28*75b842b8Sskrll * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29*75b842b8Sskrll * POSSIBILITY OF SUCH DAMAGE. 30*75b842b8Sskrll */ 31*75b842b8Sskrll 32*75b842b8Sskrll #ifndef _RISCV_CPUVAR_H_ 33*75b842b8Sskrll #define _RISCV_CPUVAR_H_ 34*75b842b8Sskrll 35*75b842b8Sskrll #ifdef _KERNEL 36*75b842b8Sskrll 37*75b842b8Sskrll #include <sys/device_if.h> 38*75b842b8Sskrll 39*75b842b8Sskrll void cpu_attach(device_t, cpuid_t); 40*75b842b8Sskrll 41*75b842b8Sskrll #endif 42*75b842b8Sskrll 43*75b842b8Sskrll #endif /* _RISCV_CPUVAR_H_ */ 44