]> git.saurik.com Git - apple/xnu.git/blame - iokit/bsddev/DINetBootHook.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / iokit / bsddev / DINetBootHook.h
CommitLineData
39037602
A
1/*
2 * Copyright (c) 2002-2016 Apple Inc. All rights reserved.
3 *
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 */
28
9bccf70c
A
29/*
30 * DINetBootHook.h
31 * DiskImages
32 *
9bccf70c
A
33 * Revision History
34 *
35 * $Log: DINetBootHook.h,v $
2d21ac55
A
36 * Revision 1.4 2005/07/29 21:49:57 lindak
37 * Merge of branch "chardonnay" to pick up all chardonnay changes in Leopard
38 * as of xnu-792.7.4
39 *
0c530ab8
A
40 * Revision 1.3.1582.1 2005/06/24 01:47:25 lindak
41 * Bringing over all of the Karma changes into chardonnay.
0a7de745 42 *
0c530ab8
A
43 * Revision 1.1.1.1 2005/02/24 21:48:06 akosut
44 * Import xnu-764 from Tiger8A395
0a7de745 45 *
9bccf70c
A
46 * Revision 1.3 2002/05/22 18:50:49 aramesh
47 * Kernel API Cleanup
48 * Bug #: 2853781
49 * Changes from Josh(networking), Rick(IOKit), Jim & David(osfmk), Umesh, Dan & Ramesh(BSD)
50 * Submitted by: Ramesh
51 * Reviewed by: Vincent
0a7de745 52 *
9bccf70c
A
53 * Revision 1.2.12.1 2002/05/21 23:08:14 aramesh
54 * Kernel API Cleanup
55 * Bug #: 2853781
56 * Submitted by: Josh, Umesh, Jim, Rick and Ramesh
57 * Reviewed by: Vincent
0a7de745 58 *
9bccf70c
A
59 * Revision 1.2 2002/05/03 18:08:39 lindak
60 * Merged PR-2909558 into Jaguar (siegmund POST WWDC: add support for NetBoot
61 * over IOHDIXController)
0a7de745 62 *
9bccf70c
A
63 * Revision 1.1.2.1 2002/04/24 22:29:12 dieter
64 * Bug #: 2909558
65 * - added IOHDIXController netboot stubs
0a7de745 66 *
9bccf70c
A
67 * Revision 1.2 2002/04/14 22:56:47 han
68 * fixed up comment re dev_t
0a7de745 69 *
9bccf70c
A
70 * Revision 1.1 2002/04/13 19:22:28 han
71 * added stub file DINetBookHook.c
0a7de745 72 *
9bccf70c
A
73 *
74 */
75
76#ifndef __DINETBOOKHOOK_H__
77#define __DINETBOOKHOOK_H__
78
79#include <sys/appleapiopts.h>
80
0a7de745 81#ifdef __APPLE_API_PRIVATE
9bccf70c
A
82
83#ifdef __cplusplus
84extern "C" {
85#endif
86
87#include <sys/types.h>
88
89/*
0a7de745
A
90 * Name: di_root_image
91 * Function: mount the disk image returning the dev node
92 * Parameters: path -> path/url to disk image
93 * devname <- dev node used to set the rootdevice global variable
94 * dev_p <- combination of major/minor node
95 * Comments:
96 */
5ba3f43e 97int di_root_image(const char *path, char *devname, size_t devsz, dev_t *dev_p);
f427ee49 98int di_root_image_ext(const char *path, char *devname, size_t devsz, dev_t *dev_p, bool removable);
39037602 99void di_root_ramfile( IORegistryEntry * entry );
5ba3f43e 100int di_root_ramfile_buf(void *buf, size_t bufsz, char *devname, size_t devsz, dev_t *dev_p);
9bccf70c
A
101
102#ifdef __cplusplus
103};
104#endif
105
106#endif /* __APPLE_API_PRIVATE */
107
b0d623f7 108#endif /* __DINETBOOKHOOK_H__ */