pata_macio.c (62d15dba0aa4448c15da9c9443018c70fc2527b2) | pata_macio.c (cf02f71c3ef870f0376a723fd9c95d288f381984) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Libata based driver for Apple "macio" family of PATA controllers 4 * 5 * Copyright 2008/2009 Benjamin Herrenschmidt, IBM Corp 6 * <benh@kernel.crashing.org> 7 * 8 * Some bits and pieces from drivers/ide/ppc/pmac.c --- 7 unchanged lines hidden (view full) --- 16#include <linux/module.h> 17#include <linux/init.h> 18#include <linux/blkdev.h> 19#include <linux/ata.h> 20#include <linux/libata.h> 21#include <linux/adb.h> 22#include <linux/pmu.h> 23#include <linux/scatterlist.h> | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Libata based driver for Apple "macio" family of PATA controllers 4 * 5 * Copyright 2008/2009 Benjamin Herrenschmidt, IBM Corp 6 * <benh@kernel.crashing.org> 7 * 8 * Some bits and pieces from drivers/ide/ppc/pmac.c --- 7 unchanged lines hidden (view full) --- 16#include <linux/module.h> 17#include <linux/init.h> 18#include <linux/blkdev.h> 19#include <linux/ata.h> 20#include <linux/libata.h> 21#include <linux/adb.h> 22#include <linux/pmu.h> 23#include <linux/scatterlist.h> |
24#include <linux/irqdomain.h> |
|
24#include <linux/of.h> 25#include <linux/gfp.h> 26#include <linux/pci.h> 27 28#include <scsi/scsi.h> 29#include <scsi/scsi_host.h> 30#include <scsi/scsi_device.h> 31 --- 871 unchanged lines hidden (view full) --- 903 904 /* Let the libata core take it from there */ 905 ata_host_resume(priv->host); 906 907 return 0; 908} 909#endif /* CONFIG_PM_SLEEP */ 910 | 25#include <linux/of.h> 26#include <linux/gfp.h> 27#include <linux/pci.h> 28 29#include <scsi/scsi.h> 30#include <scsi/scsi_host.h> 31#include <scsi/scsi_device.h> 32 --- 871 unchanged lines hidden (view full) --- 904 905 /* Let the libata core take it from there */ 906 ata_host_resume(priv->host); 907 908 return 0; 909} 910#endif /* CONFIG_PM_SLEEP */ 911 |
911static const struct scsi_host_template pata_macio_sht = { | 912static struct scsi_host_template pata_macio_sht = { |
912 __ATA_BASE_SHT(DRV_NAME), 913 .sg_tablesize = MAX_DCMDS, 914 /* We may not need that strict one */ 915 .dma_boundary = ATA_DMA_BOUNDARY, 916 /* Not sure what the real max is but we know it's less than 64K, let's 917 * use 64K minus 256 918 */ 919 .max_segment_size = MAX_DBDMA_SEG, --- 493 unchanged lines hidden --- | 913 __ATA_BASE_SHT(DRV_NAME), 914 .sg_tablesize = MAX_DCMDS, 915 /* We may not need that strict one */ 916 .dma_boundary = ATA_DMA_BOUNDARY, 917 /* Not sure what the real max is but we know it's less than 64K, let's 918 * use 64K minus 256 919 */ 920 .max_segment_size = MAX_DBDMA_SEG, --- 493 unchanged lines hidden --- |