Deleted Added
full compact
acpi_machdep.c (179726) acpi_machdep.c (183381)
1/*-
2 * Copyright (c) 2001 Mitsuru IWASAKI
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 Mitsuru IWASAKI
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/i386/acpica/acpi_machdep.c 179726 2008-06-11 18:55:19Z ed $");
28__FBSDID("$FreeBSD: head/sys/i386/acpica/acpi_machdep.c 183381 2008-09-26 14:19:52Z ed $");
29
30#include <sys/param.h>
31#include <sys/bus.h>
32#include <sys/condvar.h>
33#include <sys/conf.h>
34#include <sys/fcntl.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>

--- 193 unchanged lines hidden (view full) ---

230 ctl_dev = FALSE;
231 else
232 return;
233
234 /* Always create a new device and unit number. */
235 unit = -1;
236 if (clone_create(&apm_clones, &apm_cdevsw, &unit, dev, 0)) {
237 if (ctl_dev) {
29
30#include <sys/param.h>
31#include <sys/bus.h>
32#include <sys/condvar.h>
33#include <sys/conf.h>
34#include <sys/fcntl.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>

--- 193 unchanged lines hidden (view full) ---

230 ctl_dev = FALSE;
231 else
232 return;
233
234 /* Always create a new device and unit number. */
235 unit = -1;
236 if (clone_create(&apm_clones, &apm_cdevsw, &unit, dev, 0)) {
237 if (ctl_dev) {
238 *dev = make_dev(&apm_cdevsw, unit2minor(unit),
238 *dev = make_dev(&apm_cdevsw, unit,
239 UID_ROOT, GID_OPERATOR, 0660, "apmctl%d", unit);
240 } else {
239 UID_ROOT, GID_OPERATOR, 0660, "apmctl%d", unit);
240 } else {
241 *dev = make_dev(&apm_cdevsw, unit2minor(unit),
241 *dev = make_dev(&apm_cdevsw, unit,
242 UID_ROOT, GID_OPERATOR, 0664, "apm%d", unit);
243 }
244 if (*dev != NULL) {
245 dev_ref(*dev);
246 (*dev)->si_flags |= SI_CHEAPCLONE;
247 }
248 }
249}

--- 345 unchanged lines hidden ---
242 UID_ROOT, GID_OPERATOR, 0664, "apm%d", unit);
243 }
244 if (*dev != NULL) {
245 dev_ref(*dev);
246 (*dev)->si_flags |= SI_CHEAPCLONE;
247 }
248 }
249}

--- 345 unchanged lines hidden ---