Commit 74d6048c authored by Jens Axboe's avatar Jens Axboe

missed pdc4030.h update:

o silly IS_PDC4030_DRIVE definition
parent ab254e4f
...@@ -11,6 +11,30 @@ ...@@ -11,6 +11,30 @@
#ifndef IDE_PROMISE_H #ifndef IDE_PROMISE_H
#define IDE_PROMISE_H #define IDE_PROMISE_H
#include <linux/config.h>
#ifndef CONFIG_BLK_DEV_PDC4030
# ifdef _IDE_DISK
# define IS_PDC4030_DRIVE (0) /* auto-NULLs out pdc4030 code */
ide_startstop_t promise_rw_disk(ide_drive_t *, struct request *, unsigned long);
ide_startstop_t promise_rw_disk(ide_drive_t *drive, struct request *rq, unsigned long block)
{
return ide_stopped;
}
# endif /* _IDE_DISK */
#else /* CONFIG_BLK_DEV_PDC4030 */
# ifdef _IDE_DISK
# define IS_PDC4030_DRIVE (HWIF(drive)->chipset == ide_pdc4030)
ide_startstop_t promise_rw_disk(ide_drive_t *, struct request *, unsigned long);
# endif /* _IDE_DISK */
#endif /* CONFIG_BLK_DEV_PDC4030 */
#ifdef __PROMISE_4030
#define PROMISE_EXTENDED_COMMAND 0xF0 #define PROMISE_EXTENDED_COMMAND 0xF0
#define PROMISE_READ 0xF2 #define PROMISE_READ 0xF2
#define PROMISE_WRITE 0xF3 #define PROMISE_WRITE 0xF3
...@@ -41,4 +65,6 @@ struct dc_ident { ...@@ -41,4 +65,6 @@ struct dc_ident {
u8 pad[SECTOR_WORDS*4 - 32]; u8 pad[SECTOR_WORDS*4 - 32];
}; };
#endif /* __PROMISE_4030 */
#endif /* IDE_PROMISE_H */ #endif /* IDE_PROMISE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment