17c7c726bSLandon J. Fuller /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 37c7c726bSLandon J. Fuller * 47c7c726bSLandon J. Fuller * Copyright (c) 2018 Landon Fuller <landonf@FreeBSD.org> 57c7c726bSLandon J. Fuller * All rights reserved. 67c7c726bSLandon J. Fuller * 77c7c726bSLandon J. Fuller * Redistribution and use in source and binary forms, with or without 87c7c726bSLandon J. Fuller * modification, are permitted provided that the following conditions 97c7c726bSLandon J. Fuller * are met: 107c7c726bSLandon J. Fuller * 1. Redistributions of source code must retain the above copyright 117c7c726bSLandon J. Fuller * notice, this list of conditions and the following disclaimer. 127c7c726bSLandon J. Fuller * 2. Redistributions in binary form must reproduce the above copyright 137c7c726bSLandon J. Fuller * notice, this list of conditions and the following disclaimer in the 147c7c726bSLandon J. Fuller * documentation and/or other materials provided with the distribution. 157c7c726bSLandon J. Fuller * 167c7c726bSLandon J. Fuller * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 177c7c726bSLandon J. Fuller * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 187c7c726bSLandon J. Fuller * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 197c7c726bSLandon J. Fuller * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 207c7c726bSLandon J. Fuller * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 217c7c726bSLandon J. Fuller * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 227c7c726bSLandon J. Fuller * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 237c7c726bSLandon J. Fuller * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 247c7c726bSLandon J. Fuller * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 257c7c726bSLandon J. Fuller * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 267c7c726bSLandon J. Fuller * SUCH DAMAGE. 277c7c726bSLandon J. Fuller * 287c7c726bSLandon J. Fuller */ 297c7c726bSLandon J. Fuller 307c7c726bSLandon J. Fuller #ifndef _SIBA_SIBA_EROMVAR_H_ 317c7c726bSLandon J. Fuller #define _SIBA_SIBA_EROMVAR_H_ 327c7c726bSLandon J. Fuller 337c7c726bSLandon J. Fuller #include <dev/bhnd/bhnd.h> 347c7c726bSLandon J. Fuller #include <dev/bhnd/bhnd_erom.h> 357c7c726bSLandon J. Fuller 367c7c726bSLandon J. Fuller #include "sibavar.h" 377c7c726bSLandon J. Fuller 387c7c726bSLandon J. Fuller struct siba_erom; 397c7c726bSLandon J. Fuller 407c7c726bSLandon J. Fuller #define SIBA_EROM_ 417c7c726bSLandon J. Fuller 427c7c726bSLandon J. Fuller int siba_erom_get_core_id(struct siba_erom *sc, u_int core_idx, 437c7c726bSLandon J. Fuller struct siba_core_id *result); 447c7c726bSLandon J. Fuller 457c7c726bSLandon J. Fuller #endif /* _SIBA_SIBA_EROMVAR_H_ */ 46