smartmontools  SVN Rev 4057
Utility to control and monitor storage systems with "S.M.A.R.T."
Public Types | Public Member Functions | Public Attributes | List of all members
ata_cmd_in Struct Reference

ATA pass through input parameters. More...

#include <dev_interface.h>

Collaboration diagram for ata_cmd_in:
Collaboration graph
[legend]

Public Types

enum  { no_data = 0, data_in, data_out }
 

Public Member Functions

void set_data_in (void *buf, unsigned nsectors)
 Prepare for 28-bit DATA IN command. More...
 
void set_data_out (const void *buf, unsigned nsectors)
 Prepare for 28-bit DATA OUT command. More...
 
void set_data_in_48bit (void *buf, unsigned nsectors)
 Prepare for 48-bit DATA IN command. More...
 
 ata_cmd_in ()
 

Public Attributes

ata_in_regs_48bit in_regs
 Input registers. More...
 
ata_out_regs_flags out_needed
 True if output register value needed. More...
 
enum ata_cmd_in:: { ... }  direction
 I/O direction. More...
 
void * buffer
 Pointer to data buffer. More...
 
unsigned size
 Size of buffer. More...
 

Detailed Description

ATA pass through input parameters.

Definition at line 442 of file dev_interface.h.

Member Enumeration Documentation

anonymous enum
Enumerator
no_data 
data_in 
data_out 

Definition at line 446 of file dev_interface.h.

Constructor & Destructor Documentation

ata_cmd_in::ata_cmd_in ( )

Definition at line 125 of file dev_interface.cpp.

Member Function Documentation

void ata_cmd_in::set_data_in ( void *  buf,
unsigned  nsectors 
)
inline

Prepare for 28-bit DATA IN command.

Definition at line 451 of file dev_interface.h.

void ata_cmd_in::set_data_in_48bit ( void *  buf,
unsigned  nsectors 
)
inline

Prepare for 48-bit DATA IN command.

Definition at line 469 of file dev_interface.h.

void ata_cmd_in::set_data_out ( const void *  buf,
unsigned  nsectors 
)
inline

Prepare for 28-bit DATA OUT command.

Definition at line 460 of file dev_interface.h.

Member Data Documentation

void* ata_cmd_in::buffer

Pointer to data buffer.

Definition at line 447 of file dev_interface.h.

enum { ... } ata_cmd_in::direction

I/O direction.

ata_in_regs_48bit ata_cmd_in::in_regs

Input registers.

Definition at line 444 of file dev_interface.h.

ata_out_regs_flags ata_cmd_in::out_needed

True if output register value needed.

Definition at line 445 of file dev_interface.h.

unsigned ata_cmd_in::size

Size of buffer.

Definition at line 448 of file dev_interface.h.


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