1*5b2a81f5SEmmanuel Vadot#- 2*5b2a81f5SEmmanuel Vadot# SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3*5b2a81f5SEmmanuel Vadot# 4*5b2a81f5SEmmanuel Vadot# Copyright (c) 2021 Emmanuel Vadot <manu@FreeBSD.org> 5*5b2a81f5SEmmanuel Vadot# 6*5b2a81f5SEmmanuel Vadot# Redistribution and use in source and binary forms, with or without 7*5b2a81f5SEmmanuel Vadot# modification, are permitted provided that the following conditions 8*5b2a81f5SEmmanuel Vadot# are met: 9*5b2a81f5SEmmanuel Vadot# 1. Redistributions of source code must retain the above copyright 10*5b2a81f5SEmmanuel Vadot# notice, this list of conditions and the following disclaimer. 11*5b2a81f5SEmmanuel Vadot# 2. Redistributions in binary form must reproduce the above copyright 12*5b2a81f5SEmmanuel Vadot# notice, this list of conditions and the following disclaimer in the 13*5b2a81f5SEmmanuel Vadot# documentation and/or other materials provided with the distribution. 14*5b2a81f5SEmmanuel Vadot# 15*5b2a81f5SEmmanuel Vadot# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16*5b2a81f5SEmmanuel Vadot# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17*5b2a81f5SEmmanuel Vadot# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18*5b2a81f5SEmmanuel Vadot# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19*5b2a81f5SEmmanuel Vadot# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20*5b2a81f5SEmmanuel Vadot# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21*5b2a81f5SEmmanuel Vadot# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22*5b2a81f5SEmmanuel Vadot# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23*5b2a81f5SEmmanuel Vadot# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24*5b2a81f5SEmmanuel Vadot# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25*5b2a81f5SEmmanuel Vadot# SUCH DAMAGE. 26*5b2a81f5SEmmanuel Vadot# 27*5b2a81f5SEmmanuel Vadot# $FreeBSD$ 28*5b2a81f5SEmmanuel Vadot# 29*5b2a81f5SEmmanuel Vadot 30*5b2a81f5SEmmanuel VadotINTERFACE mmc_pwrseq; 31*5b2a81f5SEmmanuel Vadot 32*5b2a81f5SEmmanuel Vadot# 33*5b2a81f5SEmmanuel Vadot# Power up/down the card 34*5b2a81f5SEmmanuel Vadot# 35*5b2a81f5SEmmanuel VadotMETHOD int set_power { 36*5b2a81f5SEmmanuel Vadot device_t bus; 37*5b2a81f5SEmmanuel Vadot bool power_on; 38*5b2a81f5SEmmanuel Vadot}; 39