xref: /freebsd/sys/dev/cardbus/power_if.m (revision 031beb4e239bfce798af17f5fe8dba8bcaf13d99)
1*cabbfa3eSWarner Losh#-
2*cabbfa3eSWarner Losh# Copyright (c) 1999 M. Warner Losh <imp@FreeBSD.org>
3*cabbfa3eSWarner Losh#
4*cabbfa3eSWarner Losh# Redistribution and use in source and binary forms, with or without
5*cabbfa3eSWarner Losh# modification, are permitted provided that the following conditions
6*cabbfa3eSWarner Losh# are met:
7*cabbfa3eSWarner Losh# 1. Redistributions of source code must retain the above copyright
8*cabbfa3eSWarner Losh#    notice, this list of conditions and the following disclaimer.
9*cabbfa3eSWarner Losh# 2. Redistributions in binary form must reproduce the above copyright
10*cabbfa3eSWarner Losh#    notice, this list of conditions and the following disclaimer in the
11*cabbfa3eSWarner Losh#    documentation and/or other materials provided with the distribution.
12*cabbfa3eSWarner Losh#
13*cabbfa3eSWarner Losh# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14*cabbfa3eSWarner Losh# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15*cabbfa3eSWarner Losh# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16*cabbfa3eSWarner Losh# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17*cabbfa3eSWarner Losh# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18*cabbfa3eSWarner Losh# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19*cabbfa3eSWarner Losh# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20*cabbfa3eSWarner Losh# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21*cabbfa3eSWarner Losh# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22*cabbfa3eSWarner Losh# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23*cabbfa3eSWarner Losh# SUCH DAMAGE.
24*cabbfa3eSWarner Losh#
25*cabbfa3eSWarner Losh#
26*cabbfa3eSWarner Losh
27*cabbfa3eSWarner Losh#include <sys/bus.h>
28*cabbfa3eSWarner Losh
29*cabbfa3eSWarner LoshINTERFACE power;
30*cabbfa3eSWarner Losh
31*cabbfa3eSWarner Losh#
32*cabbfa3eSWarner Losh# Interface for powering cards on/off.  It is hoped that this will be
33*cabbfa3eSWarner Losh# generic enough to be used for other systems in addition to the pccard
34*cabbfa3eSWarner Losh# <-> pcic interface that it was originally written for.
35*cabbfa3eSWarner Losh#
36*cabbfa3eSWarner LoshMETHOD int enable_socket {
37*cabbfa3eSWarner Losh	device_t	dev;
38*cabbfa3eSWarner Losh	device_t	child;
39*cabbfa3eSWarner Losh};
40*cabbfa3eSWarner Losh
41*cabbfa3eSWarner LoshMETHOD int disable_socket {
42*cabbfa3eSWarner Losh	device_t	dev;
43*cabbfa3eSWarner Losh	device_t	child;
44*cabbfa3eSWarner Losh};
45