Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ide-gd.h
Go to the documentation of this file.
1 #ifndef __IDE_GD_H
2 #define __IDE_GD_H
3 
4 #define DRV_NAME "ide-gd"
5 #define PFX DRV_NAME ": "
6 
7 /* define to see debug info */
8 #define IDE_GD_DEBUG_LOG 0
9 
10 #if IDE_GD_DEBUG_LOG
11 #define ide_debug_log(lvl, fmt, args...) __ide_debug_log(lvl, fmt, ## args)
12 #else
13 #define ide_debug_log(lvl, fmt, args...) do {} while (0)
14 #endif
15 
16 struct ide_disk_obj {
18  struct ide_driver *driver;
19  struct gendisk *disk;
20  struct device dev;
21  unsigned int openers; /* protected by BKL for now */
22 
23  /* used for blk_{fs,pc}_request() requests */
25 
26  /* Last error information */
28 
30 
31  /* Device information */
32  /* Current format */
34  /* Last format capacity descriptor */
36  /* Copy of the flexible disk page */
38 };
39 
41 
42 #endif /* __IDE_GD_H */