VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/Etherboot-src/include/fs.h@ 2564

最後變更 在這個檔案從2564是 1,由 vboxsync 提交於 55 年 前

import

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 887 位元組
 
1#ifndef FS_H
2#define FS_H
3
4#include <stdint.h>
5
6//typedef uint64_t sector_t;
7
8#ifdef IDE_DISK
9int ide_probe(int drive);
10int ide_read(int drive, sector_t sector, void *buffer);
11#endif
12
13#ifdef USB_DISK
14int usb_probe(int drive);
15int usb_read(int drive, sector_t sector, void *buffer);
16#endif
17
18#define DISK_IDE 1
19#define DISK_MEM 2
20#define DISK_USB 3
21
22int devopen(const char *name, int *reopen);
23int devread(unsigned long sector, unsigned long byte_offset,
24 unsigned long byte_len, void *buf);
25
26int file_open(const char *filename);
27int file_read(void *buf, unsigned long len);
28int file_seek(unsigned long offset);
29unsigned long file_size(void);
30
31#define PARTITION_UNKNOWN 0xbad6a7
32
33#ifdef ELTORITO
34int open_eltorito_image(int part, unsigned long *start, unsigned long *length);
35#else
36# define open_eltorito_image(x,y,z) PARTITION_UNKNOWN
37#endif
38
39extern int using_devsize;
40
41#endif /* FS_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette