smartmontools SVN Rev 5640
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.
 
void set_data_out (const void *buf, unsigned nsectors)
 Prepare for 28-bit DATA OUT command.
 
void set_data_in_48bit (void *buf, unsigned nsectors)
 Prepare for 48-bit DATA IN command.
 
 ata_cmd_in ()
 

Public Attributes

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

Detailed Description

ATA pass through input parameters.

Definition at line 465 of file dev_interface.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
no_data 
data_in 
data_out 

Definition at line 469 of file dev_interface.h.

Constructor & Destructor Documentation

◆ ata_cmd_in()

ata_cmd_in::ata_cmd_in ( )

Definition at line 124 of file dev_interface.cpp.

Member Function Documentation

◆ set_data_in()

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

Prepare for 28-bit DATA IN command.

Definition at line 474 of file dev_interface.h.

◆ set_data_in_48bit()

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

Prepare for 48-bit DATA IN command.

Definition at line 492 of file dev_interface.h.

◆ set_data_out()

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

Prepare for 28-bit DATA OUT command.

Definition at line 483 of file dev_interface.h.

Member Data Documentation

◆ buffer

void* ata_cmd_in::buffer

Pointer to data buffer.

Definition at line 470 of file dev_interface.h.

◆ 

enum { ... } ata_cmd_in::direction

I/O direction.

◆ in_regs

ata_in_regs_48bit ata_cmd_in::in_regs

Input registers.

Definition at line 467 of file dev_interface.h.

◆ out_needed

ata_out_regs_flags ata_cmd_in::out_needed

True if output register value needed.

Definition at line 468 of file dev_interface.h.

◆ size

unsigned ata_cmd_in::size

Size of buffer.

Definition at line 471 of file dev_interface.h.


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