Chameleon

Chameleon Svn Source Tree

Root/tags/2.0/i386/boot2/ramdisk.h

Source at commit 1808 created 12 years 3 months ago.
By blackosx, Revise layout of package installer 'Welcome' file so it looks cleaner. Change the copyright notice to begin from 2009 as seen in the Chameleon 2.0 r431 installer. Should this date be set earlier?
1/*
2 * Supplemental ramdisk functions for the multiboot ramdisk driver
3 * Copyright 2009 Tamas Kosarszky. All rights reserved.
4 *
5 */
6
7#ifndef __BOOT_RAMDISK_H
8#define __BOOT_RAMDISK_H
9
10#define RAMDISKCONFIG_FILENAME "rd(0,0)/RAMDisk.plist"
11//#define kPostbootRamdisk
12void md0Ramdisk();
13
14typedef struct RAMDiskParam
15{
16ppnum_t base;
17unsigned int size;
18} RAMDiskParam;
19
20/* mboot.c */
21extern struct multiboot_info *gMI;
22extern int multibootRamdiskReadBytes( int biosdev, unsigned int blkno,
23 unsigned int byteoff,
24 unsigned int byteCount, void * buffer );
25extern int multiboot_get_ramdisk_info(int biosdev, struct driveInfo *dip);
26//
27
28extern BVRef gRAMDiskVolume;
29extern bool gRAMDiskBTAliased;
30
31extern void setRAMDiskBTHook(bool mode);
32extern int mountRAMDisk(const char * param);
33extern void processRAMDiskCommand(char ** argPtr, const char * cmd);
34extern int loadPrebootRAMDisk();
35
36#endif /* !__BOOT_RAMDISK_H */
37

Archive Download this file

Revision: 1808