libhd  5.0
hal.h
Go to the documentation of this file.
hd_pci_read_data
void hd_pci_read_data(hd_data_t *hd_data)
Definition: pci.c:124
read_file
str_list_t * read_file(char *file_name, unsigned start_line, unsigned lines)
Definition: hd.c:2527
hal_get_bool
hal_prop_t * hal_get_bool(hal_prop_t *prop, const char *key)
Definition: hal.c:289
s_hd_t::unix_dev_name2
char * unix_dev_name2
Special device file.
Definition: hd.h:2369
s_hd_t::prog_if
hd_id_t prog_if
(PCI) programming interface (id and name).
Definition: hd.h:2241
hal_invalidate_all
void hal_invalidate_all(hal_prop_t *prop, const char *key)
Definition: hal.c:271
s_hd_t::base_class
hd_id_t base_class
Base class (id and name).
Definition: hd.h:2231
p_invalid
@ p_invalid
Definition: hd.h:1599
p_string
@ p_string
Definition: hd.h:1599
hal_prop_s::int32
int32_t int32
Definition: hd.h:1612
hal_match_str
static int hal_match_str(hal_prop_t *prop, const char *key, const char *val)
Definition: hal.c:332
hal_prop_s::next
struct hal_prop_s * next
Definition: hd.h:1607
hd_data_t::hd
hd_t * hd
Current hardware list.
Definition: hd.h:2610
add_pci
static void add_pci(hd_data_t *hd_data)
Definition: hal.c:358
find_udi
static void find_udi(hd_data_t *hd_data, hd_t *hd, int match)
Definition: hal.c:725
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
hal_prop_s::b
int b
Definition: hd.h:1615
hal_prop_s::list
str_list_t * list
Definition: hd.h:1616
hal.h
s_pci_t::next
struct s_pci_t * next
linked list
Definition: hd.h:1028
new_str
char * new_str(const char *s)
Definition: hd.c:1577
PROGRESS
#define PROGRESS(a, b, c)
Definition: hd_int.h:61
hd_detail_t::type
enum hd_detail_type type
Definition: hd.h:2142
hd_split
str_list_t * hd_split(char del, const char *str)
Definition: hd.c:5122
s_str_list_t::next
struct s_str_list_t * next
Link to next member.
Definition: hd.h:407
hal_device_s::udi
char * udi
Definition: hd.h:1626
s_hd_t::drivers
str_list_t * drivers
List of currently active drivers.
Definition: hd.h:2537
hal_prop_s::type
hal_prop_type_t type
Definition: hd.h:1608
skip_non_eq_or_space
static char * skip_non_eq_or_space(char *s)
Definition: hal.c:615
check_udi
static int check_udi(const char *udi)
Definition: hal.c:488
parse_property
static void parse_property(hal_prop_t *prop, char *str)
Definition: hal.c:631
hal_device_s::prop
hal_prop_t * prop
Definition: hd.h:1628
hd_detail_pci
@ hd_detail_pci
Definition: hd.h:2064
mod_hal
@ mod_hal
Definition: hd_int.h:79
s_hd_t::unix_dev_name
char * unix_dev_name
Special device file.
Definition: hd.h:2348
hd_scan_hal
void hd_scan_hal(hd_data_t *hd_data)
Definition: hal.c:60
s_hd_t::unix_dev_names
str_list_t * unix_dev_names
List of device names.
Definition: hd.h:2361
read_hal
static void read_hal(hd_data_t *hd_data)
Definition: hal.c:102
s_hd_t
Individual hardware item.
Definition: hd.h:2196
hal_get_any
hal_prop_t * hal_get_any(hal_prop_t *prop, const char *key)
Definition: hal.c:279
hd_detail_pci_t::data
pci_t * data
Definition: hd.h:2072
hal_get_str
hal_prop_t * hal_get_str(hal_prop_t *prop, const char *key)
Definition: hal.c:309
p_int32
@ p_int32
Definition: hd.h:1599
hal_device_s
HAL device.
Definition: hd.h:1624
hal_device_s::used
unsigned used
Definition: hd.h:1627
s_hd_t::next
struct s_hd_t * next
Link to next hardware item.
Definition: hd.h:2197
s_pci_t
structure holding the (raw) PCI data
Definition: hd.h:1027
hal_device_s::next
struct hal_device_s * next
Definition: hd.h:1625
hd_sysfs_id
char * hd_sysfs_id(char *path)
Definition: hd.c:5986
s_hd_t::device
hd_id_t device
Device id and name.
Definition: hd.h:2259
hal_get_list
hal_prop_t * hal_get_list(hal_prop_t *prop, const char *key)
Definition: hal.c:338
link_hal_tree
static void link_hal_tree(hd_data_t *hd_data)
Definition: hal.c:234
hal_prop_s::val
union hal_prop_s::@16 val
hal_prop_s::d
double d
Definition: hd.h:1614
s_str_list_t::free_str_list
str_list_t * free_str_list(str_list_t *list)
Definition: hd.c:2493
hd_read_properties
hal_prop_t * hd_read_properties(const char *udi)
Definition: hal.c:522
p_double
@ p_double
Definition: hd.h:1599
hal_prop_s
HAL device properties.
Definition: hd.h:1606
hd_data_t::module
unsigned module
(Internal) the current probing module we are in
Definition: hd.h:2681
hd_open_properties
static FILE * hd_open_properties(const char *udi, const char *mode)
Definition: hal.c:564
ADD2LOG
#define ADD2LOG(a...)
Definition: hd_int.h:62
s_hd_t::parent_udi
char * parent_udi
udi of parent (attached_to).
Definition: hd.h:2392
s_str_list_t
String list type.
Definition: hd.h:406
s_hd_t::detail
hd_detail_t * detail
Special info associated with this hardware.
Definition: hd.h:2433
hal_get_int32
hal_prop_t * hal_get_int32(hal_prop_t *prop, const char *key)
Definition: hal.c:299
s_hd_t::udi
char * udi
HAL udi.
Definition: hd.h:2387
add_hd_entry
hd_t * add_hd_entry(hd_data_t *hd_data, unsigned line, unsigned count)
Definition: hd.c:1777
hal_prop_s::key
char * key
Definition: hd.h:1609
hal_find_device
hal_device_t * hal_find_device(hd_data_t *hd_data, char *udi)
Definition: hal.c:248
hd_probe_feature
int hd_probe_feature(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:579
s_hd_t::sub_device
hd_id_t sub_device
Subdevice id and name.
Definition: hd.h:2275
hd_data_t::pci
pci_t * pci
(Internal) raw PCI data
Definition: hd.h:2684
MAKE_ID
#define MAKE_ID(tag, id_val)
Combine tag and id value.
Definition: hd.h:102
hd_id_t::id
unsigned id
Numeric id.
Definition: hd.h:397
hd.h
hal_prop_s::uint64
uint64_t uint64
Definition: hd.h:1613
s_hd_t::sysfs_id
char * sysfs_id
sysfs entry for this hardware, if any.
Definition: hd.h:2331
s_hd_t::hal_prop
hal_prop_t * hal_prop
hal property list
Definition: hd.h:2585
hd_get_hddb_path
char * hd_get_hddb_path(char *sub)
Definition: hd.c:5942
s_hd_t::sub_class
hd_id_t sub_class
Sub class (id and name).
Definition: hd.h:2236
hd_scan_hal_basic
void hd_scan_hal_basic(hd_data_t *hd_data)
Definition: hal.c:89
hal_get_useful_str
char * hal_get_useful_str(hal_prop_t *prop, const char *key)
Definition: hal.c:319
hd_free_hal_devices
hal_device_t * hd_free_hal_devices(hal_device_t *dev)
Definition: hd.c:1088
hd_detail_t::pci
hd_detail_pci_t pci
Definition: hd.h:2143
hd_hal_print_prop
char * hd_hal_print_prop(hal_prop_t *prop)
Definition: hal.c:439
hal_add_new
hal_prop_t * hal_add_new(hal_prop_t **prop)
Definition: hal.c:348
hd_data_t::hal
hal_device_t * hal
(Internal) HAL data (if any)
Definition: hd.h:2732
s_hd_t::sub_vendor
hd_id_t sub_vendor
Subvendor id and name.
Definition: hd.h:2267
p_bool
@ p_bool
Definition: hd.h:1599
s_hd_t::vendor
hd_id_t vendor
Vendor id and name.
Definition: hd.h:2249
hd_id_t::name
char * name
Name (if any) that corresponds to hd_id_t::id.
Definition: hd.h:398
hd_int.h
pr_hal
@ pr_hal
Definition: hd.h:121
TAG_PCI
#define TAG_PCI
PCI ids.
Definition: hd.h:83
hal_device_s::parent
struct hal_device_s * parent
Definition: hd.h:1625
hal_invalidate
void hal_invalidate(hal_prop_t *prop)
Definition: hal.c:262
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
hd_scan_hal_assign_udi
void hd_scan_hal_assign_udi(hd_data_t *hd_data)
Definition: hal.c:710
hd_write_properties
int hd_write_properties(const char *udi, hal_prop_t *prop)
Definition: hal.c:501
s_pci_t::sysfs_id
char * sysfs_id
sysfs path
Definition: hd.h:1047
hd_pci_complete_data
void hd_pci_complete_data(hd_t *hd)
Definition: pci.c:458
p_uint64
@ p_uint64
Definition: hd.h:1599
s_str_list_t::add_str_list
str_list_t * add_str_list(str_list_t **sl, char *str)
Definition: hd.c:2479
skip_nonquote
static char * skip_nonquote(char *s)
Definition: hal.c:623
skip_space
static char * skip_space(char *s)
Definition: hal.c:607
hd_data_t
Holds all data accumulated during hardware probing.
Definition: hd.h:2604
new_mem
void * new_mem(size_t size)
Definition: hd.c:1535
p_list
@ p_list
Definition: hd.h:1599
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
hal_prop_s::str
char * str
Definition: hd.h:1611