diff options
Diffstat (limited to 'firmware/export/ata-defines.h')
-rw-r--r-- | firmware/export/ata-defines.h | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/firmware/export/ata-defines.h b/firmware/export/ata-defines.h index 1650c9fa47..70249ed0a0 100644 --- a/firmware/export/ata-defines.h +++ b/firmware/export/ata-defines.h | |||
@@ -1,58 +1,58 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * __________ __ ___. | 2 | * __________ __ ___. |
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id: ata.h 28951 2011-01-02 23:02:55Z theseven $ | 8 | * $Id: ata.h 28951 2011-01-02 23:02:55Z theseven $ |
9 | * | 9 | * |
10 | * Copyright (C) 2011 by Michael Sparmann | 10 | * Copyright (C) 2011 by Michael Sparmann |
11 | * | 11 | * |
12 | * This program is free software; you can redistribute it and/or | 12 | * This program is free software; you can redistribute it and/or |
13 | * modify it under the terms of the GNU General Public License | 13 | * modify it under the terms of the GNU General Public License |
14 | * as published by the Free Software Foundation; either version 2 | 14 | * as published by the Free Software Foundation; either version 2 |
15 | * of the License, or (at your option) any later version. | 15 | * of the License, or (at your option) any later version. |
16 | * | 16 | * |
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
18 | * KIND, either express or implied. | 18 | * KIND, either express or implied. |
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | #ifndef __ATA_DEFINES_H__ | 21 | #ifndef __ATA_DEFINES_H__ |
22 | #define __ATA_DEFINES_H__ | 22 | #define __ATA_DEFINES_H__ |
23 | 23 | ||
24 | #ifndef ATA_OUT8 | 24 | #ifndef ATA_OUT8 |
25 | #define ATA_OUT8(reg, data) (reg) = (data) | 25 | #define ATA_OUT8(reg, data) (reg) = (data) |
26 | #endif | 26 | #endif |
27 | #ifndef ATA_OUT16 | 27 | #ifndef ATA_OUT16 |
28 | #define ATA_OUT16(reg, data) (reg) = (data) | 28 | #define ATA_OUT16(reg, data) (reg) = (data) |
29 | #endif | 29 | #endif |
30 | #ifndef ATA_IN8 | 30 | #ifndef ATA_IN8 |
31 | #define ATA_IN8(reg) (reg) | 31 | #define ATA_IN8(reg) (reg) |
32 | #endif | 32 | #endif |
33 | #ifndef ATA_IN16 | 33 | #ifndef ATA_IN16 |
34 | #define ATA_IN16(reg) (reg) | 34 | #define ATA_IN16(reg) (reg) |
35 | #endif | 35 | #endif |
36 | #ifndef ATA_SWAP_IDENTIFY | 36 | #ifndef ATA_SWAP_IDENTIFY |
37 | #define ATA_SWAP_IDENTIFY(word) (word) | 37 | #define ATA_SWAP_IDENTIFY(word) (word) |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #define STATUS_BSY 0x80 | 40 | #define STATUS_BSY 0x80 |
41 | #define STATUS_RDY 0x40 | 41 | #define STATUS_RDY 0x40 |
42 | #define STATUS_DRQ 0x08 | 42 | #define STATUS_DRQ 0x08 |
43 | #define STATUS_ERR 0x01 | 43 | #define STATUS_ERR 0x01 |
44 | #define STATUS_DF 0x20 | 44 | #define STATUS_DF 0x20 |
45 | #define ERROR_IDNF 0x10 | 45 | #define ERROR_IDNF 0x10 |
46 | #define ERROR_ABRT 0x04 | 46 | #define ERROR_ABRT 0x04 |
47 | 47 | ||
48 | #define TEST_PATTERN1 0xa5 | 48 | #define TEST_PATTERN1 0xa5 |
49 | #define TEST_PATTERN2 0x5a | 49 | #define TEST_PATTERN2 0x5a |
50 | #define TEST_PATTERN3 0xaa | 50 | #define TEST_PATTERN3 0xaa |
51 | #define TEST_PATTERN4 0x55 | 51 | #define TEST_PATTERN4 0x55 |
52 | 52 | ||
53 | #define ATA_FEATURE ATA_ERROR | 53 | #define ATA_FEATURE ATA_ERROR |
54 | 54 | ||
55 | #define ATA_STATUS ATA_COMMAND | 55 | #define ATA_STATUS ATA_COMMAND |
56 | #define ATA_ALT_STATUS ATA_CONTROL | 56 | #define ATA_ALT_STATUS ATA_CONTROL |
57 | 57 | ||
58 | #endif | 58 | #endif |