Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/i386/loader/main.c
Show All 32 Lines | |||||
*/ | */ | ||||
#include <stand.h> | #include <stand.h> | ||||
#include <stddef.h> | #include <stddef.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <machine/bootinfo.h> | #include <machine/bootinfo.h> | ||||
#include <machine/cpufunc.h> | #include <machine/cpufunc.h> | ||||
#include <machine/psl.h> | #include <machine/psl.h> | ||||
#include <sys/disk.h> | |||||
#include <sys/reboot.h> | #include <sys/reboot.h> | ||||
#include "bootstrap.h" | #include "bootstrap.h" | ||||
#include "common/bootargs.h" | #include "common/bootargs.h" | ||||
#include "libi386/libi386.h" | #include "libi386/libi386.h" | ||||
#include "libi386/smbios.h" | #include "libi386/smbios.h" | ||||
#include "btxv86.h" | #include "btxv86.h" | ||||
▲ Show 20 Lines • Show All 399 Lines • ▼ Show 20 Lines | i386_zfs_probe(void) | ||||
* ZFS pools from them. | * ZFS pools from them. | ||||
*/ | */ | ||||
for (unit = 0; unit < MAXBDDEV; unit++) { | for (unit = 0; unit < MAXBDDEV; unit++) { | ||||
if (bd_unit2bios(unit) == -1) | if (bd_unit2bios(unit) == -1) | ||||
break; | break; | ||||
sprintf(devname, "disk%d:", unit); | sprintf(devname, "disk%d:", unit); | ||||
zfs_probe_dev(devname, NULL); | zfs_probe_dev(devname, NULL); | ||||
} | } | ||||
} | |||||
uint64_t | |||||
ldi_get_size(void *priv) | |||||
{ | |||||
int fd = (uintptr_t) priv; | |||||
uint64_t size; | |||||
ioctl(fd, DIOCGMEDIASIZE, &size); | |||||
return (size); | |||||
} | } | ||||
#endif | #endif |