1*64de8019SJohn Baldwin /*- 2*64de8019SJohn Baldwin * Copyright (c) 2014 John Baldwin <jhb@FreeBSD.org> 3*64de8019SJohn Baldwin * All rights reserved. 4*64de8019SJohn Baldwin * 5*64de8019SJohn Baldwin * Redistribution and use in source and binary forms, with or without 6*64de8019SJohn Baldwin * modification, are permitted provided that the following conditions 7*64de8019SJohn Baldwin * are met: 8*64de8019SJohn Baldwin * 1. Redistributions of source code must retain the above copyright 9*64de8019SJohn Baldwin * notice, this list of conditions and the following disclaimer. 10*64de8019SJohn Baldwin * 2. Redistributions in binary form must reproduce the above copyright 11*64de8019SJohn Baldwin * notice, this list of conditions and the following disclaimer in the 12*64de8019SJohn Baldwin * documentation and/or other materials provided with the distribution. 13*64de8019SJohn Baldwin * 14*64de8019SJohn Baldwin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*64de8019SJohn Baldwin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*64de8019SJohn Baldwin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*64de8019SJohn Baldwin * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*64de8019SJohn Baldwin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*64de8019SJohn Baldwin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*64de8019SJohn Baldwin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*64de8019SJohn Baldwin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*64de8019SJohn Baldwin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*64de8019SJohn Baldwin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*64de8019SJohn Baldwin * SUCH DAMAGE. 25*64de8019SJohn Baldwin * 26*64de8019SJohn Baldwin * $FreeBSD$ 27*64de8019SJohn Baldwin */ 28*64de8019SJohn Baldwin 29*64de8019SJohn Baldwin #ifndef __DEVCTL_H__ 30*64de8019SJohn Baldwin #define __DEVCTL_H__ 31*64de8019SJohn Baldwin 32*64de8019SJohn Baldwin #include <stdbool.h> 33*64de8019SJohn Baldwin 34*64de8019SJohn Baldwin int devctl_attach(const char *device); 35*64de8019SJohn Baldwin int devctl_detach(const char *device, bool force); 36*64de8019SJohn Baldwin int devctl_enable(const char *device); 37*64de8019SJohn Baldwin int devctl_disable(const char *device, bool force_detach); 38*64de8019SJohn Baldwin int devctl_suspend(const char *device); 39*64de8019SJohn Baldwin int devctl_resume(const char *device); 40*64de8019SJohn Baldwin int devctl_set_driver(const char *device, const char *driver, bool force); 41*64de8019SJohn Baldwin 42*64de8019SJohn Baldwin #endif /* !__DEVCTL_H__ */ 43