Go to the documentation of this file.
5 #define ISAPNP_ADDR_PORT 0x279
6 #define ISAPNP_DATA_PORT 0xa79
12 #define RES_PNP_VERSION 0x01
13 #define RES_LOG_DEV_ID 0x02
14 #define RES_COMPAT_DEV_ID 0x03
17 #define RES_START_DEP 0x06
18 #define RES_END_DEP 0x07
20 #define RES_FIXED_IO 0x09
21 #define RES_VENDOR_SMALL 0x0e
24 #define RES_MEM_RANGE 0x81
25 #define RES_ANSI_NAME 0x82
26 #define RES_UNICODE_NAME 0x83
27 #define RES_VENDOR_LARGE 0x84
28 #define RES_MEM32_RANGE 0x85
29 #define RES_FIXED_MEM32_RANGE 0x86
35 #define CFG_MEM24 0x40
36 #define CFG_MEM32_0 0x76
37 #define CFG_MEM32_1 0x80
38 #define CFG_MEM32_2 0x90
39 #define CFG_MEM32_3 0xa0
40 #define CFG_IO_HI_BASE 0x60
41 #define CFG_IO_LO_BASE 0x61
43 #define CFG_IRQ_TYPE 0x71
unsigned char * card_regs
Definition: hd.h:1106
int pnpdump(hd_data_t *hd_data, int read_boards)
str_list_t * read_file(char *file_name, unsigned start_line, unsigned lines)
Definition: hd.c:2552
int type
Definition: hd.h:1095
hd_id_t base_class
Base class (id and name).
Definition: hd.h:2236
@ mod_isapnp
Definition: hd_int.h:78
enum resource_types type
Definition: hd.h:1718
unsigned char * serial
Definition: hd.h:1105
isapnp_t * isapnp
(Internal) raw ISA-PnP data
Definition: hd.h:2690
isapnp_res_t * res
Definition: hd.h:1110
int log_devs
Definition: hd.h:1104
unsigned has_io
Definition: isa.h:4
misc_t * misc
(Internal) data gathered in the misc module
Definition: hd.h:2694
void remove_hd_entries(hd_data_t *hd_data)
Definition: hd.c:2736
ISA-PnP collected card information struct.
Definition: hd.h:1116
@ pr_isapnp
Definition: hd.h:113
enum resource_types type
Definition: hd.h:1726
#define PROC_ISAPNP
Definition: hd_int.h:25
@ sc_int_isapnp_if
Definition: hd.h:225
char * canon_str(char *s, int len)
Definition: hd.c:2216
@ bc_multimedia
Definition: hd.h:162
char * new_str(const char *s)
Definition: hd.c:1602
unsigned base
Definition: hd.h:1727
str_list_t * read_dir(char *dir_name, int type)
Definition: hd.c:2601
unsigned io
Definition: isa.h:5
#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
unsigned slot
Slot and bus number.
Definition: hd.h:2226
int res_len
Definition: hd.h:1108
#define ISAPNP_ADDR_PORT
Definition: isapnp.h:5
int csn
Definition: hd.h:1103
hd_id_t compat_device
Device id and name of some compatible hardware.
Definition: hd.h:2304
@ res_dma
Definition: hd.h:1640
unsigned sub_device_class(hd_data_t *hd_data, unsigned vendor, unsigned device, unsigned sub_vendor, unsigned sub_device)
Definition: hddb.c:1824
unsigned base
Definition: hd.h:1719
unsigned enabled
0: disabled, 1 enabled
Definition: hd.h:1712
Individual hardware item.
Definition: hd.h:2201
unsigned name2eisa_id(char *s)
Definition: hd.c:2195
#define ISAPNP_DATA_PORT
Definition: isapnp.h:6
enum resource_types type
Definition: hd.h:1709
libhd resource union
Definition: hd.h:1827
isa_isdn_t * isdn_detect(void)
char * sysfs_bus_id
sysfs bus id for this hardware, if any.
Definition: hd.h:2341
#define W_IO
Definition: hd_int.h:167
char * hd_sysfs_id(char *path)
Definition: hd.c:6039
@ 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
str_list_t * free_str_list(str_list_t *list)
Definition: hd.c:2518
unsigned has_irq
Definition: isa.h:4
unsigned char * data
Definition: hd.h:1096
res_io_t io
Definition: hd.h:1830
@ bc_network
Definition: hd.h:162
@ device_class
Definition: isdn_cdb_def.h:12
enum resource_types type
Definition: hd.h:1688
isapnp_card_t * card
Definition: hd.h:1119
isapnp_card_t * add_isapnp_card(isapnp_t *, int)
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
uint64_t range
Definition: hd.h:1710
hd_t * add_hd_entry(hd_data_t *hd_data, unsigned line, unsigned count)
Definition: hd.c:1802
unsigned debug
Debug flags.
Definition: hd.h:2640
unsigned isapnp
ISA-PnP device.
Definition: hd.h:2476
@ bc_storage
Definition: hd.h:162
res_irq_t irq
Definition: hd.h:1833
int hd_probe_feature(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:603
unsigned char * add_isapnp_card_res(isapnp_card_t *, int, int)
hd_id_t sub_device
Subdevice id and name.
Definition: hd.h:2280
#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
hd_id_t compat_vendor
Vendor id and name of some compatible hardware.
Definition: hd.h:2298
char * sysfs_id
sysfs entry for this hardware, if any.
Definition: hd.h:2336
unsigned irq
Definition: isa.h:5
#define HD_DEB_ISAPNP
Definition: hd.h:38
hd_res_t * res
Device resources.
Definition: hd.h:2432
hd_id_t sub_class
Sub class (id and name).
Definition: hd.h:2241
ISA-PnP card information (raw)
Definition: hd.h:1102
int cards
Definition: hd.h:1118
#define ID_VALUE(id)
Get the real id value.
Definition: hd.h:95
@ bus_isa
Definition: hd.h:297
hd_res_t * free_res_list(hd_res_t *res)
Definition: hd.c:1751
#define RES_LOG_DEV_ID
Definition: isapnp.h:13
unsigned enabled
0: disabled, 1 enabled
Definition: hd.h:1728
@ acc_ro
read only
Definition: hd.h:1659
hd_id_t sub_vendor
Subvendor id and name.
Definition: hd.h:2272
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
hd_id_t bus
Bus type (id and name).
Definition: hd.h:2220
isa_isdn_t * new_isa_isdn(isa_isdn_t **ii)
static hd_data_t * hd_data
Definition: pppoe.c:29
void * add_mem(void *p, size_t elem_size, size_t n)
Definition: hd.c:1588
hd_res_t * add_res_entry(hd_res_t **res, hd_res_t *new_res)
Definition: hd.c:1794
unsigned type
Definition: isa.h:5
@ acc_wo
write only
Definition: hd.h:1660
char * hd_read_sysfs_link(char *base_dir, char *link_name)
Definition: hd.c:2656
@ bc_modem
Definition: hd.h:167
unsigned func
(PCI) function.
Definition: hd.h:2231
res_dma_t dma
Definition: hd.h:1834
int read_port
Definition: hd.h:1117
int len
Definition: hd.h:1094
void hd_scan_isapnp(hd_data_t *hd_data)
void gather_resources(misc_t *m, hd_res_t **r, char *name, unsigned which)
Definition: misc.c:603
Holds all data accumulated during hardware probing.
Definition: hd.h:2609
void * new_mem(size_t size)
Definition: hd.c:1560
unsigned subtype
Definition: isa.h:5
char * eisa_vendor_str(unsigned v)
Definition: hd.c:2179
#define TAG_EISA
EISA ids (monitors, ISA-PnP, modems, mice etc).
Definition: hd.h:86
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:1619
@ bc_internal
Definition: hd.h:167
char * get_sysfs_attr_by_path(const char *path, const char *attr)
Definition: hd.c:6106