spi: sprd: adi: Remove redundant address bits setting
[linux/fpc-iii.git] / drivers / ide / ide-gd.h
blobaf3fe1880e9e247515d4ea457e10b6b8e8bee491
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __IDE_GD_H
3 #define __IDE_GD_H
5 #define DRV_NAME "ide-gd"
6 #define PFX DRV_NAME ": "
8 /* define to see debug info */
9 #define IDE_GD_DEBUG_LOG 0
11 #if IDE_GD_DEBUG_LOG
12 #define ide_debug_log(lvl, fmt, args...) __ide_debug_log(lvl, fmt, ## args)
13 #else
14 #define ide_debug_log(lvl, fmt, args...) do {} while (0)
15 #endif
17 struct ide_disk_obj {
18 ide_drive_t *drive;
19 struct ide_driver *driver;
20 struct gendisk *disk;
21 struct device dev;
22 unsigned int openers; /* protected by BKL for now */
24 /* used for blk_{fs,pc}_request() requests */
25 struct ide_atapi_pc queued_pc;
27 /* Last error information */
28 u8 sense_key, asc, ascq;
30 int progress_indication;
32 /* Device information */
33 /* Current format */
34 int blocks, block_size, bs_factor;
35 /* Last format capacity descriptor */
36 u8 cap_desc[8];
37 /* Copy of the flexible disk page */
38 u8 flexible_disk_page[32];
41 sector_t ide_gd_capacity(ide_drive_t *);
43 #endif /* __IDE_GD_H */