File: ataprint.h

package info (click to toggle)
smartsuite 2.1-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 228 kB
  • ctags: 379
  • sloc: ansic: 2,671; makefile: 67; sh: 59
file content (55 lines) | stat: -rw-r--r-- 1,531 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

/*
 * ataprint.c
 *
 * Copyright (C) 1999-2000 Michael Cornwell <cornwell@acm.org>
 *
 * 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.
 */

#ifndef _SMART_PRINT_H_
#define _SMART_PRINT_H_

#include <stdio.h>
#include <stdlib.h>
#include "atacmds.h"


/* Print Formart of Structures for SMART information */


/* Prints ATA Drive Information and S.M.A.R.T. Capability */

void ataPrintDriveInfo (struct hd_driveid);

void ataPrintGeneralSmartValues (struct ata_smart_values);

void ataPrintSmartThresholds (struct ata_smart_thresholds);

void ataPrintSmartErrorlog (struct ata_smart_errorlog);

void PrintSmartAttributes (struct ata_smart_values data);

void PrintSmartAttribWithThres (struct ata_smart_values data,
                                struct ata_smart_thresholds thresholds);

void ataPrintSmartSelfTestlog (struct ata_smart_selftestlog data);

void ataPsuedoCheckSmart (struct ata_smart_values , 
                          struct ata_smart_thresholds );

/* Prints Attribute Name for standard SMART attributes */
/* prints 20 character string */

void ataPrintSmartAttribName (unsigned char id);

void ataPrintMain ( int fd );

#endif