18311733cSPierre-Alain TORET /*- 28311733cSPierre-Alain TORET * Copyright (c) 2017 Conrad Meyer <cem@FreeBSD.org> 38311733cSPierre-Alain TORET * All rights reserved. 48311733cSPierre-Alain TORET * 58311733cSPierre-Alain TORET * Redistribution and use in source and binary forms, with or without 68311733cSPierre-Alain TORET * modification, are permitted provided that the following conditions 78311733cSPierre-Alain TORET * are met: 88311733cSPierre-Alain TORET * 1. Redistributions of source code must retain the above copyright 98311733cSPierre-Alain TORET * notice, this list of conditions and the following disclaimer. 108311733cSPierre-Alain TORET * 2. Redistributions in binary form must reproduce the above copyright 118311733cSPierre-Alain TORET * notice, this list of conditions and the following disclaimer in the 128311733cSPierre-Alain TORET * documentation and/or other materials provided with the distribution. 138311733cSPierre-Alain TORET * 148311733cSPierre-Alain TORET * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 158311733cSPierre-Alain TORET * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 168311733cSPierre-Alain TORET * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 178311733cSPierre-Alain TORET * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 188311733cSPierre-Alain TORET * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 198311733cSPierre-Alain TORET * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 208311733cSPierre-Alain TORET * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 218311733cSPierre-Alain TORET * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 228311733cSPierre-Alain TORET * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 238311733cSPierre-Alain TORET * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 248311733cSPierre-Alain TORET * POSSIBILITY OF SUCH DAMAGE. 258311733cSPierre-Alain TORET * 26*23be8282SSascha Wildner * $FreeBSD: head/sys/dev/amdsmn/amdsmn.h 323184 2017-09-05 15:13:41Z cem $ 27*23be8282SSascha Wildner 288311733cSPierre-Alain TORET */ 298311733cSPierre-Alain TORET 308311733cSPierre-Alain TORET #pragma once 318311733cSPierre-Alain TORET 328311733cSPierre-Alain TORET int amdsmn_read(device_t dev, uint32_t addr, uint32_t *value); 338311733cSPierre-Alain TORET int amdsmn_write(device_t dev, uint32_t addr, uint32_t value); 34