Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/disk.h
/*- | /*- | ||||
* ---------------------------------------------------------------------------- | * ---------------------------------------------------------------------------- | ||||
* "THE BEER-WARE LICENSE" (Revision 42): | * "THE BEER-WARE LICENSE" (Revision 42): | ||||
* <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you | * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you | ||||
* can do whatever you want with this stuff. If we meet some day, and you think | * can do whatever you want with this stuff. If we meet some day, and you think | ||||
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp | * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp | ||||
* ---------------------------------------------------------------------------- | * ---------------------------------------------------------------------------- | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
* | * | ||||
*/ | */ | ||||
#ifndef _SYS_DISK_H_ | #ifndef _SYS_DISK_H_ | ||||
#define _SYS_DISK_H_ | #define _SYS_DISK_H_ | ||||
#include <sys/ioccom.h> | #include <sys/ioccom.h> | ||||
#include <sys/kerneldump.h> | |||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/disk_zone.h> | #include <sys/disk_zone.h> | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#ifndef _SYS_CONF_H_ | #ifndef _SYS_CONF_H_ | ||||
#include <sys/conf.h> /* XXX: temporary to avoid breakage */ | #include <sys/conf.h> /* XXX: temporary to avoid breakage */ | ||||
#endif | #endif | ||||
Show All 24 Lines | |||||
#define DIOCGFWHEADS _IOR('d', 131, u_int) /* Get firmware's headcount */ | #define DIOCGFWHEADS _IOR('d', 131, u_int) /* Get firmware's headcount */ | ||||
/* | /* | ||||
* Get the firmwares notion of number of heads per cylinder. This | * Get the firmwares notion of number of heads per cylinder. This | ||||
* value is mostly used for compatibility with various ill designed | * value is mostly used for compatibility with various ill designed | ||||
* disk label formats. Don't use it unless you have to. | * disk label formats. Don't use it unless you have to. | ||||
*/ | */ | ||||
#define DIOCSKERNELDUMP _IOW('d', 133, u_int) /* Set/Clear kernel dumps */ | #define DIOCSKERNELDUMP_FREEBSD11 _IOW('d', 133, u_int) | ||||
/* | /* | ||||
* Enable/Disable (the argument is boolean) the device for kernel | * Enable/Disable (the argument is boolean) the device for kernel | ||||
* core dumps. | * core dumps. | ||||
*/ | */ | ||||
#define DIOCGFRONTSTUFF _IOR('d', 134, off_t) | #define DIOCGFRONTSTUFF _IOR('d', 134, off_t) | ||||
/* | /* | ||||
* Many disk formats have some amount of space reserved at the | * Many disk formats have some amount of space reserved at the | ||||
▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | union { | ||||
char str[DISK_IDENT_SIZE]; | char str[DISK_IDENT_SIZE]; | ||||
off_t off; | off_t off; | ||||
int i; | int i; | ||||
} value; | } value; | ||||
}; | }; | ||||
#define DIOCGATTR _IOWR('d', 142, struct diocgattr_arg) | #define DIOCGATTR _IOWR('d', 142, struct diocgattr_arg) | ||||
#define DIOCZONECMD _IOWR('d', 143, struct disk_zone_args) | #define DIOCZONECMD _IOWR('d', 143, struct disk_zone_args) | ||||
struct diocskerneldump_arg { | |||||
uint8_t kda_enable; | |||||
uint8_t kda_encryption; | |||||
uint8_t kda_key[KERNELDUMP_KEY_MAX_SIZE]; | |||||
uint32_t kda_encryptedkeysize; | |||||
uint8_t *kda_encryptedkey; | |||||
}; | |||||
#define DIOCSKERNELDUMP _IOW('d', 144, struct diocskerneldump_arg) | |||||
/* | |||||
* Enable/Disable the device for kernel core dumps. | |||||
*/ | |||||
#endif /* _SYS_DISK_H_ */ | #endif /* _SYS_DISK_H_ */ |