smartmontools  SVN Rev 4347
Utility to control and monitor storage systems with "S.M.A.R.T."
Classes | Macros | Functions
knowndrives.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  drive_settings
 
struct  usb_dev_info
 

Macros

#define KNOWNDRIVES_H_CVSID   "$Id: knowndrives.h 4162 2015-10-31 16:36:16Z chrfranke $\n"
 

Functions

int lookup_usb_device (int vendor_id, int product_id, int bcd_device, usb_dev_info &info, usb_dev_info &info2)
 
void show_presets (const ata_identify_device *drive)
 
int showallpresets ()
 
int showmatchingpresets (const char *model, const char *firmware)
 
const drive_settingslookup_drive_apply_presets (const ata_identify_device *drive, ata_vendor_attr_defs &defs, firmwarebug_defs &firmwarebugs)
 
const char * get_drivedb_path_add ()
 
bool read_drive_database (const char *path)
 
bool init_drive_database (bool use_default_db)
 
const ata_vendor_attr_defsget_default_attr_defs ()
 

Macro Definition Documentation

#define KNOWNDRIVES_H_CVSID   "$Id: knowndrives.h 4162 2015-10-31 16:36:16Z chrfranke $\n"

Definition at line 22 of file knowndrives.h.

Function Documentation

const ata_vendor_attr_defs& get_default_attr_defs ( )

Definition at line 971 of file knowndrives.cpp.

const char* get_drivedb_path_add ( )

Definition at line 872 of file knowndrives.cpp.

bool init_drive_database ( bool  use_default_db)

Definition at line 962 of file knowndrives.cpp.

const drive_settings* lookup_drive_apply_presets ( const ata_identify_device drive,
ata_vendor_attr_defs defs,
firmwarebug_defs firmwarebugs 
)

Definition at line 562 of file knowndrives.cpp.

int lookup_usb_device ( int  vendor_id,
int  product_id,
int  bcd_device,
usb_dev_info info,
usb_dev_info info2 
)

Definition at line 292 of file knowndrives.cpp.

bool read_drive_database ( const char *  path)

Definition at line 856 of file knowndrives.cpp.

void show_presets ( const ata_identify_device drive)

Definition at line 528 of file knowndrives.cpp.

int showallpresets ( )

Definition at line 470 of file knowndrives.cpp.

int showmatchingpresets ( const char *  model,
const char *  firmware 
)

Definition at line 495 of file knowndrives.cpp.