15b2a81f5SEmmanuel Vadot#- 2*4d846d26SWarner Losh# SPDX-License-Identifier: BSD-2-Clause 35b2a81f5SEmmanuel Vadot# 45b2a81f5SEmmanuel Vadot# Copyright (c) 2021 Emmanuel Vadot <manu@FreeBSD.org> 55b2a81f5SEmmanuel Vadot# 65b2a81f5SEmmanuel Vadot# Redistribution and use in source and binary forms, with or without 75b2a81f5SEmmanuel Vadot# modification, are permitted provided that the following conditions 85b2a81f5SEmmanuel Vadot# are met: 95b2a81f5SEmmanuel Vadot# 1. Redistributions of source code must retain the above copyright 105b2a81f5SEmmanuel Vadot# notice, this list of conditions and the following disclaimer. 115b2a81f5SEmmanuel Vadot# 2. Redistributions in binary form must reproduce the above copyright 125b2a81f5SEmmanuel Vadot# notice, this list of conditions and the following disclaimer in the 135b2a81f5SEmmanuel Vadot# documentation and/or other materials provided with the distribution. 145b2a81f5SEmmanuel Vadot# 155b2a81f5SEmmanuel Vadot# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 165b2a81f5SEmmanuel Vadot# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 175b2a81f5SEmmanuel Vadot# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 185b2a81f5SEmmanuel Vadot# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 195b2a81f5SEmmanuel Vadot# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 205b2a81f5SEmmanuel Vadot# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 215b2a81f5SEmmanuel Vadot# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 225b2a81f5SEmmanuel Vadot# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 235b2a81f5SEmmanuel Vadot# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 245b2a81f5SEmmanuel Vadot# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 255b2a81f5SEmmanuel Vadot# SUCH DAMAGE. 265b2a81f5SEmmanuel Vadot# 275b2a81f5SEmmanuel Vadot# 285b2a81f5SEmmanuel Vadot 295b2a81f5SEmmanuel VadotINTERFACE mmc_pwrseq; 305b2a81f5SEmmanuel Vadot 315b2a81f5SEmmanuel Vadot# 325b2a81f5SEmmanuel Vadot# Power up/down the card 335b2a81f5SEmmanuel Vadot# 345b2a81f5SEmmanuel VadotMETHOD int set_power { 355b2a81f5SEmmanuel Vadot device_t bus; 365b2a81f5SEmmanuel Vadot bool power_on; 375b2a81f5SEmmanuel Vadot}; 38