WSL2-Linux-Kernel/drivers/ide
Bartlomiej Zolnierkiewicz 8185d5aa93 ide: /proc/ide/hd*/settings rework
* Add struct ide_devset, S_* flags, *DEVSET() & ide*_devset_*() macros.

* Add 'const struct ide_devset **settings' to ide_driver_t.

* Use 'const struct ide_devset **settings' in ide_drive_t instead of
  'struct ide_settings_s *settings'.  Then convert core code and device
  drivers to use struct ide_devset and co.:

  - device settings are no longer allocated dynamically for each device
    but instead there is an unique struct ide_devset instance per setting

  - device driver keeps the pointer to the table of pointers to its
    settings in ide_driver_t.settings

  - generic settings are kept in ide_generic_setting[]

  - ide_proc_[un]register_driver(), ide_find_setting_by_name(),
    ide_{read,write}_setting() and proc_ide_{read,write}_settings()
    are updated accordingly

  - ide*_add_settings() are removed

* Remove no longer used __ide_add_setting(), ide_add_setting(),
  __ide_remove_setting() and auto_remove_settings().

* Remove no longer used TYPE_*, SETTING_*, ide_procset_t
  and ide_settings_t.

* ->keep_settings, ->using_dma, ->unmask, ->noflush, ->dsc_overlap,
  ->nice1, ->addressing, ->wcache and ->nowerr ide_drive_t fields
  can now be bitfield flags.

While at it:

* Rename ide_find_setting_by_name() to ide_find_setting().

* Rename write_wcache() to set_wcache().

There should be no functional changes caused by this patch.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-10-10 22:39:28 +02:00
..
arm ide: include <linux/hdreg.h> only when needed 2008-10-10 22:39:27 +02:00
h8300 ide: add ide_host_add() helper 2008-07-23 19:55:57 +02:00
legacy ide: include <linux/hdreg.h> only when needed 2008-10-10 22:39:27 +02:00
mips IDE: Fix platform device registration in Swarm IDE driver (v2) 2008-10-05 18:23:28 +02:00
pci ide: include <linux/hdreg.h> only when needed 2008-10-10 22:39:27 +02:00
ppc ide: make drive->id an union (take 2) 2008-10-10 22:39:19 +02:00
Kconfig ide: remove CONFIG_IDEDISK_MULTI_MODE 2008-10-10 22:39:26 +02:00
Makefile ide: remove stale comments from drivers/ide/Makefile 2008-07-24 22:53:36 +02:00
ide-acpi.c ide: make drive->id an union (take 2) 2008-10-10 22:39:19 +02:00
ide-atapi.c ide: use ATA_* defines instead of *_STAT and *_ERR ones 2008-10-10 22:39:21 +02:00
ide-cd.c ide: /proc/ide/hd*/settings rework 2008-10-10 22:39:28 +02:00
ide-cd.h ide-cd: convert to using the new atapi_flags 2008-07-23 19:56:02 +02:00
ide-cd_ioctl.c ide: ide-cd_ioctl.c fix sparse integer as NULL pointer warnings 2008-07-23 19:56:02 +02:00
ide-cd_verbose.c block: replace sizeof(rq->cmd) with BLK_MAX_CDB 2008-04-29 14:48:55 +02:00
ide-disk.c ide: /proc/ide/hd*/settings rework 2008-10-10 22:39:28 +02:00
ide-dma.c ide: use ATA_* defines instead of *_STAT and *_ERR ones 2008-10-10 22:39:21 +02:00
ide-floppy.c ide: /proc/ide/hd*/settings rework 2008-10-10 22:39:28 +02:00
ide-generic.c ide-generic: remove ide_default_{io_base,irq}() inlines (take 3) 2008-07-24 22:53:31 +02:00
ide-io.c ide: include <linux/hdreg.h> only when needed 2008-10-10 22:39:27 +02:00
ide-iops.c ide: include <linux/hdreg.h> only when needed 2008-10-10 22:39:27 +02:00
ide-lib.c ide: include <linux/hdreg.h> only when needed 2008-10-10 22:39:27 +02:00
ide-pio-blacklist.c ide: move PIO blacklist to ide-pio-blacklist.c 2008-07-16 20:33:39 +02:00
ide-pnp.c ide: add ide_host_add() helper 2008-07-23 19:55:57 +02:00
ide-probe.c ide: /proc/ide/hd*/settings rework 2008-10-10 22:39:28 +02:00
ide-proc.c ide: /proc/ide/hd*/settings rework 2008-10-10 22:39:28 +02:00
ide-scan-pci.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
ide-tape.c ide: /proc/ide/hd*/settings rework 2008-10-10 22:39:28 +02:00
ide-taskfile.c ide: use ATA_* defines instead of *_STAT and *_ERR ones 2008-10-10 22:39:21 +02:00
ide-timings.c ide: include <linux/hdreg.h> only when needed 2008-10-10 22:39:27 +02:00
ide.c ide: /proc/ide/hd*/settings rework 2008-10-10 22:39:28 +02:00
setup-pci.c ide: drop 'name' parameter from ->init_chipset method 2008-07-24 22:53:33 +02:00