1675aae73SEmmanuel Vadot#- 2*4d846d26SWarner Losh# SPDX-License-Identifier: BSD-2-Clause 3675aae73SEmmanuel Vadot# 4675aae73SEmmanuel Vadot# Copyright (c) 2020 Emmanuel Vadot <manu@FreeBSD.org> 5675aae73SEmmanuel Vadot# 6675aae73SEmmanuel Vadot# Redistribution and use in source and binary forms, with or without 7675aae73SEmmanuel Vadot# modification, are permitted provided that the following conditions 8675aae73SEmmanuel Vadot# are met: 9675aae73SEmmanuel Vadot# 1. Redistributions of source code must retain the above copyright 10675aae73SEmmanuel Vadot# notice, this list of conditions and the following disclaimer. 11675aae73SEmmanuel Vadot# 2. Redistributions in binary form must reproduce the above copyright 12675aae73SEmmanuel Vadot# notice, this list of conditions and the following disclaimer in the 13675aae73SEmmanuel Vadot# documentation and/or other materials provided with the distribution. 14675aae73SEmmanuel Vadot# 15675aae73SEmmanuel Vadot# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16675aae73SEmmanuel Vadot# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17675aae73SEmmanuel Vadot# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18675aae73SEmmanuel Vadot# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19675aae73SEmmanuel Vadot# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20675aae73SEmmanuel Vadot# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21675aae73SEmmanuel Vadot# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22675aae73SEmmanuel Vadot# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23675aae73SEmmanuel Vadot# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24675aae73SEmmanuel Vadot# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25675aae73SEmmanuel Vadot# SUCH DAMAGE. 26675aae73SEmmanuel Vadot# 27675aae73SEmmanuel Vadot 28675aae73SEmmanuel Vadot#include <dev/backlight/backlight.h> 29675aae73SEmmanuel Vadot 30675aae73SEmmanuel VadotINTERFACE backlight; 31675aae73SEmmanuel Vadot 32675aae73SEmmanuel VadotCODE { 33675aae73SEmmanuel Vadot static int 34675aae73SEmmanuel Vadot backlight_default_update_status(device_t dev, struct backlight_props *props) 35675aae73SEmmanuel Vadot { 36675aae73SEmmanuel Vadot return (EOPNOTSUPP); 37675aae73SEmmanuel Vadot } 38675aae73SEmmanuel Vadot 39675aae73SEmmanuel Vadot static int 40675aae73SEmmanuel Vadot backlight_default_get_status(device_t dev, struct backlight_props *props) 41675aae73SEmmanuel Vadot { 42675aae73SEmmanuel Vadot return (EOPNOTSUPP); 43675aae73SEmmanuel Vadot } 44675aae73SEmmanuel Vadot 45675aae73SEmmanuel Vadot static int 46675aae73SEmmanuel Vadot backlight_default_get_info(device_t dev, struct backlight_info *info) 47675aae73SEmmanuel Vadot { 48675aae73SEmmanuel Vadot return (EOPNOTSUPP); 49675aae73SEmmanuel Vadot } 50675aae73SEmmanuel Vadot}; 51675aae73SEmmanuel Vadot 52675aae73SEmmanuel VadotMETHOD int update_status { 53675aae73SEmmanuel Vadot device_t dev; 54675aae73SEmmanuel Vadot struct backlight_props *props; 55675aae73SEmmanuel Vadot} DEFAULT backlight_default_update_status; 56675aae73SEmmanuel Vadot 57675aae73SEmmanuel VadotMETHOD int get_status { 58675aae73SEmmanuel Vadot device_t dev; 59675aae73SEmmanuel Vadot struct backlight_props *props; 60675aae73SEmmanuel Vadot} DEFAULT backlight_default_get_status; 61675aae73SEmmanuel Vadot 62675aae73SEmmanuel VadotMETHOD int get_info { 63675aae73SEmmanuel Vadot device_t dev; 64675aae73SEmmanuel Vadot struct backlight_info *info; 65675aae73SEmmanuel Vadot} DEFAULT backlight_default_get_info; 66