diff options
author | marcel <marcel@FreeBSD.org> | 2010-01-14 02:48:39 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2010-01-14 02:48:39 +0000 |
commit | 47afb8a1a7c815fd4e3f38832563ee8e7bae7e89 (patch) | |
tree | 5ac0aa1deb46d7436ead499851d538d9836dfaaf /sys/ia64/include | |
parent | 109b8dd039a958ab901e77f5fbd2762657cac380 (diff) | |
download | FreeBSD-src-47afb8a1a7c815fd4e3f38832563ee8e7bae7e89.zip FreeBSD-src-47afb8a1a7c815fd4e3f38832563ee8e7bae7e89.tar.gz |
Add ioctl requests to /dev/io on ia64 for reading and writing
EFI variables. The primary reason for this is that it allows
sysinstall(8) to add a boot menu item for the newly installed
FreeBSD image.
Diffstat (limited to 'sys/ia64/include')
-rw-r--r-- | sys/ia64/include/iodev.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/ia64/include/iodev.h b/sys/ia64/include/iodev.h index 11d05fc..6d2ae19 100644 --- a/sys/ia64/include/iodev.h +++ b/sys/ia64/include/iodev.h @@ -29,6 +29,8 @@ #ifndef _MACHINE_IODEV_H_ #define _MACHINE_IODEV_H_ +#include <sys/uuid.h> + struct iodev_pio_req { u_int access; #define IODEV_PIO_READ 0 @@ -40,6 +42,22 @@ struct iodev_pio_req { #define IODEV_PIO _IOWR('I', 0, struct iodev_pio_req) +struct iodev_efivar_req { + u_int access; +#define IODEV_EFIVAR_GETVAR 0 +#define IODEV_EFIVAR_NEXTNAME 1 +#define IODEV_EFIVAR_SETVAR 2 + u_int result; /* errno value */ + size_t namesize; + u_short *name; /* UCS-2 */ + struct uuid vendor; + uint32_t attrib; + size_t datasize; + void *data; +}; + +#define IODEV_EFIVAR _IOWR('I', 1, struct iodev_efivar_req) + #ifdef _KERNEL d_open_t ioopen; |