android_kernel_xiaomi_sm8350/drivers/ide
Bartlomiej Zolnierkiewicz 165701d9fc siimage: add sil_* I/O ops
Add sil_iowrite{8,16,32}() and sil_ioread{8,16}() helpers, then use them to
merge code accessing configuration registers through PCI and MMIO together.

[ because of this SATA initialization bits from setup_mmio_siimage() are
  moved to init_chipset_siimage() ]

This also cuts code size a bit:

   text    data     bss     dec     hex filename
   4437     164       0    4601    11f9 drivers/ide/pci/siimage.o.before
   3979     164       0    4143    102f drivers/ide/pci/siimage.o.after

While at it:

* Use I/O ops directly instead of using ->IN{B,W} and ->OUT{B,W}.

* Fixup CodingStyle in setup_mmio_siimage().

* Rename 'tmpbyte' variable to 'tmp' in init_chipset_siimage().

There should be no functional changes caused by this patch.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-04-28 23:44:38 +02:00
..
arm ide: add IDE_HFLAG_MMIO host flag (take 2) 2008-04-28 23:44:37 +02:00
cris ide: merge ->atapi_*put_bytes and ->ata_*put_data methods 2008-04-28 23:44:36 +02:00
h8300 ide: remove ->INS{W,L} and ->OUTS{W,L} methods 2008-04-28 23:44:37 +02:00
legacy ide: add IDE_HFLAG_MMIO host flag (take 2) 2008-04-28 23:44:37 +02:00
mips ide: remove ->INS{W,L} and ->OUTS{W,L} methods 2008-04-28 23:44:37 +02:00
pci siimage: add sil_* I/O ops 2008-04-28 23:44:38 +02:00
ppc ide: add IDE_HFLAG_MMIO host flag (take 2) 2008-04-28 23:44:37 +02:00
ide-acpi.c ide: add "noacpi" / "acpigtf" / "acpionboot" parameters 2008-04-27 15:38:30 +02:00
ide-cd_ioctl.c ide-cd: mark REQ_TYPE_ATA_PC write requests with REQ_RW flag 2008-03-07 21:53:49 +01:00
ide-cd_verbose.c ide-cd: move VERBOSE_IDE_CD_ERRORS code to ide-cd_verbose.c 2008-02-01 23:09:23 +01:00
ide-cd.c ide: merge ->atapi_*put_bytes and ->ata_*put_data methods 2008-04-28 23:44:36 +02:00
ide-cd.h ide-cd: remove the internal 64k buffer 2008-04-26 17:36:37 +02:00
ide-disk.c ide-disk: fix issues found by checkpatch.pl 2008-04-26 17:36:37 +02:00
ide-dma.c ide: constify struct ide_dma_ops 2008-04-26 22:25:24 +02:00
ide-floppy.c ide: merge ->atapi_*put_bytes and ->ata_*put_data methods 2008-04-28 23:44:36 +02:00
ide-generic.c ide: cleanup setting hwif->mmio flag 2008-04-26 22:25:19 +02:00
ide-io.c ide: merge ->atapi_*put_bytes and ->ata_*put_data methods 2008-04-28 23:44:36 +02:00
ide-iops.c ide: remove ->INS{W,L} and ->OUTS{W,L} methods 2008-04-28 23:44:37 +02:00
ide-lib.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
ide-pnp.c ide: make ide_unregister() take 'ide_hwif_t *' as an argument (take 2) 2008-04-27 15:38:31 +02:00
ide-probe.c ide: merge ->atapi_*put_bytes and ->ata_*put_data methods 2008-04-28 23:44:36 +02:00
ide-proc.c ide: remove now unused ide_pci_create_host_proc() 2008-04-27 15:38:34 +02:00
ide-scan-pci.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
ide-tape.c ide: merge ->atapi_*put_bytes and ->ata_*put_data methods 2008-04-28 23:44:36 +02:00
ide-taskfile.c ide: merge ->atapi_*put_bytes and ->ata_*put_data methods 2008-04-28 23:44:36 +02:00
ide-timing.h Spelling fixes: lenght->length 2008-02-03 15:42:53 +02:00
ide.c ide: add struct ide_io_ports (take 3) 2008-04-27 15:38:32 +02:00
Kconfig ide/Kconfig: BLK_DEV_4DRIVES should be a tristate 2008-04-26 17:36:31 +02:00
Makefile ide: fix ide_find_port() 2008-04-18 00:46:21 +02:00
setup-pci.c ide: constify struct ide_dma_ops 2008-04-26 22:25:24 +02:00