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