1278320Sjhb/*-
2278320Sjhb * Copyright (c) 2014 John Baldwin <jhb@FreeBSD.org>
3278320Sjhb * All rights reserved.
4278320Sjhb *
5278320Sjhb * Redistribution and use in source and binary forms, with or without
6278320Sjhb * modification, are permitted provided that the following conditions
7278320Sjhb * are met:
8278320Sjhb * 1. Redistributions of source code must retain the above copyright
9278320Sjhb *    notice, this list of conditions and the following disclaimer.
10278320Sjhb * 2. Redistributions in binary form must reproduce the above copyright
11278320Sjhb *    notice, this list of conditions and the following disclaimer in the
12278320Sjhb *    documentation and/or other materials provided with the distribution.
13278320Sjhb *
14278320Sjhb * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15278320Sjhb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16278320Sjhb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17278320Sjhb * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18278320Sjhb * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19278320Sjhb * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20278320Sjhb * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21278320Sjhb * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22278320Sjhb * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23278320Sjhb * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24278320Sjhb * SUCH DAMAGE.
25278320Sjhb *
26278320Sjhb * $FreeBSD: releng/10.3/lib/libdevctl/devctl.h 295131 2016-02-01 23:07:31Z jhb $
27278320Sjhb */
28278320Sjhb
29278320Sjhb#ifndef __DEVCTL_H__
30278320Sjhb#define	__DEVCTL_H__
31278320Sjhb
32278320Sjhb#include <stdbool.h>
33278320Sjhb
34278320Sjhbint	devctl_attach(const char *device);
35278320Sjhbint	devctl_detach(const char *device, bool force);
36278320Sjhbint	devctl_enable(const char *device);
37278320Sjhbint	devctl_disable(const char *device, bool force_detach);
38278320Sjhbint	devctl_set_driver(const char *device, const char *driver, bool force);
39278320Sjhb
40278320Sjhb#endif /* !__DEVCTL_H__ */
41