sd.h (0788c4eda006148f9c3c2ed30e6f746bd538f11f) | sd.h (d41003513e61dd9d4974cb441d30b63650b85654) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _SCSI_DISK_H 3#define _SCSI_DISK_H 4 5/* 6 * More than enough for everybody ;) The huge number of majors 7 * is a leftover from 16bit dev_t days, we don't really need that 8 * much numberspace. --- 199 unchanged lines hidden (view full) --- 208#ifdef CONFIG_BLK_DEV_ZONED 209 210extern int sd_zbc_read_zones(struct scsi_disk *sdkp, unsigned char *buffer); 211extern void sd_zbc_print_zones(struct scsi_disk *sdkp); 212blk_status_t sd_zbc_setup_zone_mgmt_cmnd(struct scsi_cmnd *cmd, 213 unsigned char op, bool all); 214extern void sd_zbc_complete(struct scsi_cmnd *cmd, unsigned int good_bytes, 215 struct scsi_sense_hdr *sshdr); | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _SCSI_DISK_H 3#define _SCSI_DISK_H 4 5/* 6 * More than enough for everybody ;) The huge number of majors 7 * is a leftover from 16bit dev_t days, we don't really need that 8 * much numberspace. --- 199 unchanged lines hidden (view full) --- 208#ifdef CONFIG_BLK_DEV_ZONED 209 210extern int sd_zbc_read_zones(struct scsi_disk *sdkp, unsigned char *buffer); 211extern void sd_zbc_print_zones(struct scsi_disk *sdkp); 212blk_status_t sd_zbc_setup_zone_mgmt_cmnd(struct scsi_cmnd *cmd, 213 unsigned char op, bool all); 214extern void sd_zbc_complete(struct scsi_cmnd *cmd, unsigned int good_bytes, 215 struct scsi_sense_hdr *sshdr); |
216extern int sd_zbc_report_zones(struct gendisk *disk, sector_t sector, 217 struct blk_zone *zones, unsigned int *nr_zones); | 216int sd_zbc_report_zones(struct gendisk *disk, sector_t sector, 217 unsigned int nr_zones, report_zones_cb cb, void *data); |
218 219#else /* CONFIG_BLK_DEV_ZONED */ 220 221static inline int sd_zbc_read_zones(struct scsi_disk *sdkp, 222 unsigned char *buf) 223{ 224 return 0; 225} --- 19 unchanged lines hidden --- | 218 219#else /* CONFIG_BLK_DEV_ZONED */ 220 221static inline int sd_zbc_read_zones(struct scsi_disk *sdkp, 222 unsigned char *buf) 223{ 224 return 0; 225} --- 19 unchanged lines hidden --- |