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 29 /* 30 * DINetBootHook.h 31 * DiskImages 32 * 33 * Revision History 34 * 35 * $Log: DINetBootHook.h,v $ 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 * 40 * Revision 1.3.1582.1 2005/06/24 01:47:25 lindak 41 * Bringing over all of the Karma changes into chardonnay. 42 * 43 * Revision 1.1.1.1 2005/02/24 21:48:06 akosut 44 * Import xnu-764 from Tiger8A395 45 * 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 52 * 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 58 * 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) 62 * 63 * Revision 1.1.2.1 2002/04/24 22:29:12 dieter 64 * Bug #: 2909558 65 * - added IOHDIXController netboot stubs 66 * 67 * Revision 1.2 2002/04/14 22:56:47 han 68 * fixed up comment re dev_t 69 * 70 * Revision 1.1 2002/04/13 19:22:28 han 71 * added stub file DINetBookHook.c 72 * 73 * 74 */ 75 76 #ifndef __DINETBOOKHOOK_H__ 77 #define __DINETBOOKHOOK_H__ 78 79 #include <sys/appleapiopts.h> 80 81 #ifdef __APPLE_API_PRIVATE 82 83 #ifdef __cplusplus 84 extern "C" { 85 #endif 86 87 #include <sys/types.h> 88 89 /* 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 */ 97 int di_root_image(const char *path, char *devname, size_t devsz, dev_t *dev_p); 98 int di_root_image_ext(const char *path, char *devname, size_t devsz, dev_t *dev_p, bool removable); 99 void di_root_ramfile( IORegistryEntry * entry ); 100 int di_root_ramfile_buf(void *buf, size_t bufsz, char *devname, size_t devsz, dev_t *dev_p); 101 102 #ifdef __cplusplus 103 }; 104 #endif 105 106 #endif /* __APPLE_API_PRIVATE */ 107 108 #endif /* __DINETBOOKHOOK_H__ */ 109