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