str_list_t * get_cmdline(hd_data_t *hd_data, char *key)
Definition: hd.c:3637
str_list_t * read_file(char *file_name, unsigned start_line, unsigned lines)
Definition: hd.c:2532
hd_id_t prog_if
(PCI) programming interface (id and name).
Definition: hd.h:2246
hd_id_t base_class
Base class (id and name).
Definition: hd.h:2236
enum resource_types type
Definition: hd.h:1718
static void get_serial_info(hd_data_t *hd_data)
Definition: serial.c:163
#define PROC_DRIVER_MACSERIAL
Definition: hd_int.h:16
#define HD_DEB_SERIAL
Definition: hd.h:43
hd_t * hd
Current hardware list.
Definition: hd.h:2615
void remove_hd_entries(hd_data_t *hd_data)
Definition: hd.c:2785
enum resource_types type
Definition: hd.h:1740
unsigned ser_device
if != 0: info about attached serial device; see serial.c
Definition: hd.h:2519
char * new_str(const char *s)
Definition: hd.c:1582
#define PROGRESS(a, b, c)
Definition: hd_int.h:65
@ res_io
Definition: hd.h:1640
struct s_str_list_t * next
Link to next member.
Definition: hd.h:411
static char * ser_names[]
Definition: serial.c:21
static serial_t * add_serial_entry(serial_t **ser, serial_t *new_ser)
Definition: serial.c:250
@ res_baud
Definition: hd.h:1641
char * unix_dev_name
Special device file.
Definition: hd.h:2353
@ sc_com_ser
Definition: hd.h:204
unsigned skip_modem
if serial line, don't scan for modems
Definition: hd.h:2517
unsigned port
Definition: hd.h:1893
unsigned base
Definition: hd.h:1719
unsigned enabled
0: disabled, 1 enabled
Definition: hd.h:1712
Individual hardware item.
Definition: hd.h:2201
enum resource_types type
Definition: hd.h:1709
Serial device resource and hardware information.
Definition: hd.h:1889
char * device
Definition: hd.h:1892
@ pr_serial
Definition: hd.h:114
libhd resource union
Definition: hd.h:1827
void hd_scan_serial(hd_data_t *hd_data)
Definition: serial.c:29
struct s_hd_t * next
Link to next hardware item.
Definition: hd.h:2202
@ acc_rw
read/write
Definition: hd.h:1661
hd_id_t device
Device id and name.
Definition: hd.h:2264
@ res_irq
Definition: hd.h:1640
res_baud_t baud
Definition: hd.h:1837
str_list_t * free_str_list(str_list_t *list)
Free the memory allocated by a string list.
Definition: hd.c:2498
serial_t * serial
(Internal) /proc's serial info
Definition: hd.h:2695
res_io_t io
Definition: hd.h:1830
enum resource_types type
Definition: hd.h:1688
union u_hd_res_t * next
Definition: hd.h:1828
unsigned module
(Internal) the current probing module we are in
Definition: hd.h:2686
#define ADD2LOG(a...)
Definition: hd_int.h:66
String list type.
Definition: hd.h:410
unsigned speed
Definition: hd.h:1741
uint64_t range
Definition: hd.h:1710
hd_t * add_hd_entry(hd_data_t *hd_data, unsigned line, unsigned count)
Definition: hd.c:1782
unsigned irq
Definition: hd.h:1893
unsigned debug
Debug flags.
Definition: hd.h:2640
int hd_module_is_active(hd_data_t *hd_data, char *mod)
Definition: hd.c:2824
res_irq_t irq
Definition: hd.h:1833
int hd_probe_feature(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:583
#define MAKE_ID(tag, id_val)
Combine tag and id value.
Definition: hd.h:105
unsigned enabled
0: disabled, 1 enabled
Definition: hd.h:1721
unsigned access
enum access_flags
Definition: hd.h:1713
unsigned id
Numeric id.
Definition: hd.h:401
@ mod_serial
Definition: hd_int.h:80
hd_res_t * res
Device resources.
Definition: hd.h:2432
hd_id_t sub_class
Sub class (id and name).
Definition: hd.h:2241
char * name
Definition: hd.h:1891
#define PROC_DRIVER_SERIAL
Definition: hd_int.h:15
unsigned baud
Definition: hd.h:1893
unsigned line
Definition: hd.h:1893
hd_id_t vendor
Vendor id and name.
Definition: hd.h:2254
char * name
Name (if any) that corresponds to hd_id_t::id.
Definition: hd.h:402
uint64_t base
Definition: hd.h:1710
#define TAG_PCI
PCI ids.
Definition: hd.h:85
@ bc_comm
Definition: hd.h:163
unsigned skip_braille
if serial line, don't scan for braille devices
Definition: hd.h:2518
static hd_data_t * hd_data
Definition: pppoe.c:29
void str_printf(char **buf, int offset, char *format,...)
Definition: hd.c:2406
hd_res_t * add_res_entry(hd_res_t **res, hd_res_t *new_res)
Definition: hd.c:1774
unsigned func
(PCI) function.
Definition: hd.h:2231
static void dump_serial_data(hd_data_t *hd_data)
Definition: serial.c:256
struct s_serial_t * next
Definition: hd.h:1890
Holds all data accumulated during hardware probing.
Definition: hd.h:2609
void * new_mem(size_t size)
Definition: hd.c:1540
res_any_t any
Definition: hd.h:1829
char * str
Some string data.
Definition: hd.h:412
void * free_mem(void *p)
Definition: hd.c:1599
unsigned skip_mouse
if serial line, don't scan for mice
Definition: hd.h:2516