资源简介
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码源代码
相关资源
- 简单实现windows下的输入法
- qt 压缩解压缩文件和文件夹源码
- GPS仿真及源码
- Linux命令大全完整版.pdf
- Linux ATM取款机简单实现附详细说明-
- 专家系统CLips案例源码
- 小黑8月份最新一系列源码免杀教程
- Arduino STM32 平衡小车之家平衡小车源码
- 2018年最新全套linux视频教程源码笔记
- STM32串口封装源码,可直接调用
- 华中科技大学计算机学院操作系统一
- linux使用规范
- 微信小程序--笑话大全--源码
- exfat_new-ARM平台驱动源码包
- MiniGUI 按键切换图片,背景图片,控件
- 财务管理系统源码
- libsigar-amd64-linux.so以及libsigar-x86-linu
- linux哲学家就餐3种方法代码实现
- 微信跑步小程序源码
- centos 7的telnet安装包.zip
- 电影购票源码
- 从零开始学微信小程序,源码+视频教
- flash as3 五子棋游戏源码
- Linux版本浙江闪讯拨号连接
- 易语言灰鸽子源码
- 微信小程序DEMO 源码程序
- 汉字笔画源码
- Linux 下多线程数字排序
- 微信树洞源码
- nginx slab内存管理精简源码及注释
评论
共有 条评论