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:2544
s_hd_t::base_class
hd_id_t base_class
Base class (id and name).
Definition: hd.h:2236
mod_floppy
@ mod_floppy
Definition: hd_int.h:79
s_hd_t::attached_to
unsigned attached_to
Device this hardware is attached to.
Definition: hd.h:2331
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:2728
PROGRESS
#define PROGRESS(a, b, c)
Definition: hd_int.h:65
s_str_list_t::next
struct s_str_list_t * next
Link to next member.
Definition: hd.h:411
res_size_t::val2
uint64_t val2
to allow for 2D values
Definition: hd.h:1735
s_hd_t::slot
unsigned slot
Slot and bus number.
Definition: hd.h:2226
sc_sto_floppy
@ sc_sto_floppy
Definition: hd.h:181
s_hd_t::unix_dev_name
char * unix_dev_name
Special device file.
Definition: hd.h:2353
s_hd_t
Individual hardware item.
Definition: hd.h:2201
u_hd_res_t
libhd resource union
Definition: hd.h:1827
s_hd_t::next
struct s_hd_t * next
Link to next hardware item.
Definition: hd.h:2202
pr_floppy
@ pr_floppy
Definition: hd.h:113
floppy.h
str2float
int str2float(char *s, int n)
Definition: hd.c:2250
s_str_list_t::free_str_list
str_list_t * free_str_list(str_list_t *list)
Definition: hd.c:2510
res_size_t::type
enum resource_types type
Definition: hd.h:1733
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:2686
HD_DEB_FLOPPY
#define HD_DEB_FLOPPY
Definition: hd.h:41
ADD2LOG
#define ADD2LOG(a...)
Definition: hd_int.h:66
s_str_list_t
String list type.
Definition: hd.h:410
add_hd_entry
hd_t * add_hd_entry(hd_data_t *hd_data, unsigned line, unsigned count)
Definition: hd.c:1794
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:2640
bc_storage
@ bc_storage
Definition: hd.h:162
size_unit_cinch
@ size_unit_cinch
Definition: hd.h:1650
hd_probe_feature
int hd_probe_feature(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:595
bc_storage_device
@ bc_storage_device
Definition: hd.h:168
hd_id_t::id
unsigned id
Numeric id.
Definition: hd.h:401
hd.h
hd_data_t::floppy
str_list_t * floppy
(Internal) contents of PROC_NVRAM, used by the floppy module
Definition: hd.h:2693
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:2432
s_hd_t::sub_class
hd_id_t sub_class
Sub class (id and name).
Definition: hd.h:2241
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:2220
s_hd_t::idx
unsigned idx
Unique index, starting at 1.
Definition: hd.h:2208
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:2418
res_size_t::unit
enum size_units unit
Definition: hd.h:1734
add_res_entry
hd_res_t * add_res_entry(hd_res_t **res, hd_res_t *new_res)
Definition: hd.c:1786
hd_data_t::klog
str_list_t * klog
(Internal) kernel log
Definition: hd.h:2700
res_size_t::val1
uint64_t val1
Definition: hd.h:1735
bus_floppy
@ bus_floppy
Definition: hd.h:301
size_unit_sectors
@ size_unit_sectors
Definition: hd.h:1650
hd_data_t
Holds all data accumulated during hardware probing.
Definition: hd.h:2609
res_size
@ res_size
Definition: hd.h:1641
new_mem
void * new_mem(size_t size)
Definition: hd.c:1552
sc_sdev_floppy
@ sc_sdev_floppy
Definition: hd.h:237
s_str_list_t::str
char * str
Some string data.
Definition: hd.h:412
free_mem
void * free_mem(void *p)
Definition: hd.c:1611
u_hd_res_t::size
res_size_t size
Definition: hd.h:1835