#include <linux/types.h>
Go to the source code of this file.
|
enum | {
ATA_OP_CHECKPOWERMODE1 = 0xe5,
ATA_OP_CHECKPOWERMODE2 = 0x98,
ATA_OP_DOORLOCK = 0xde,
ATA_OP_DOORUNLOCK = 0xdf,
ATA_OP_FLUSHCACHE = 0xe7,
ATA_OP_IDENTIFY = 0xec,
ATA_OP_PIDENTIFY = 0xa1,
ATA_OP_SECURITY_DISABLE = 0xf6,
ATA_OP_SECURITY_ERASE_PREPARE = 0xf3,
ATA_OP_SECURITY_ERASE_UNIT = 0xf4,
ATA_OP_SECURITY_FREEZE_LOCK = 0xf5,
ATA_OP_SECURITY_SET_PASS = 0xf1,
ATA_OP_SECURITY_UNLOCK = 0xf2,
ATA_OP_SETFEATURES = 0xef,
ATA_OP_SETIDLE1 = 0xe3,
ATA_OP_SETIDLE2 = 0x97,
ATA_OP_SLEEPNOW1 = 0xe5,
ATA_OP_SLEEPNOW2 = 0x99,
ATA_OP_SMART = 0xb0,
ATA_OP_STANDBYNOW1 = 0xe0,
ATA_OP_STANDBYNOW2 = 0x94
} |
|
enum | {
HDIO_DRIVE_CMD = 0x031f,
HDIO_DRIVE_RESET = 0x031c,
HDIO_DRIVE_TASK = 0x031e,
HDIO_DRIVE_TASKFILE = 0x031d,
HDIO_GETGEO = 0x0301,
HDIO_GETGEO_BIG = 0x0330,
HDIO_GET_32BIT = 0x0309,
HDIO_GET_ACOUSTIC = 0x030f,
HDIO_GET_BUSSTATE = 0x031a,
HDIO_GET_DMA = 0x030b,
HDIO_GET_IDENTITY = 0x030d,
HDIO_GET_KEEPSETTINGS = 0x0308,
HDIO_GET_MULTCOUNT = 0x0304,
HDIO_GET_NOWERR = 0x030a,
HDIO_GET_QDMA = 0x0305,
HDIO_GET_UNMASKINTR = 0x0302,
HDIO_OBSOLETE_IDENTITY = 0x0307,
HDIO_SCAN_HWIF = 0x0328,
HDIO_SET_32BIT = 0x0324,
HDIO_SET_ACOUSTIC = 0x032c,
HDIO_SET_BUSSTATE = 0x032d,
HDIO_SET_DMA = 0x0326,
HDIO_SET_KEEPSETTINGS = 0x0323,
HDIO_SET_MULTCOUNT = 0x0321,
HDIO_SET_NOWERR = 0x0325,
HDIO_SET_PIO_MODE = 0x0327,
HDIO_SET_QDMA = 0x032e,
HDIO_SET_UNMASKINTR = 0x0322,
HDIO_SET_WCACHE = 0x032b,
HDIO_TRISTATE_HWIF = 0x031b,
HDIO_UNREGISTER_HWIF = 0x032a,
CDROM__SPEED = 0x5322
} |
|
enum | {
TASKFILE_CMD_REQ_NODATA = 0,
TASKFILE_CMD_REQ_IN = 2,
TASKFILE_CMD_REQ_OUT = 3,
TASKFILE_XFER_METHOD_NONE = 0,
TASKFILE_XFER_METHOD_PIO_IN = 1,
TASKFILE_XFER_METHOD_PIO_OUT = 4
} |
|
|
compiler advice feature *void | identify (__u16 *id_supplied) |
|
void | usage_error (int out) __attribute__((noreturn)) |
|
int | main (int argc, char **argv) __attribute__((noreturn)) |
|
void | flush_buffer_cache (int fd) |
|
int | seek_to_zero (int fd) |
|
int | read_big_block (int fd, char *buf) |
|
void | time_cache (int fd) |
|
void | time_device (int fd) |
|
void | no_scsi (void) |
|
void | no_xt (void) |
|
void | process_dev (char *devname) |
|
void | tf_init (struct ata_tf *tf, __u8 ata_op, __u64 lba, unsigned int nsect) |
|
__u64 | tf_to_lba (struct ata_tf *tf) |
|
int | sg16 (int fd, int rw, struct ata_tf *tf, void *data, unsigned int data_bytes, unsigned int timeout_secs) |
|
int | do_drive_cmd (int fd, unsigned char *args) |
|
int | do_taskfile_cmd (int fd, struct hdio_taskfile *r, unsigned int timeout_secs) |
|
int | dev_has_sgio (int fd) |
|
◆ __attribute__
#define __attribute__ |
( |
|
x | ) |
|
◆ anonymous enum
Enumerator |
---|
ATA_OP_CHECKPOWERMODE1 | |
ATA_OP_CHECKPOWERMODE2 | |
ATA_OP_DOORLOCK | |
ATA_OP_DOORUNLOCK | |
ATA_OP_FLUSHCACHE | |
ATA_OP_IDENTIFY | |
ATA_OP_PIDENTIFY | |
ATA_OP_SECURITY_DISABLE | |
ATA_OP_SECURITY_ERASE_PREPARE | |
ATA_OP_SECURITY_ERASE_UNIT | |
ATA_OP_SECURITY_FREEZE_LOCK | |
ATA_OP_SECURITY_SET_PASS | |
ATA_OP_SECURITY_UNLOCK | |
ATA_OP_SETFEATURES | |
ATA_OP_SETIDLE1 | |
ATA_OP_SETIDLE2 | |
ATA_OP_SLEEPNOW1 | |
ATA_OP_SLEEPNOW2 | |
ATA_OP_SMART | |
ATA_OP_STANDBYNOW1 | |
ATA_OP_STANDBYNOW2 | |
◆ anonymous enum
Enumerator |
---|
HDIO_DRIVE_CMD | |
HDIO_DRIVE_RESET | |
HDIO_DRIVE_TASK | |
HDIO_DRIVE_TASKFILE | |
HDIO_GETGEO | |
HDIO_GETGEO_BIG | |
HDIO_GET_32BIT | |
HDIO_GET_ACOUSTIC | |
HDIO_GET_BUSSTATE | |
HDIO_GET_DMA | |
HDIO_GET_IDENTITY | |
HDIO_GET_KEEPSETTINGS | |
HDIO_GET_MULTCOUNT | |
HDIO_GET_NOWERR | |
HDIO_GET_QDMA | |
HDIO_GET_UNMASKINTR | |
HDIO_OBSOLETE_IDENTITY | |
HDIO_SCAN_HWIF | |
HDIO_SET_32BIT | |
HDIO_SET_ACOUSTIC | |
HDIO_SET_BUSSTATE | |
HDIO_SET_DMA | |
HDIO_SET_KEEPSETTINGS | |
HDIO_SET_MULTCOUNT | |
HDIO_SET_NOWERR | |
HDIO_SET_PIO_MODE | |
HDIO_SET_QDMA | |
HDIO_SET_UNMASKINTR | |
HDIO_SET_WCACHE | |
HDIO_TRISTATE_HWIF | |
HDIO_UNREGISTER_HWIF | |
CDROM__SPEED | |
◆ anonymous enum
Enumerator |
---|
TASKFILE_CMD_REQ_NODATA | |
TASKFILE_CMD_REQ_IN | |
TASKFILE_CMD_REQ_OUT | |
TASKFILE_XFER_METHOD_NONE | |
TASKFILE_XFER_METHOD_PIO_IN | |
TASKFILE_XFER_METHOD_PIO_OUT | |
◆ dev_has_sgio()
int dev_has_sgio |
( |
int |
fd | ) |
|
◆ do_drive_cmd()
int do_drive_cmd |
( |
int |
fd, |
|
|
unsigned char * |
args |
|
) |
| |
◆ do_taskfile_cmd()
int do_taskfile_cmd |
( |
int |
fd, |
|
|
struct hdio_taskfile * |
r, |
|
|
unsigned int |
timeout_secs |
|
) |
| |
◆ flush_buffer_cache()
void flush_buffer_cache |
( |
int |
fd | ) |
|
◆ identify()
compiler advice feature* void identify |
( |
__u16 * |
id_supplied | ) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ no_scsi()
◆ no_xt()
◆ process_dev()
void process_dev |
( |
char * |
devname | ) |
|
◆ read_big_block()
int read_big_block |
( |
int |
fd, |
|
|
char * |
buf |
|
) |
| |
◆ seek_to_zero()
int seek_to_zero |
( |
int |
fd | ) |
|
◆ sg16()
int sg16 |
( |
int |
fd, |
|
|
int |
rw, |
|
|
struct ata_tf * |
tf, |
|
|
void * |
data, |
|
|
unsigned int |
data_bytes, |
|
|
unsigned int |
timeout_secs |
|
) |
| |
◆ tf_init()
void tf_init |
( |
struct ata_tf * |
tf, |
|
|
__u8 |
ata_op, |
|
|
__u64 |
lba, |
|
|
unsigned int |
nsect |
|
) |
| |
◆ tf_to_lba()
◆ time_cache()
void time_cache |
( |
int |
fd | ) |
|
◆ time_device()
void time_device |
( |
int |
fd | ) |
|
◆ usage_error()
void usage_error |
( |
int |
out | ) |
|