iPXE
Data Fields
san_device Struct Reference

A SAN device. More...

#include <sanboot.h>

Data Fields

struct refcnt refcnt
 Reference count. More...
 
struct list_head list
 List of SAN devices. More...
 
unsigned int drive
 Drive number. More...
 
unsigned int flags
 Flags. More...
 
struct interface command
 Command interface. More...
 
struct retry_timer timer
 Command timeout timer. More...
 
int command_rc
 Command status. More...
 
struct block_device_capacity capacity
 Raw block device capacity. More...
 
unsigned int blksize_shift
 Block size shift. More...
 
int is_cdrom
 Drive is a CD-ROM. More...
 
void * priv
 Driver private data. More...
 
unsigned int paths
 Number of paths. More...
 
struct san_pathactive
 Current active path. More...
 
struct list_head opened
 List of opened SAN paths. More...
 
struct list_head closed
 List of closed SAN paths. More...
 
struct san_path path [0]
 SAN paths. More...
 

Detailed Description

A SAN device.

Definition at line 58 of file sanboot.h.

Field Documentation

◆ refcnt

struct refcnt san_device::refcnt

Reference count.

Definition at line 60 of file sanboot.h.

Referenced by alloc_sandev(), sandev_get(), and sandev_put().

◆ list

struct list_head san_device::list

List of SAN devices.

Definition at line 62 of file sanboot.h.

Referenced by register_sandev(), sandev_find(), sandev_next(), sanpath_open(), and unregister_sandev().

◆ drive

unsigned int san_device::drive

◆ flags

unsigned int san_device::flags

Flags.

Definition at line 67 of file sanboot.h.

Referenced by register_sandev(), and sanpath_open().

◆ command

struct interface san_device::command

Command interface.

Definition at line 70 of file sanboot.h.

Referenced by alloc_sandev(), sandev_command_close(), sandev_command_read_capacity(), sandev_command_rw(), and sanpath_close().

◆ timer

struct retry_timer san_device::timer

Command timeout timer.

Definition at line 72 of file sanboot.h.

Referenced by alloc_sandev(), sandev_command(), sandev_command_close(), sandev_free(), and unregister_sandev().

◆ command_rc

int san_device::command_rc

Command status.

Definition at line 74 of file sanboot.h.

Referenced by sandev_command(), and sandev_command_close().

◆ capacity

struct block_device_capacity san_device::capacity

◆ blksize_shift

unsigned int san_device::blksize_shift

Block size shift.

To allow for emulation of CD-ROM access, this represents the left-shift required to translate from exposed logical I/O blocks to underlying blocks.

Definition at line 84 of file sanboot.h.

Referenced by efi_block_hook(), sandev_blksize(), sandev_capacity(), sandev_parse_iso9660(), and sandev_rw().

◆ is_cdrom

int san_device::is_cdrom

Drive is a CD-ROM.

Definition at line 86 of file sanboot.h.

Referenced by int13(), int13_cdrom_status_terminate(), int13_hook(), and sandev_parse_iso9660().

◆ priv

void* san_device::priv

◆ paths

unsigned int san_device::paths

Number of paths.

Definition at line 92 of file sanboot.h.

Referenced by alloc_sandev(), sandev_command(), sandev_free(), and sandev_undescribe().

◆ active

struct san_path* san_device::active

◆ opened

struct list_head san_device::opened

List of opened SAN paths.

Definition at line 96 of file sanboot.h.

Referenced by alloc_sandev(), sandev_describe(), sandev_free(), sandev_reopen(), sandev_restart(), and sanpath_open().

◆ closed

struct list_head san_device::closed

List of closed SAN paths.

Definition at line 98 of file sanboot.h.

Referenced by alloc_sandev(), sandev_describe(), sandev_reopen(), sanpath_close(), and sanpath_open().

◆ path

struct san_path san_device::path[0]

SAN paths.

Definition at line 100 of file sanboot.h.

Referenced by alloc_sandev(), sandev_free(), and sandev_undescribe().


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