1*907f50feSConrad Meyer /*- 2*907f50feSConrad Meyer * Copyright (c) 2017 Conrad Meyer <cem@FreeBSD.org> 3*907f50feSConrad Meyer * All rights reserved. 4*907f50feSConrad Meyer * 5*907f50feSConrad Meyer * Redistribution and use in source and binary forms, with or without 6*907f50feSConrad Meyer * modification, are permitted provided that the following conditions 7*907f50feSConrad Meyer * are met: 8*907f50feSConrad Meyer * 1. Redistributions of source code must retain the above copyright 9*907f50feSConrad Meyer * notice, this list of conditions and the following disclaimer. 10*907f50feSConrad Meyer * 2. Redistributions in binary form must reproduce the above copyright 11*907f50feSConrad Meyer * notice, this list of conditions and the following disclaimer in the 12*907f50feSConrad Meyer * documentation and/or other materials provided with the distribution. 13*907f50feSConrad Meyer * 14*907f50feSConrad Meyer * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15*907f50feSConrad Meyer * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16*907f50feSConrad Meyer * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17*907f50feSConrad Meyer * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 18*907f50feSConrad Meyer * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19*907f50feSConrad Meyer * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 20*907f50feSConrad Meyer * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*907f50feSConrad Meyer * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 22*907f50feSConrad Meyer * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 23*907f50feSConrad Meyer * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24*907f50feSConrad Meyer * POSSIBILITY OF SUCH DAMAGE. 25*907f50feSConrad Meyer */ 26*907f50feSConrad Meyer 27*907f50feSConrad Meyer #pragma once 28*907f50feSConrad Meyer 29*907f50feSConrad Meyer int amdsmn_read(device_t dev, uint32_t addr, uint32_t *value); 30*907f50feSConrad Meyer int amdsmn_write(device_t dev, uint32_t addr, uint32_t value); 31