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:1507
edd_info_t::assigned
unsigned assigned
Definition: hd.h:1503
s_hd_t::base_class
hd_id_t base_class
Base class (id and name).
Definition: hd.h:2236
edd_info_t::legacy
struct edd_info_t::@9 legacy
mod_edd
@ mod_edd
Definition: hd_int.h:83
pr_edd
@ pr_edd
Definition: hd.h:122
edd_info_t::cyls
unsigned cyls
Definition: hd.h:1494
hd_data_t::hd
hd_t * hd
Current hardware list.
Definition: hd.h:2615
s_str_list_t::search_str_list
str_list_t * search_str_list(str_list_t *sl, char *str)
Definition: hd.c:2489
remove_hd_entries
void remove_hd_entries(hd_data_t *hd_data)
Definition: hd.c:2736
s_hd_t::serial
char * serial
Serial id.
Definition: hd.h:2292
canon_str
char * canon_str(char *s, int len)
Definition: hd.c:2216
edd_info_t::sectors
uint64_t sectors
Definition: hd.h:1492
bios_info_t::lba_support
unsigned lba_support
Definition: hd.h:1352
read_dir
str_list_t * read_dir(char *dir_name, int type)
Definition: hd.c:2601
PROGRESS
#define PROGRESS(a, b, c)
Definition: hd_int.h:65
edd_info_t::heads
unsigned heads
Definition: hd.h:1494
hd_detail_t::type
enum hd_detail_type type
Definition: hd.h:2147
hd_detail_bios
@ hd_detail_bios
Definition: hd.h:2070
s_str_list_t::next
struct s_str_list_t * next
Link to next member.
Definition: hd.h:411
sc_sdev_disk
@ sc_sdev_disk
Definition: hd.h:237
edd_info_t::ext_fibre
unsigned ext_fibre
Definition: hd.h:1505
edd_info_t
enhanced disk data (cf.
Definition: hd.h:1491
s_hd_t::unix_dev_name
char * unix_dev_name
Special device file.
Definition: hd.h:2353
s_hd_t::unix_dev_names
str_list_t * unix_dev_names
List of device names.
Definition: hd.h:2366
s_hd_t
Individual hardware item.
Definition: hd.h:2201
edd_info_t::signature
unsigned signature
Definition: hd.h:1509
s_hd_t::rom_id
char * rom_id
BIOS/PROM id.
Definition: hd.h:2387
u_hd_res_t
libhd resource union
Definition: hd.h:1827
pr_edd_mod
@ pr_edd_mod
Definition: hd.h:122
edd_info_t::ext_lock_eject
unsigned ext_lock_eject
Definition: hd.h:1500
hd_detail_bios_t::data
bios_info_t * data
Definition: hd.h:2102
s_hd_t::next
struct s_hd_t * next
Link to next hardware item.
Definition: hd.h:2202
hd_data_t::flag_struct::edd_used
unsigned edd_used
internal: edd info has been used
Definition: hd.h:2660
s_str_list_t::free_str_list
str_list_t * free_str_list(str_list_t *list)
Definition: hd.c:2518
hddb.h
res_any_t::type
enum resource_types type
Definition: hd.h:1688
get_sysfs_attr_by_path2
char * get_sysfs_attr_by_path2(const char *path, const char *attr, unsigned *len)
Definition: hd.c:6115
u_hd_res_t::next
union u_hd_res_t * next
Definition: hd.h:1828
hd_data_t::module
unsigned module
(Internal) the current probing module we are in
Definition: hd.h:2686
ADD2LOG
#define ADD2LOG(a...)
Definition: hd_int.h:66
s_str_list_t
String list type.
Definition: hd.h:410
load_module
int load_module(hd_data_t *hd_data, char *module)
Definition: hd.c:3886
s_hd_t::detail
hd_detail_t * detail
Special info associated with this hardware.
Definition: hd.h:2438
hd_data_t::flags
struct hd_data_t::flag_struct flags
edd_info_t::ext_fixed_disk
unsigned ext_fixed_disk
Definition: hd.h:1499
hd_probe_feature
int hd_probe_feature(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:603
bc_storage_device
@ bc_storage_device
Definition: hd.h:168
hd_id_t::id
unsigned id
Numeric id.
Definition: hd.h:401
hd.h
u64
#define u64
Definition: hd.c:51
edd_info_t::ext_edd
unsigned ext_edd
Definition: hd.h:1501
hd_attr_uint
int hd_attr_uint(char *attr, uint64_t *u, int base)
Definition: hd.c:6008
s_hd_t::res
hd_res_t * res
Device resources.
Definition: hd.h:2432
s_hd_t::sub_class
hd_id_t sub_class
Sub class (id and name).
Definition: hd.h:2241
hd_int.h
hd_attr_list
str_list_t * hd_attr_list(char *str)
Definition: hd.c:6026
edd.h
edd_info_t::valid
unsigned valid
Definition: hd.h:1504
hd_data_t::edd
edd_info_t edd[0x80]
(Internal) enhanced disk drive data
Definition: hd.h:2736
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:2426
res_size_t::unit
enum size_units unit
Definition: hd.h:1734
hd_read_sysfs_link
char * hd_read_sysfs_link(char *base_dir, char *link_name)
Definition: hd.c:2656
bios_info_t
bios data (ix86)
Definition: hd.h:1337
res_size_t::val1
uint64_t val1
Definition: hd.h:1735
edd_info_t::ext_64bit
unsigned ext_64bit
Definition: hd.h:1502
size_unit_sectors
@ size_unit_sectors
Definition: hd.h:1650
edd_info_t::ext_net
unsigned ext_net
Definition: hd.h:1506
sc_int_bios
@ sc_int_bios
Definition: hd.h:226
hd_data_t
Holds all data accumulated during hardware probing.
Definition: hd.h:2609
res_size
@ res_size
Definition: hd.h:1641
edd_info_t::edd
struct edd_info_t::@8 edd
u_hd_res_t::any
res_any_t any
Definition: hd.h:1829
s_str_list_t::str
char * str
Some string data.
Definition: hd.h:412
free_mem
void * free_mem(void *p)
Definition: hd.c:1619
u_hd_res_t::size
res_size_t size
Definition: hd.h:1835
hd_detail_t::bios
hd_detail_bios_t bios
Definition: hd.h:2153
bc_internal
@ bc_internal
Definition: hd.h:167
get_sysfs_attr_by_path
char * get_sysfs_attr_by_path(const char *path, const char *attr)
Definition: hd.c:6106
s_hd_t::block0
unsigned char * block0
(Internal) First 512 bytes of block devices.
Definition: hd.h:2527