2 * linux/drivers/ide/legacy/pdc4030.h
4 * Copyright (C) 1995-1998 Linus Torvalds & authors
8 * Principal author: Peter Denison <peterd@pnd-pc.demon.co.uk>
14 #include <linux/config.h>
16 #ifndef CONFIG_BLK_DEV_PDC4030
19 # define IS_PDC4030_DRIVE (0) /* auto-NULLs out pdc4030 code */
21 ide_startstop_t promise_rw_disk(ide_drive_t *, struct request *, unsigned long);
23 ide_startstop_t promise_rw_disk(ide_drive_t *drive, struct request *rq, unsigned long block)
27 # endif /* _IDE_DISK */
28 #else /* CONFIG_BLK_DEV_PDC4030 */
30 # define IS_PDC4030_DRIVE (HWIF(drive)->chipset == ide_pdc4030)
32 ide_startstop_t promise_rw_disk(ide_drive_t *, struct request *, unsigned long);
34 # endif /* _IDE_DISK */
35 #endif /* CONFIG_BLK_DEV_PDC4030 */
38 #define PROMISE_EXTENDED_COMMAND 0xF0
39 #define PROMISE_READ 0xF2
40 #define PROMISE_WRITE 0xF3
41 /* Extended commands - main command code = 0xf0 */
42 #define PROMISE_GET_CONFIG 0x10
43 #define PROMISE_IDENTIFY 0x20
45 struct translation_mode {
64 struct translation_mode current_tm[4];
65 u8 pad[SECTOR_WORDS*4 - 32];
68 #endif /* __PROMISE_4030 */
70 #endif /* IDE_PROMISE_H */