libhd  5.0
hd.h
Go to the documentation of this file.
1 #ifndef _HD_H
2 #define _HD_H
3 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 
14 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
15  *
16  * libhd data structures
17  *
18  * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
19  */
20 
22 #define HD_VERSION 21
23 #define HD_MINOR_VERSION 38
24 #define HD_FULL_VERSION (HD_VERSION * 1000 + HD_MINOR_VERSION)
25 
33 #define HD_DEB_SHOW_LOG (1 << 0)
34 #define HD_DEB_PROGRESS (1 << 1)
35 #define HD_DEB_CREATION (1 << 2)
36 #define HD_DEB_DRIVER_INFO (1 << 3)
37 #define HD_DEB_PCI (1 << 4)
38 #define HD_DEB_ISAPNP (1 << 5)
39 #define HD_DEB_CDROM (1 << 6)
40 #define HD_DEB_NET (1 << 7)
41 #define HD_DEB_FLOPPY (1 << 8)
42 #define HD_DEB_MISC (1 << 9)
43 #define HD_DEB_SERIAL (1 << 10)
44 #define HD_DEB_MONITOR (1 << 11)
45 #define HD_DEB_CPU (1 << 12)
46 #define HD_DEB_BIOS (1 << 13)
47 #define HD_DEB_MOUSE (1 << 14)
48 #define HD_DEB_IDE (1 << 15)
49 #define HD_DEB_SCSI (1 << 16)
50 #define HD_DEB_USB (1 << 17)
51 #define HD_DEB_ADB (1 << 18)
52 #define HD_DEB_MODEM (1 << 19)
53 #define HD_DEB_PARALLEL (1 << 20)
54 #define HD_DEB_ISA (1 << 21)
55 #define HD_DEB_BOOT (1 << 22)
56 #define HD_DEB_HDDB (1 << 23)
57 
59 #include <stdio.h>
60 #include <inttypes.h>
61 #include <termios.h>
62 #include <sys/types.h>
63 
64 //typedef struct vm_s vm_t;
65 
69 #define HARDWARE_DIR "/var/lib/hardware"
70 
85 #define TAG_PCI 1
86 #define TAG_EISA 2
87 #define TAG_USB 3
88 #define TAG_SPECIAL 4
89 #define TAG_PCMCIA 5
90 #define TAG_SDIO 6
95 #define ID_VALUE(id) ((id) & 0xffff)
96 
100 #define ID_TAG(id) (((id) >> 16) & 0xf)
101 
105 #define MAKE_ID(tag, id_val) ((tag << 16) | (id_val))
106 
112 typedef enum probe_feature {