libhd  5.0
edd.h
Go to the documentation of this file.
1 #if defined(__i386__) || defined(__x86_64__)
2 void hd_scan_sysfs_edd(hd_data_t *hd_data);
3 unsigned edd_disk_signature(hd_t *hd);
4 void assign_edd_info(hd_data_t *hd_data);
5 #endif
edd_info_t::sysfs_id
char * sysfs_id
Definition: hd.h:1502
edd_info_t::assigned
unsigned assigned
Definition: hd.h:1498
s_hd_t::base_class
hd_id_t base_class
Base class (id and name).
Definition: hd.h:2231
edd_info_t::legacy
struct edd_info_t::@9 legacy
mod_edd
@ mod_edd
Definition: hd_int.h:79
pr_edd
@ pr_edd
Definition: hd.h:119
edd_info_t::cyls
unsigned cyls
Definition: hd.h:1489
hd_data_t::hd
hd_t * hd
Current hardware list.
Definition: hd.h:2610
s_str_list_t::search_str_list
str_list_t * search_str_list(str_list_t *sl, char *str)
Definition: hd.c:2464
remove_hd_entries
void remove_hd_entries(hd_data_t *hd_data)
Definition: hd.c:2711
s_hd_t::serial
char * serial
Serial id.
Definition: hd.h:2287
canon_str
char * canon_str(char *s, int len)
Definition: hd.c:2191
edd_info_t::sectors
uint64_t sectors
Definition: hd.h:1487
bios_info_t::lba_support
unsigned lba_support
Definition: hd.h:1348
read_dir
str_list_t * read_dir(char *dir_name, int type)
Definition: hd.c:2576
PROGRESS
#define PROGRESS(a, b, c)
Definition: hd_int.h:61
edd_info_t::heads
unsigned heads
Definition: hd.h:1489
hd_detail_t::type
enum hd_detail_type type
Definition: hd.h:2142
hd_detail_bios
@ hd_detail_bios
Definition: hd.h:2065
s_str_list_t::next
struct s_str_list_t * next
Link to next member.
Definition: hd.h:407
sc_sdev_disk
@ sc_sdev_disk
Definition: hd.h:233
edd_info_t::ext_fibre
unsigned ext_fibre
Definition: hd.h:1500
edd_info_t
enhanced disk data (cf.
Definition: hd.h:1486
s_hd_t::unix_dev_name
char * unix_dev_name
Special device file.
Definition: hd.h:2348
s_hd_t::unix_dev_names
str_list_t * unix_dev_names
List of device names.
Definition: hd.h:2361
s_hd_t
Individual hardware item.
Definition: hd.h:2196
edd_info_t::signature
unsigned signature
Definition: hd.h:1504
s_hd_t::rom_id
char * rom_id
BIOS/PROM id.
Definition: hd.h:2382
u_hd_res_t
libhd resource union
Definition: hd.h:1822
pr_edd_mod
@ pr_edd_mod
Definition: hd.h:119
edd_info_t::ext_lock_eject
unsigned ext_lock_eject
Definition: hd.h:1495
hd_detail_bios_t::data
bios_info_t * data
Definition: hd.h:2097
s_hd_t::next
struct s_hd_t * next
Link to next hardware item.
Definition: hd.h:2197
hd_data_t::flag_struct::edd_used
unsigned edd_used
internal: edd info has been used
Definition: hd.h:2655
s_str_list_t::free_str_list
str_list_t * free_str_list(str_list_t *list)
Definition: hd.c:2493
hddb.h
res_any_t::type
enum resource_types type
Definition: hd.h:1683
get_sysfs_attr_by_path2
char * get_sysfs_attr_by_path2(const char *path, const char *attr, unsigned *len)
Definition: hd.c:6062
u_hd_res_t::next
union u_hd_res_t * next
Definition: hd.h:1823
hd_data_t::module
unsigned module
(Internal) the current probing module we are in
Definition: hd.h:2681
ADD2LOG
#define ADD2LOG(a...)
Definition: hd_int.h:62
s_str_list_t
String list type.
Definition: hd.h:406
load_module
int load_module(hd_data_t *hd_data, char *module)
Definition: hd.c:3859
s_hd_t::detail
hd_detail_t * detail
Special info associated with this hardware.
Definition: hd.h:2433
hd_data_t::flags
struct hd_data_t::flag_struct flags
edd_info_t::ext_fixed_disk
unsigned ext_fixed_disk
Definition: hd.h:1494
hd_probe_feature
int hd_probe_feature(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:579
bc_storage_device
@ bc_storage_device
Definition: hd.h:165
hd_id_t::id
unsigned id
Numeric id.
Definition: hd.h:397
hd.h
u64
#define u64
Definition: hd.c:51
edd_info_t::ext_edd
unsigned ext_edd
Definition: hd.h:1496
hd_attr_uint
int hd_attr_uint(char *attr, uint64_t *u, int base)
Definition: hd.c:5955
s_hd_t::res
hd_res_t * res
Device resources.
Definition: hd.h:2427
s_hd_t::sub_class
hd_id_t sub_class
Sub class (id and name).
Definition: hd.h:2236
hd_int.h
hd_attr_list
str_list_t * hd_attr_list(char *str)
Definition: hd.c:5973
edd.h
edd_info_t::valid
unsigned valid
Definition: hd.h:1499
hd_data_t::edd
edd_info_t edd[0x80]
(Internal) enhanced disk drive data
Definition: hd.h:2731
hd_data
static hd_data_t * hd_data
Definition: pppoe.c:29
str_printf
void str_printf(char **buf, int offset, char *format,...)
Definition: hd.c:2401
res_size_t::unit
enum size_units unit
Definition: hd.h:1729
hd_read_sysfs_link
char * hd_read_sysfs_link(char *base_dir, char *link_name)
Definition: hd.c:2631
bios_info_t
bios data (ix86)
Definition: hd.h:1333
res_size_t::val1
uint64_t val1
Definition: hd.h:1730
edd_info_t::ext_64bit
unsigned ext_64bit
Definition: hd.h:1497
size_unit_sectors
@ size_unit_sectors
Definition: hd.h:1645
edd_info_t::ext_net
unsigned ext_net
Definition: hd.h:1501
sc_int_bios
@ sc_int_bios
Definition: hd.h:222
hd_data_t
Holds all data accumulated during hardware probing.
Definition: hd.h:2604
res_size
@ res_size
Definition: hd.h:1636
edd_info_t::edd
struct edd_info_t::@8 edd
u_hd_res_t::any
res_any_t any
Definition: hd.h:1824
s_str_list_t::str
char * str
Some string data.
Definition: hd.h:408
free_mem
void * free_mem(void *p)
Definition: hd.c:1594
u_hd_res_t::size
res_size_t size
Definition: hd.h:1830
hd_detail_t::bios
hd_detail_bios_t bios
Definition: hd.h:2148
bc_internal
@ bc_internal
Definition: hd.h:164
get_sysfs_attr_by_path
char * get_sysfs_attr_by_path(const char *path, const char *attr)
Definition: hd.c:6053
s_hd_t::block0
unsigned char * block0
(Internal) First 512 bytes of block devices.
Definition: hd.h:2522