Prepare new maemo release
[maemo-rb.git] / firmware / target / arm / imx31 / ata-target.h
blob6893e83198a3ebcd94dc935e426031cae12cdb31
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 by Linus Nielsen Feltzing
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_TARGET_H
22 #define ATA_TARGET_H
24 #include "config.h"
26 #ifdef BOOTLOADER
27 #define ATA_DRIVER_CLOSE
28 #endif
30 /* Plain C read & write loops */
31 /* They likely won't be used anyway since DMA potentially works for any
32 * sector number and alignment. */
33 #define PREFER_C_READING
34 #define PREFER_C_WRITING
36 #ifdef HAVE_ATA_DMA
37 #define ATA_MAX_MWDMA 2
38 #define ATA_MAX_UDMA 4
39 #endif
41 #define ATA_DATA ATA_DRIVE_DATA
42 #define ATA_ERROR ATA_DRIVE_FEATURES
43 #define ATA_NSECTOR ATA_DRIVE_SECTOR_COUNT
44 #define ATA_SECTOR ATA_DRIVE_SECTOR_NUM
45 #define ATA_LCYL ATA_DRIVE_CYL_LOW
46 #define ATA_HCYL ATA_DRIVE_CYL_HIGH
47 #define ATA_SELECT ATA_DRIVE_CYL_HEAD
48 #define ATA_COMMAND ATA_DRIVE_COMMAND
49 #define ATA_CONTROL ATA_DRIVE_CONTROL
52 #define ATA_SET_PIO_TIMING
54 #define ATA_TARGET_POLLING
56 #endif /* ATA_TARGET_H */