Skip to content

Commit

Permalink
include/linux/hdreg.h: cover WIN_* and friends with #ifndef/#endif __…
Browse files Browse the repository at this point in the history
…KERNEL__

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Apr 1, 2009
1 parent 04b3ab5 commit dafd01c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/hdreg.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ typedef struct hd_drive_hob_hdr {
#define TASKFILE_INVALID 0x7fff
#endif

#ifndef __KERNEL__
/* ATA/ATAPI Commands pre T13 Spec */
#define WIN_NOP 0x00
/*
Expand Down Expand Up @@ -379,6 +380,7 @@ typedef struct hd_drive_hob_hdr {
#define SECURITY_ERASE_UNIT 0xBD
#define SECURITY_FREEZE_LOCK 0xBE
#define SECURITY_DISABLE_PASSWORD 0xBF
#endif /* __KERNEL__ */

struct hd_geometry {
unsigned char heads;
Expand Down

0 comments on commit dafd01c

Please sign in to comment.