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:
parent
d111833599
commit
6eee8ca27d
|
@ -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 */
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
#include "farptr.h" // SET_SEG
|
||||
#include "config.h" // CONFIG_*
|
||||
|
||||
#define PACKED __attribute__((packed))
|
||||
|
||||
|
||||
/****************************************************************
|
||||
* Bios Data Area (BDA)
|
||||
|
|
|
@ -21,4 +21,6 @@ typedef u32 size_t;
|
|||
|
||||
#define NULL ((void *)0)
|
||||
|
||||
#define PACKED __attribute__((packed))
|
||||
|
||||
#endif // types.h
|
||||
|
|
Loading…
Reference in New Issue