]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - IPXE/ipxe-3fe683e/src/arch/x86/interface/pcbios/ventoy_int13.h
Update PhyDrive.c
[Ventoy.git] / IPXE / ipxe-3fe683e / src / arch / x86 / interface / pcbios / ventoy_int13.h
1
2 #ifndef __VENTOY_INT13_H__
3 #define __VENTOY_INT13_H__
4
5 #undef for_each_sandev
6 #define for_each_sandev( sandev ) sandev = g_sandev; if (sandev)
7
8 int ventoy_vdisk_read(struct san_device*sandev, uint64_t lba, unsigned int count, unsigned long buffer);
9
10 static inline int ventoy_sandev_write ( struct san_device *sandev, uint64_t lba, unsigned int count, unsigned long buffer )
11 {
12 (void)sandev;
13 (void)lba;
14 (void)count;
15 (void)buffer;
16 DBGC(sandev, "ventoy_sandev_write\n");
17 return 0;
18 }
19
20 static inline int ventoy_sandev_reset (void *sandev)
21 {
22 (void)sandev;
23 DBGC(sandev, "ventoy_sandev_reset\n");
24 return 0;
25 }
26
27 #define sandev_reset ventoy_sandev_reset
28 #define sandev_read ventoy_vdisk_read
29 #define sandev_write ventoy_sandev_write
30
31 #undef ECANCELED
32 #define ECANCELED 0x0b
33 #undef ENODEV
34 #define ENODEV 0x2c
35 #undef ENOTSUP
36 #define ENOTSUP 0x3c
37 #undef ENOMEM
38 #define ENOMEM 0x31
39 #undef EIO
40 #define EIO 0x1d
41 #undef ENOEXEC
42 #define ENOEXEC 0x2e
43 #undef ENOSPC
44 #define ENOSPC 0x34
45
46
47 #endif /* __VENTOY_INT13_H__ */
48