smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
Public Member Functions | Protected Member Functions | Private Attributes
generic_areca_device Class Reference

#include <dev_areca.h>

Collaboration diagram for generic_areca_device:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 generic_areca_device (smart_interface *intf, const char *dev_name, int disknum, int encnum=1)
 ~generic_areca_device () throw ()
virtual bool arcmsr_lock ()=0
virtual bool arcmsr_unlock ()=0
virtual int arcmsr_do_scsi_io (struct scsi_cmnd_io *iop)=0
virtual int arcmsr_command_handler (unsigned long arcmsr_cmd, unsigned char *data, int data_len)
virtual int arcmsr_ui_handler (unsigned char *areca_packet, int areca_packet_len, unsigned char *result)
virtual bool arcmsr_probe ()
virtual int arcmsr_get_dev_type ()
virtual int arcmsr_get_controller_type ()
virtual bool arcmsr_scsi_pass_through (scsi_cmnd_io *iop)
virtual bool arcmsr_ata_pass_through (const ata_cmd_in &in, ata_cmd_out &out)

Protected Member Functions

 generic_areca_device ()
void set_disknum (int disknum)
void set_encnum (int encnum)
int get_disknum ()
int get_encnum ()

Private Attributes

int m_disknum
 Disk number.
int m_encnum
 Enclosure number.

Detailed Description

Definition at line 97 of file dev_areca.h.


Constructor & Destructor Documentation

generic_areca_device::generic_areca_device ( smart_interface intf,
const char *  dev_name,
int  disknum,
int  encnum = 1 
)

Definition at line 81 of file dev_areca.cpp.

generic_areca_device::~generic_areca_device ( ) throw ()

Definition at line 89 of file dev_areca.cpp.

generic_areca_device::generic_areca_device ( ) [inline, protected]

Definition at line 121 of file dev_areca.h.


Member Function Documentation

bool generic_areca_device::arcmsr_ata_pass_through ( const ata_cmd_in in,
ata_cmd_out out 
) [virtual]

Definition at line 385 of file dev_areca.cpp.

int generic_areca_device::arcmsr_command_handler ( unsigned long  arcmsr_cmd,
unsigned char *  data,
int  data_len 
) [virtual]

Definition at line 115 of file dev_areca.cpp.

virtual int generic_areca_device::arcmsr_do_scsi_io ( struct scsi_cmnd_io iop) [pure virtual]
int generic_areca_device::arcmsr_get_controller_type ( ) [virtual]

Definition at line 334 of file dev_areca.cpp.

int generic_areca_device::arcmsr_get_dev_type ( ) [virtual]

Definition at line 350 of file dev_areca.cpp.

virtual bool generic_areca_device::arcmsr_lock ( ) [pure virtual]
bool generic_areca_device::arcmsr_probe ( ) [virtual]

Definition at line 264 of file dev_areca.cpp.

bool generic_areca_device::arcmsr_scsi_pass_through ( scsi_cmnd_io iop) [virtual]

Definition at line 537 of file dev_areca.cpp.

int generic_areca_device::arcmsr_ui_handler ( unsigned char *  areca_packet,
int  areca_packet_len,
unsigned char *  result 
) [virtual]

Definition at line 278 of file dev_areca.cpp.

virtual bool generic_areca_device::arcmsr_unlock ( ) [pure virtual]
int generic_areca_device::get_disknum ( ) [inline, protected]

Definition at line 131 of file dev_areca.h.

int generic_areca_device::get_encnum ( ) [inline, protected]

Definition at line 134 of file dev_areca.h.

void generic_areca_device::set_disknum ( int  disknum) [inline, protected]

Definition at line 125 of file dev_areca.h.

void generic_areca_device::set_encnum ( int  encnum) [inline, protected]

Definition at line 128 of file dev_areca.h.


Member Data Documentation

Disk number.

Definition at line 138 of file dev_areca.h.

Enclosure number.

Definition at line 139 of file dev_areca.h.


The documentation for this class was generated from the following files: