1*54b96380SRuslan Bukin#- 2*54b96380SRuslan Bukin# SPDX-License-Identifier: BSD-2-Clause 3*54b96380SRuslan Bukin# 4*54b96380SRuslan Bukin# Copyright (c) 2022 Ruslan Bukin <br@bsdpad.com> 5*54b96380SRuslan Bukin# 6*54b96380SRuslan Bukin# This work was supported by Innovate UK project 105694, "Digital Security by 7*54b96380SRuslan Bukin# Design (DSbD) Technology Platform Prototype". 8*54b96380SRuslan Bukin# 9*54b96380SRuslan Bukin# Redistribution and use in source and binary forms, with or without 10*54b96380SRuslan Bukin# modification, are permitted provided that the following conditions are met: 11*54b96380SRuslan Bukin# 1. Redistributions of source code must retain the above copyright notice, 12*54b96380SRuslan Bukin# this list of conditions and the following disclaimer. 13*54b96380SRuslan Bukin# 2. Redistributions in binary form must reproduce the above copyright notice, 14*54b96380SRuslan Bukin# this list of conditions and the following disclaimer in the documentation 15*54b96380SRuslan Bukin# and/or other materials provided with the distribution. 16*54b96380SRuslan Bukin# 17*54b96380SRuslan Bukin# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY 18*54b96380SRuslan Bukin# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19*54b96380SRuslan Bukin# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20*54b96380SRuslan Bukin# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21*54b96380SRuslan Bukin# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22*54b96380SRuslan Bukin# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23*54b96380SRuslan Bukin# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24*54b96380SRuslan Bukin# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25*54b96380SRuslan Bukin# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26*54b96380SRuslan Bukin# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27*54b96380SRuslan Bukin# 28*54b96380SRuslan Bukin# 29*54b96380SRuslan Bukin 30*54b96380SRuslan Bukin#include <machine/bus.h> 31*54b96380SRuslan Bukin 32*54b96380SRuslan BukinINTERFACE mmio_sram; 33*54b96380SRuslan Bukin 34*54b96380SRuslan BukinMETHOD uint8_t read_1 { 35*54b96380SRuslan Bukin device_t dev; 36*54b96380SRuslan Bukin bus_size_t offset; 37*54b96380SRuslan Bukin}; 38*54b96380SRuslan Bukin 39*54b96380SRuslan BukinMETHOD void write_1 { 40*54b96380SRuslan Bukin device_t dev; 41*54b96380SRuslan Bukin bus_size_t offset; 42*54b96380SRuslan Bukin uint8_t value; 43*54b96380SRuslan Bukin}; 44