libhd  5.0
floppy.h
Go to the documentation of this file.
read_file
str_list_t * read_file(char *file_name, unsigned start_line, unsigned lines)
Definition: hd.c:2527
s_hd_t::base_class
hd_id_t base_class
Base class (id and name).
Definition: hd.h:2231
mod_floppy
@ mod_floppy
Definition: hd_int.h:75
s_hd_t::attached_to
unsigned attached_to
Device this hardware is attached to.
Definition: hd.h:2326
hd_data_t::hd
hd_t * hd
Current hardware list.
Definition: hd.h:2610
remove_hd_entries
void remove_hd_entries(hd_data_t *hd_data)
Definition: hd.c:2711
PROGRESS
#define PROGRESS(a, b, c)
Definition: hd_int.h:61
s_str_list_t::next
struct s_str_list_t * next
Link to next member.
Definition: hd.h:407
res_size_t::val2
uint64_t val2
to allow for 2D values
Definition: hd.h:1730
s_hd_t::slot
unsigned slot
Slot and bus number.
Definition: hd.h:2221
sc_sto_floppy
@ sc_sto_floppy
Definition: hd.h:177
s_hd_t::unix_dev_name
char * unix_dev_name
Special device file.
Definition: hd.h:2348
s_hd_t
Individual hardware item.
Definition: hd.h:2196
u_hd_res_t
libhd resource union
Definition: hd.h:1822
s_hd_t::next
struct s_hd_t * next
Link to next hardware item.
Definition: hd.h:2197
pr_floppy
@ pr_floppy
Definition: hd.h:110
floppy.h
str2float
int str2float(char *s, int n)
Definition: hd.c:2233
s_str_list_t::free_str_list
str_list_t * free_str_list(str_list_t *list)
Definition: hd.c:2493
res_size_t::type
enum resource_types type
Definition: hd.h:1728
klog.h
DEV_NVRAM
#define DEV_NVRAM
Definition: hd_int.h:30
hd_data_t::module
unsigned module
(Internal) the current probing module we are in
Definition: hd.h:2681
HD_DEB_FLOPPY
#define HD_DEB_FLOPPY
Definition: hd.h:39
ADD2LOG
#define ADD2LOG(a...)
Definition: hd_int.h:62
s_str_list_t
String list type.
Definition: hd.h:406
add_hd_entry
hd_t * add_hd_entry(hd_data_t *hd_data, unsigned line, unsigned count)
Definition: hd.c:1777
read_klog
void read_klog(hd_data_t *hd_data)
Definition: klog.c:50
hd_data_t::debug
unsigned debug
Debug flags.
Definition: hd.h:2635
bc_storage
@ bc_storage
Definition: hd.h:159
size_unit_cinch
@ size_unit_cinch
Definition: hd.h:1645
hd_probe_feature
int hd_probe_feature(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:579
bc_storage_device
@ bc_storage_device
Definition: hd.h:165
hd_id_t::id
unsigned id
Numeric id.
Definition: hd.h:397
hd.h
hd_data_t::floppy
str_list_t * floppy
(Internal) contents of PROC_NVRAM, used by the floppy module
Definition: hd.h:2688
PROC_NVRAM_24
#define PROC_NVRAM_24
Definition: hd_int.h:9
hd_scan_floppy
void hd_scan_floppy(hd_data_t *hd_data)
Definition: floppy.c:29
s_hd_t::res
hd_res_t * res
Device resources.
Definition: hd.h:2427
s_hd_t::sub_class
hd_id_t sub_class
Sub class (id and name).
Definition: hd.h:2236
dump_floppy_data
static void dump_floppy_data(hd_data_t *hd_data)
Definition: floppy.c:163
PROC_NVRAM_22
#define PROC_NVRAM_22
Definition: hd_int.h:8
hd_int.h
s_hd_t::bus
hd_id_t bus
Bus type (id and name).
Definition: hd.h:2215
s_hd_t::idx
unsigned idx
Unique index, starting at 1.
Definition: hd.h:2203
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
res_size_t::unit
enum size_units unit
Definition: hd.h:1729
add_res_entry
hd_res_t * add_res_entry(hd_res_t **res, hd_res_t *new_res)
Definition: hd.c:1769
hd_data_t::klog
str_list_t * klog
(Internal) kernel log
Definition: hd.h:2695
res_size_t::val1
uint64_t val1
Definition: hd.h:1730
bus_floppy
@ bus_floppy
Definition: hd.h:297
size_unit_sectors
@ size_unit_sectors
Definition: hd.h:1645
hd_data_t
Holds all data accumulated during hardware probing.
Definition: hd.h:2604
res_size
@ res_size
Definition: hd.h:1636
new_mem
void * new_mem(size_t size)
Definition: hd.c:1535
sc_sdev_floppy
@ sc_sdev_floppy
Definition: hd.h:233
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
u_hd_res_t::size
res_size_t size
Definition: hd.h:1830