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:1102
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:2527
int type
Definition: hd.h:1091
hd_id_t base_class
Base class (id and name).
Definition: hd.h:2231
@ mod_isapnp
Definition: hd_int.h:74
enum resource_types type
Definition: hd.h:1713
unsigned char * serial
Definition: hd.h:1101
isapnp_t * isapnp
(Internal) raw ISA-PnP data
Definition: hd.h:2685
isapnp_res_t * res
Definition: hd.h:1106
int log_devs
Definition: hd.h:1100
unsigned has_io
Definition: isa.h:4
misc_t * misc
(Internal) data gathered in the misc module
Definition: hd.h:2689
void remove_hd_entries(hd_data_t *hd_data)
Definition: hd.c:2711
ISA-PnP collected card information struct.
Definition: hd.h:1112
@ pr_isapnp
Definition: hd.h:110
enum resource_types type
Definition: hd.h:1721
#define PROC_ISAPNP
Definition: hd_int.h:25
@ sc_int_isapnp_if
Definition: hd.h:221
char * canon_str(char *s, int len)
Definition: hd.c:2191
@ bc_multimedia
Definition: hd.h:159
char * new_str(const char *s)
Definition: hd.c:1577
unsigned base
Definition: hd.h:1722
str_list_t * read_dir(char *dir_name, int type)
Definition: hd.c:2576
unsigned io
Definition: isa.h:5
#define PROGRESS(a, b, c)
Definition: hd_int.h:61
@ res_io
Definition: hd.h:1635
struct s_str_list_t * next
Link to next member.
Definition: hd.h:407
unsigned slot
Slot and bus number.
Definition: hd.h:2221
int res_len
Definition: hd.h:1104
#define ISAPNP_ADDR_PORT
Definition: isapnp.h:5
int csn
Definition: hd.h:1099
hd_id_t compat_device
Device id and name of some compatible hardware.
Definition: hd.h:2299
@ res_dma
Definition: hd.h:1635
unsigned sub_device_class(hd_data_t *hd_data, unsigned vendor, unsigned device, unsigned sub_vendor, unsigned sub_device)
Definition: hddb.c:1822
unsigned base
Definition: hd.h:1714
unsigned enabled
0: disabled, 1 enabled
Definition: hd.h:1707
Individual hardware item.
Definition: hd.h:2196
unsigned name2eisa_id(char *s)
Definition: hd.c:2170
#define ISAPNP_DATA_PORT
Definition: isapnp.h:6
enum resource_types type
Definition: hd.h:1704
libhd resource union
Definition: hd.h:1822
isa_isdn_t * isdn_detect(void)
char * sysfs_bus_id
sysfs bus id for this hardware, if any.
Definition: hd.h:2336
#define W_IO
Definition: hd_int.h:163
char * hd_sysfs_id(char *path)
Definition: hd.c:5986
@ acc_rw
read/write
Definition: hd.h:1656
hd_id_t device
Device id and name.
Definition: hd.h:2259
@ res_irq
Definition: hd.h:1635
str_list_t * free_str_list(str_list_t *list)
Definition: hd.c:2493
unsigned has_irq
Definition: isa.h:4
unsigned char * data
Definition: hd.h:1092
res_io_t io
Definition: hd.h:1825
@ bc_network
Definition: hd.h:159
@ device_class
Definition: isdn_cdb_def.h:12
enum resource_types type
Definition: hd.h:1683
isapnp_card_t * card
Definition: hd.h:1115
isapnp_card_t * add_isapnp_card(isapnp_t *, int)
unsigned module
(Internal) the current probing module we are in
Definition: hd.h:2681
#define ADD2LOG(a...)
Definition: hd_int.h:62
String list type.
Definition: hd.h:406
uint64_t range
Definition: hd.h:1705
hd_t * add_hd_entry(hd_data_t *hd_data, unsigned line, unsigned count)
Definition: hd.c:1777
unsigned debug
Debug flags.
Definition: hd.h:2635
unsigned isapnp
ISA-PnP device.
Definition: hd.h:2471
@ bc_storage
Definition: hd.h:159
res_irq_t irq
Definition: hd.h:1828
int hd_probe_feature(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:579
unsigned char * add_isapnp_card_res(isapnp_card_t *, int, int)
hd_id_t sub_device
Subdevice id and name.
Definition: hd.h:2275
#define MAKE_ID(tag, id_val)
Combine tag and id value.
Definition: hd.h:102
unsigned enabled
0: disabled, 1 enabled
Definition: hd.h:1716
unsigned access
enum access_flags
Definition: hd.h:1708
unsigned id
Numeric id.
Definition: hd.h:397
hd_id_t compat_vendor
Vendor id and name of some compatible hardware.
Definition: hd.h:2293
char * sysfs_id
sysfs entry for this hardware, if any.
Definition: hd.h:2331
unsigned irq
Definition: isa.h:5
#define HD_DEB_ISAPNP
Definition: hd.h:36
hd_res_t * res
Device resources.
Definition: hd.h:2427
hd_id_t sub_class
Sub class (id and name).
Definition: hd.h:2236
ISA-PnP card information (raw)
Definition: hd.h:1098
int cards
Definition: hd.h:1114
#define ID_VALUE(id)
Get the real id value.
Definition: hd.h:92
@ bus_isa
Definition: hd.h:293
hd_res_t * free_res_list(hd_res_t *res)
Definition: hd.c:1726
#define RES_LOG_DEV_ID
Definition: isapnp.h:13
unsigned enabled
0: disabled, 1 enabled
Definition: hd.h:1723
@ acc_ro
read only
Definition: hd.h:1654
hd_id_t sub_vendor
Subvendor id and name.
Definition: hd.h:2267
hd_id_t vendor
Vendor id and name.
Definition: hd.h:2249
char * name
Name (if any) that corresponds to hd_id_t::id.
Definition: hd.h:398
uint64_t base
Definition: hd.h:1705
hd_id_t bus
Bus type (id and name).
Definition: hd.h:2215
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:1563
hd_res_t * add_res_entry(hd_res_t **res, hd_res_t *new_res)
Definition: hd.c:1769
unsigned type
Definition: isa.h:5
@ acc_wo
write only
Definition: hd.h:1655
char * hd_read_sysfs_link(char *base_dir, char *link_name)
Definition: hd.c:2631
@ bc_modem
Definition: hd.h:164
unsigned func
(PCI) function.
Definition: hd.h:2226
res_dma_t dma
Definition: hd.h:1829
int read_port
Definition: hd.h:1113
int len
Definition: hd.h:1090
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:2604
void * new_mem(size_t size)
Definition: hd.c:1535
unsigned subtype
Definition: isa.h:5
char * eisa_vendor_str(unsigned v)
Definition: hd.c:2154
#define TAG_EISA
EISA ids (monitors, ISA-PnP, modems, mice etc).
Definition: hd.h:84
res_any_t any
Definition: hd.h:1824
char * str
Some string data.
Definition: hd.h:408
void * free_mem(void *p)
Definition: hd.c:1594
@ bc_internal
Definition: hd.h:164
char * get_sysfs_attr_by_path(const char *path, const char *attr)
Definition: hd.c:6053