Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114176
b: refs/heads/master
c: e1c7c46
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and Bartlomiej Zolnierkiewicz committed Oct 13, 2008
1 parent d406eed commit c0c7399
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b22b2ca4ff0730b14d14bcc36bd1b84873557512
refs/heads/master: e1c7c4641aae8d278fca62b3b5cffad3a8dcb0a4
20 changes: 20 additions & 0 deletions trunk/include/linux/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,26 @@ static inline void ide_proc_unregister_driver(ide_drive_t *drive, ide_driver_t *
#define PROC_IDE_READ_RETURN(page,start,off,count,eof,len) return 0;
#endif

enum {
/* enter/exit functions */
IDE_DBG_FUNC = (1 << 0),
/* sense key/asc handling */
IDE_DBG_SENSE = (1 << 1),
/* packet commands handling */
IDE_DBG_PC = (1 << 2),
/* request handling */
IDE_DBG_RQ = (1 << 3),
/* driver probing/setup */
IDE_DBG_PROBE = (1 << 4),
};

/* DRV_NAME has to be defined in the driver before using the macro below */
#define __ide_debug_log(lvl, fmt, args...) \
{ \
if (unlikely(drive->debug_mask & lvl)) \
printk(KERN_INFO DRV_NAME ": " fmt, ## args); \
}

/*
* Power Management step value (rq->pm->pm_step).
*
Expand Down

0 comments on commit c0c7399

Please sign in to comment.