summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDave Liu <r63238@freescale.com>2008-03-27 18:50:41 +0800
committerWolfgang Denk <wd@denx.de>2008-04-13 14:57:39 -0700
commit0ff7cba4a2e51c90827f6d21a0b28b4d67109597 (patch)
treecbed27e0982e144b781e4ee4dc96a0570cb40d66 /drivers
parente8f7ba404f1409606962815ecc955a06984b08b3 (diff)
downloadu-boot-0ff7cba4a2e51c90827f6d21a0b28b4d67109597.tar.gz
u-boot-0ff7cba4a2e51c90827f6d21a0b28b4d67109597.tar.bz2
u-boot-0ff7cba4a2e51c90827f6d21a0b28b4d67109597.zip
drivers: clean up the ata_piix.h
Signed-off-by: Dave Liu <daveliu@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/ata_piix.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/drivers/block/ata_piix.h b/drivers/block/ata_piix.h
index ed2e4d57d6..f9f0194706 100644
--- a/drivers/block/ata_piix.h
+++ b/drivers/block/ata_piix.h
@@ -1,3 +1,5 @@
+#ifndef __ATA_PIIX_H__
+#define __ATA_PIIX_H__
#if (DEBUG_SATA)
#define PRINTF(fmt,args...) printf (fmt ,##args)
@@ -51,17 +53,17 @@ struct sata_port {
static inline void
ata_dump_id (u16 * id)
{
- PRINTF ("49==0x%04x "
- "53==0x%04x "
- "63==0x%04x "
- "64==0x%04x "
- "75==0x%04x \n", id[49], id[53], id[63], id[64], id[75]);
- PRINTF ("80==0x%04x "
- "81==0x%04x "
- "82==0x%04x "
- "83==0x%04x "
- "84==0x%04x \n", id[80], id[81], id[82], id[83], id[84]);
- PRINTF ("88==0x%04x " "93==0x%04x\n", id[88], id[93]);
+ PRINTF ("49 = 0x%04x "
+ "53 = 0x%04x "
+ "63 = 0x%04x "
+ "64 = 0x%04x "
+ "75 = 0x%04x \n", id[49], id[53], id[63], id[64], id[75]);
+ PRINTF ("80 = 0x%04x "
+ "81 = 0x%04x "
+ "82 = 0x%04x "
+ "83 = 0x%04x "
+ "84 = 0x%04x \n", id[80], id[81], id[82], id[83], id[84]);
+ PRINTF ("88 = 0x%04x " "93 = 0x%04x\n", id[88], id[93]);
}
#endif
@@ -88,3 +90,5 @@ int init_sata (int dev);
#ifdef DRV_DECL /*Defines Driver Specific variables */
struct sata_port port[CFG_SATA_MAXBUS];
#endif
+
+#endif /* __ATA_PIIX_H__ */