资源简介
smartctl源码smartmontools,用于硬盘smart测试
代码片段和文件信息
/*
* atacmdnames.cpp
*
* This module is based on the T13/1532D Volume 1 Revision 3 (ATA/ATAPI-7)
* specification which is available from http://www.t13.org/#FTP_site
*
* Home page of code is: http://smartmontools.sourceforge.net
* Address of support mailing list: smartmontools-support@lists.sourceforge.net
*
* Copyright (C) 2003-8 Philip Williams
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 or (at your option)
* any later version.
*
* You should have received a copy of the GNU General Public License
* (for example COPYING); if not write to the Free
* Software Foundation Inc. 675 Mass Ave Cambridge MA 02139 USA.
*
*/
#include “atacmdnames.h“
#include
#include
#define COMMAND_TABLE_SIZE 256
const char *atacmdnames_c_cvsid=“$Id: atacmdnames.cppv 1.17 2008/03/29 23:41:28 shattered Exp $“ ATACMDNAMES_H_CVSID;
const char cmd_reserved[] = “[RESERVED]“;
const char cmd_vendor_specific[] = “[VENDOR SPECIFIC]“;
const char cmd_reserved_sa[] = “[RESERVED FOR SERIAL ATA]“;
const char cmd_reserved_cf[] = “[RESERVED FOR COMPACTFLASH ASSOCIATION]“;
const char cmd_reserved_mcpt[] = “[RESERVED FOR MEDIA CARD PASS THROUGH]“;
const char cmd_recalibrate_ret4[]= “RECALIBRATE [RET-4]“;
const char cmd_seek_ret4[] = “SEEK [RET-4]“;
const char *command_table[COMMAND_TABLE_SIZE] = {
/*-------------------------------------------------- 00h-0Fh -----*/
“NOP“
cmd_reserved
cmd_reserved
“CFA REQUEST EXTENDED ERROR CODE“
cmd_reserved
cmd_reserved
cmd_reserved
cmd_reserved
“DEVICE RESET“
cmd_reserved
cmd_reserved
cmd_reserved
cmd_reserved
cmd_reserved
cmd_reserved
cmd_reserved
/*-------------------------------------------------- 10h-1Fh -----*/
“RECALIBRATE [OBS-4]“
cmd_recalibrate_ret4
cmd_recalibrate_ret4
cmd_recalibrate_ret4
cmd_recalibrate_ret4
cmd_recalibrate_ret4
cmd_recalibrate_ret4
cmd_recalibrate_ret4
cmd_recalibrate_ret4
cmd_recalibrate_ret4
cmd_recalibrate_ret4
cmd_recalibrate_ret4
cmd_recalibrate_ret4
cmd_recalibrate_ret4
cmd_recalibrate_ret4
cmd_recalibrate_ret4
/*-------------------------------------------------- 20h-2Fh -----*/
“READ SECTOR(S)“
“READ SECTOR(S) [OBS-5]“
“READ LONG (w/ retry) [OBS-4]“
“READ LONG (w/o retry) [OBS-4]“
“READ SECTOR(S) EXT“
“READ DMA EXT“
“READ DMA QUEUED EXT“
“READ NATIVE MAX ADDRESS EXT“
cmd_reserved
“READ MULTIPLE EXT“
“READ STREAM DMA“
“READ STREAM PIO“
cmd_reserved
cmd_reserved
cmd_reserved
“READ LOG EXT“
/*-------------------------------------------------- 30h-3Fh -----*/
“WRITE SECTOR(S)“
“WRITE SECTOR(S) [OBS-5]“
“WRITE LONG(w/ retry) [OBS-4]“
“WRITE LONG(w/o retry) [OBS-4]“
“WRITE SECTORS(S) EXT“
“WRITE DMA EXT“
“WRITE DMA QUEUED EXT“
“SET MAX
- 上一篇:用prolog实现8数码问题
- 下一篇:基于VHDL的HDB3码源代码
相关资源
- delphi源码-实现软件注册机
- GNU/Linux系统开发者需要从桌面突破
- the_definitive_guide_to_linux_network_programm
- linux-shell脚本命令:grep命令简介
- Learning Linux Binary Analysis
- 易语言mp3播放器3源码易语言mp3播放器
- 易语言QEHashV3.0源码
- 易语言打开记事本并写入内容源码
- 易语言完美模块化3.0源码易语言报表
- 易语言凡哥记事本V1源码易语言凡哥记
- 易语言屏幕画笔v3源码易语言屏幕画笔
- 易语言拖盘图标操作例程源码
- 易语言动态随机文本加解密源码
- 易语言自定义加解密文本源码
- 易语言字符串加解密源码
- 易语言加解密文本模块源码
- 易语言文本加解密源码
- 易语言极速文本加密解密模块V3.1模块
- 易语言码表文本加解密模块源码
- 易语言加解密例程源码易语言生成随
- 易语言文本加解密例程源码
- 易语言高仿Windows记事本源码
- 易语言加密记事本简单例程源码
- 微信、QQ、TIM、QQ轻聊版防撤回软件(
- 蓝牙源代码应用于LINUX
- Borland Socket Server程序 包含D6和D7源码
-
fli
nk核心源码(追源索骥:透过源码 - Scratch源码
- E4A无障碍跨程序操作类库(带源码、
- 设备管理系统源码
评论
共有 条评论