Changeset View
Changeset View
Standalone View
Standalone View
sbin/camcontrol/camcontrol.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 9,982 Lines • ▼ Show 20 Lines | |||||
" camcontrol zone [dev_id][generic args]<-c cmd> [-a] [-l LBA]\n" | " camcontrol zone [dev_id][generic args]<-c cmd> [-a] [-l LBA]\n" | ||||
" [-o rep_opts] [-P print_opts]\n" | " [-o rep_opts] [-P print_opts]\n" | ||||
" camcontrol epc [dev_id][generic_args]<-c cmd> [-d] [-D] [-e]\n" | " camcontrol epc [dev_id][generic_args]<-c cmd> [-d] [-D] [-e]\n" | ||||
" [-H] [-p power_cond] [-P] [-r rst_src] [-s]\n" | " [-H] [-p power_cond] [-P] [-r rst_src] [-s]\n" | ||||
" [-S power_src] [-T timer]\n" | " [-S power_src] [-T timer]\n" | ||||
" camcontrol timestamp [dev_id][generic_args] <-r [-f format|-m|-U]>|\n" | " camcontrol timestamp [dev_id][generic_args] <-r [-f format|-m|-U]>|\n" | ||||
" <-s <-f format -T time | -U >>\n" | " <-s <-f format -T time | -U >>\n" | ||||
" camcontrol devtype [dev_id]\n" | " camcontrol devtype [dev_id]\n" | ||||
" camcontrol mmcsdcmd [dev_id] [[-c mmc_opcode] [-a mmc_arg]\n" | |||||
" [-f mmc_flags] [-l data_len]\n" | |||||
" [-W [-b data_byte]]] |\n" | |||||
" [-F frequency] |\n" | |||||
" [-I]\n" | |||||
" [-1 | -4]\n" | |||||
" [-S high|normal]\n" | |||||
" \n" | " \n" | ||||
" camcontrol help\n"); | " camcontrol help\n"); | ||||
if (!printlong) | if (!printlong) | ||||
return; | return; | ||||
fprintf(stdout, | fprintf(stdout, | ||||
"Specify one of the following options:\n" | "Specify one of the following options:\n" | ||||
"devlist list all CAM devices\n" | "devlist list all CAM devices\n" | ||||
"periphlist list all CAM peripheral drivers attached to a device\n" | "periphlist list all CAM peripheral drivers attached to a device\n" | ||||
Show All 30 Lines | |||||
"security report or send ATA security commands to the named device\n" | "security report or send ATA security commands to the named device\n" | ||||
"persist send the SCSI PERSISTENT RESERVE IN or OUT commands\n" | "persist send the SCSI PERSISTENT RESERVE IN or OUT commands\n" | ||||
"attrib send the SCSI READ or WRITE ATTRIBUTE commands\n" | "attrib send the SCSI READ or WRITE ATTRIBUTE commands\n" | ||||
"opcodes send the SCSI REPORT SUPPORTED OPCODES command\n" | "opcodes send the SCSI REPORT SUPPORTED OPCODES command\n" | ||||
"zone manage Zoned Block (Shingled) devices\n" | "zone manage Zoned Block (Shingled) devices\n" | ||||
"epc send ATA Extended Power Conditions commands\n" | "epc send ATA Extended Power Conditions commands\n" | ||||
"timestamp report or set the device's timestamp\n" | "timestamp report or set the device's timestamp\n" | ||||
"devtype report the type of device\n" | "devtype report the type of device\n" | ||||
"mmcsdcmd send the given MMC command, needs -c and -a as well\n" | |||||
"help this message\n" | "help this message\n" | ||||
"Device Identifiers:\n" | "Device Identifiers:\n" | ||||
"bus:target specify the bus and target, lun defaults to 0\n" | "bus:target specify the bus and target, lun defaults to 0\n" | ||||
"bus:target:lun specify the bus, target and lun\n" | "bus:target:lun specify the bus, target and lun\n" | ||||
"deviceUNIT specify the device name, like \"da4\" or \"cd2\"\n" | "deviceUNIT specify the device name, like \"da4\" or \"cd2\"\n" | ||||
"Generic arguments:\n" | "Generic arguments:\n" | ||||
"-v be verbose, print out sense information\n" | "-v be verbose, print out sense information\n" | ||||
"-t timeout command timeout in seconds, overrides default timeout\n" | "-t timeout command timeout in seconds, overrides default timeout\n" | ||||
▲ Show 20 Lines • Show All 192 Lines • ▼ Show 20 Lines | |||||
" strftime(3) format string\n" | " strftime(3) format string\n" | ||||
"-m report the timestamp of the device as milliseconds since\n" | "-m report the timestamp of the device as milliseconds since\n" | ||||
" January 1st, 1970\n" | " January 1st, 1970\n" | ||||
"-U report the time with UTC instead of the local time zone\n" | "-U report the time with UTC instead of the local time zone\n" | ||||
"-s set the timestamp of the device\n" | "-s set the timestamp of the device\n" | ||||
"-f format the format of the time string passed into strptime(3)\n" | "-f format the format of the time string passed into strptime(3)\n" | ||||
"-T time the time value passed into strptime(3)\n" | "-T time the time value passed into strptime(3)\n" | ||||
"-U set the timestamp of the device to UTC time\n" | "-U set the timestamp of the device to UTC time\n" | ||||
"mmcsdcmd arguments:\n" | |||||
"-c mmc_cmd MMC command to send to the card\n" | |||||
"-a mmc_arg Argument for the MMC command\n" | |||||
"-f mmc_flag Flags to set for the MMC command\n" | |||||
"-l data_len Expect data_len bytes of data in reply and display them\n" | |||||
"-W Fill the data buffer before invoking the MMC command\n" | |||||
"-b data_byte One byte of data to fill the data buffer with\n" | |||||
"-F frequency Operating frequency to set on the controller\n" | |||||
"-4 Set bus width to 4 bit\n" | |||||
"-1 Set bus width to 8 bit\n" | |||||
"-S high | std Set high-speed or standard timing\n" | |||||
"-I Display various card and host controller information\n" | |||||
); | ); | ||||
} | } | ||||
int | int | ||||
main(int argc, char **argv) | main(int argc, char **argv) | ||||
{ | { | ||||
int c; | int c; | ||||
char *device = NULL; | char *device = NULL; | ||||
▲ Show 20 Lines • Show All 416 Lines • Show Last 20 Lines |