iPXE
Data Fields
ata_command_type Struct Reference

An ATA command type. More...

Data Fields

const char * name
 Name. More...
 
size_t priv_len
 Additional working space. More...
 
uint8_t cmd_lba
 Command for non-LBA48-capable devices. More...
 
uint8_t cmd_lba48
 Command for LBA48-capable devices. More...
 
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. More...
 
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. More...
 
void(* done )(struct ata_command *atacmd, int rc)
 Handle ATA command completion. More...
 

Detailed Description

An ATA command type.

Definition at line 132 of file ata.c.

Field Documentation

◆ name

const char* ata_command_type::name

Name.

Definition at line 134 of file ata.c.

Referenced by atadev_command().

◆ priv_len

size_t ata_command_type::priv_len

Additional working space.

Definition at line 136 of file ata.c.

Referenced by atacmd_data_priv(), and atadev_read_capacity().

◆ cmd_lba

uint8_t ata_command_type::cmd_lba

Command for non-LBA48-capable devices.

Definition at line 138 of file ata.c.

◆ cmd_lba48

uint8_t ata_command_type::cmd_lba48

Command for LBA48-capable devices.

Definition at line 140 of file ata.c.

◆ data_in

void( * ata_command_type::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.

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.

◆ data_out

void( * ata_command_type::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.

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.

◆ done

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: