types.h & ata.h

This patch addes header guard to ata.h and move PACKED definition to
types.h (to be used for other files - sent later)

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
This commit is contained in:
Kevin O'Connor 2008-03-03 20:14:12 -05:00
parent d111833599
commit 6eee8ca27d
3 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,9 @@
//
// This file may be distributed under the terms of the GNU GPLv3 license.
#ifndef __ATA_H
#define __ATA_H
#include "types.h" // u16
// Function definitions
@ -154,3 +157,4 @@ void ata_detect();
#define ATA_DATA_IN 0x01
#define ATA_DATA_OUT 0x02
#endif /* __ATA_H */

View File

@ -10,8 +10,6 @@
#include "farptr.h" // SET_SEG
#include "config.h" // CONFIG_*
#define PACKED __attribute__((packed))
/****************************************************************
* Bios Data Area (BDA)

View File

@ -21,4 +21,6 @@ typedef u32 size_t;
#define NULL ((void *)0)
#define PACKED __attribute__((packed))
#endif // types.h