11.7Smsaitoh/* $NetBSD: cpuctl.h,v 1.7 2020/04/21 02:56:37 msaitoh Exp $ */ 21.1Sad 31.1Sad/*- 41.1Sad * Copyright (c) 2008 The NetBSD Foundation, Inc. 51.1Sad * All rights reserved. 61.1Sad * 71.1Sad * Redistribution and use in source and binary forms, with or without 81.1Sad * modification, are permitted provided that the following conditions 91.1Sad * are met: 101.1Sad * 1. Redistributions of source code must retain the above copyright 111.1Sad * notice, this list of conditions and the following disclaimer. 121.1Sad * 2. Redistributions in binary form must reproduce the above copyright 131.1Sad * notice, this list of conditions and the following disclaimer in the 141.1Sad * documentation and/or other materials provided with the distribution. 151.1Sad * 161.1Sad * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 171.1Sad * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 181.1Sad * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 191.1Sad * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 201.1Sad * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 211.1Sad * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 221.1Sad * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 231.1Sad * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 241.1Sad * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 251.1Sad * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 261.1Sad * POSSIBILITY OF SUCH DAMAGE. 271.1Sad */ 281.1Sad 291.7Smsaitoh#include <sys/cpuio.h> 301.7Smsaitoh 311.3Sjoergint aprint_normal(const char *, ...) __printflike(1, 2); 321.3Sjoergint aprint_verbose(const char *, ...) __printflike(1, 2); 331.3Sjoergint aprint_error(const char *, ...) __printflike(1, 2); 341.3Sjoergint aprint_normal_dev(const char *, const char *, ...) __printflike(2, 3); 351.3Sjoergint aprint_verbose_dev(const char *, const char *, ...) __printflike(2, 3); 361.3Sjoergint aprint_error_dev(const char *, const char *, ...) __printflike(2, 3); 371.7Smsaitohint aprint_debug_dev(const char *, const char *, ...) __printflike(2, 3); 381.1Sad 391.4Sdrochnervoid identifycpu(int, const char *); 401.6Smrgbool identifycpu_bind(void); 411.4Sdrochnerint ucodeupdate_check(int, struct cpu_ucode *); 421.5Smsaitoh 431.5Smsaitohextern int verbose; 44