Line No. | Rev | Author | Line |
---|---|---|---|
1 | 6 | kaklik | /*! \file ataconf.h \brief IDE-ATA interface driver configuration. */ |
2 | //***************************************************************************** |
||
3 | // |
||
4 | // File Name : 'ataconf.h' |
||
5 | // Title : IDE-ATA interface driver for hard disks |
||
6 | // Author : Pascal Stang - Copyright (C) 2000-2002 |
||
7 | // Date : 11/22/2000 |
||
8 | // Revised : 12/29/2000 |
||
9 | // Version : 0.3 |
||
10 | // Target MCU : Atmel AVR Series) |
||
11 | // Editor Tabs : 4 |
||
12 | // |
||
13 | // NOTE: This code is currently below version 1.0, and therefore is considered |
||
14 | // to be lacking in some functionality or documentation, or may not be fully |
||
15 | // tested. Nonetheless, you can expect most functions to work. |
||
16 | // |
||
17 | // This code is distributed under the GNU Public License |
||
18 | // which can be found at http://www.gnu.org/licenses/gpl.txt |
||
19 | // |
||
20 | //***************************************************************************** |
||
21 | |||
22 | #ifndef ATA_IFCONF_H |
||
23 | #define ATA_IFCONF_H |
||
24 | |||
25 | // constants |
||
26 | #define SECTOR_BUFFER_ADDR 0x1E00 |
||
27 | |||
28 | // ATA register base address |
||
29 | #define ATA_REG_BASE 0x8000 |
||
30 | // ATA register offset |
||
31 | #define ATA_REG_DATAL 0x00 |
||
32 | #define ATA_REG_ERROR 0x01 |
||
33 | #define ATA_REG_SECCOUNT 0x02 |
||
34 | #define ATA_REG_STARTSEC 0x03 |
||
35 | #define ATA_REG_CYLLO 0x04 |
||
36 | #define ATA_REG_CYLHI 0x05 |
||
37 | #define ATA_REG_HDDEVSEL 0x06 |
||
38 | #define ATA_REG_CMDSTATUS1 0x07 |
||
39 | #define ATA_REG_CMDSTATUS2 0x08 |
||
40 | #define ATA_REG_ACTSTATUS 0x09 |
||
41 | |||
42 | #define ATA_REG_DATAH 0x10 |
||
43 | |||
44 | #endif |
Powered by WebSVN v2.8.3