iPXE
Data Fields
ata_command_type Struct Reference

An ATA command type. More...

Data Fields

const char * name
 Name.
size_t priv_len
 Additional working space.
uint8_t cmd_lba
 Command for non-LBA48-capable devices.
uint8_t cmd_lba48
 Command for LBA48-capable devices.
void(* data_in )(struct ata_command *atacmd, userptr_t buffer, size_t len, userptr_t *data_in, size_t *data_in_len)
 Calculate data-in buffer.
void(* data_out )(struct ata_command *atacmd, userptr_t buffer, size_t len, userptr_t *data_out, size_t *data_out_len)
 Calculate data-out buffer.
void(* done )(struct ata_command *atacmd, int rc)
 Handle ATA command completion.

Detailed Description

An ATA command type.

Definition at line 132 of file ata.c.


Field Documentation

Name.

Definition at line 134 of file ata.c.

Referenced by atadev_command().

Additional working space.

Definition at line 136 of file ata.c.

Referenced by atacmd_data_priv(), atadev_command(), and atadev_read_capacity().

Command for non-LBA48-capable devices.

Definition at line 138 of file ata.c.

Referenced by atadev_command().

Command for LBA48-capable devices.

Definition at line 140 of file ata.c.

Referenced by atadev_command().

Calculate data-in buffer.

Parameters:
atacmdATA command
bufferAvailable buffer
lenAvailable buffer length
Return values:
data_inData-in buffer
data_in_lenData-in buffer length

Definition at line 150 of file ata.c.

Referenced by atadev_command().

Calculate data-out buffer.

Parameters:
atacmdATA command
bufferAvailable buffer
lenAvailable buffer length
Return values:
data_outData-out buffer
data_out_lenData-out buffer length

Definition at line 163 of file ata.c.

Referenced by atadev_command().

void( * ata_command_type::done)(struct ata_command *atacmd, int rc)

Handle ATA command completion.

Parameters:
atacmdATA command
rcReason for completion

Definition at line 172 of file ata.c.

Referenced by atacmd_done().


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