]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/ata.h
lcd: Provide an API to access LCD parameters
[karo-tx-uboot.git] / include / ata.h
index b51475da814e99b0e40f9ecc6d01c4a6ec0fe2c2..a614724b8e9313ff35e92bade501e4613efc0616 100644 (file)
@@ -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
 
 /*
 #define ATA_CMD_WRITE_EXT      0x34    /* Write Sectores (with retries) with 48bit addressing */
 #define ATA_CMD_VRFY_EXT       0x42    /* Read Verify  (with retries)  with 48bit addressing */
 
+#define ATA_CMD_FLUSH 0xE7 /* Flush drive cache */
+#define ATA_CMD_FLUSH_EXT 0xEA /* Flush drive cache, with 48bit addressing */
+
 /*
  * ATAPI Commands
  */