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

ATA pass through input parameters. More...

#include <dev_interface.h>

Collaboration diagram for ata_cmd_in:
Collaboration graph
[legend]

List of all members.

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 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

Pointer to data buffer.

Definition at line 447 of file dev_interface.h.

enum { ... } ata_cmd_in::direction

I/O direction.

Input registers.

Definition at line 444 of file dev_interface.h.

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: