summaryrefslogtreecommitdiffstats
path: root/include/ata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ata.h')
-rw-r--r--include/ata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ata.h b/include/ata.h
index b51475da81..3b2d737e61 100644
--- a/include/ata.h
+++ b/include/ata.h
@@ -82,7 +82,9 @@
/*
* Device / Head Register Bits
*/
+#ifndef ATA_DEVICE
#define ATA_DEVICE(x) ((x & 1)<<4)
+#endif /* ATA_DEVICE */
#define ATA_LBA 0xE0
/*
OpenPOWER on IntegriCloud