1323184Scem/*- 2323184Scem * Copyright (c) 2017 Conrad Meyer <cem@FreeBSD.org> 3323184Scem * All rights reserved. 4323184Scem * 5323184Scem * Redistribution and use in source and binary forms, with or without 6323184Scem * modification, are permitted provided that the following conditions 7323184Scem * are met: 8323184Scem * 1. Redistributions of source code must retain the above copyright 9323184Scem * notice, this list of conditions and the following disclaimer. 10323184Scem * 2. Redistributions in binary form must reproduce the above copyright 11323184Scem * notice, this list of conditions and the following disclaimer in the 12323184Scem * documentation and/or other materials provided with the distribution. 13323184Scem * 14323184Scem * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15323184Scem * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16323184Scem * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17323184Scem * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 18323184Scem * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19323184Scem * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 20323184Scem * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21323184Scem * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 22323184Scem * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 23323184Scem * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24323184Scem * POSSIBILITY OF SUCH DAMAGE. 25323184Scem * 26323184Scem * $FreeBSD: stable/11/sys/dev/amdsmn/amdsmn.h 323184 2017-09-05 15:13:41Z cem $ 27323184Scem */ 28323184Scem 29323184Scem#pragma once 30323184Scem 31323184Scemint amdsmn_read(device_t dev, uint32_t addr, uint32_t *value); 32323184Scemint amdsmn_write(device_t dev, uint32_t addr, uint32_t value); 33