linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] SATA ACPI build (applies to 2.6.16-git9)
@ 2006-01-14  6:42 Randy.Dunlap
  2006-01-14  6:44 ` [PATCH 2/4] libata debugging support Randy.Dunlap
                   ` (3 more replies)
  0 siblings, 4 replies; 28+ messages in thread
From: Randy.Dunlap @ 2006-01-14  6:42 UTC (permalink / raw)
  To: ide, lkml; +Cc: akpm, jgarzik

From: Randy Dunlap <randy_d_dunlap@linux.intel.com>

Add ata_acpi in Makefile and Kconfig.
Add ACPI obj_handle.
Add ata_acpi.c to libata kernel-doc template file.

Signed-off-by: Randy Dunlap <randy_d_dunlap@linux.intel.com>
---
 Documentation/DocBook/libata.tmpl |    6 ++++++
 drivers/scsi/Kconfig              |    5 +++++
 drivers/scsi/Makefile             |    3 +++
 include/linux/libata.h            |    6 ++++++
 4 files changed, 20 insertions(+)

--- linux-2615-g9.orig/drivers/scsi/Makefile
+++ linux-2615-g9/drivers/scsi/Makefile
@@ -164,6 +164,9 @@ CFLAGS_ncr53c8xx.o	:= $(ncr53c8xx-flags-
 zalon7xx-objs	:= zalon.o ncr53c8xx.o
 NCR_Q720_mod-objs	:= NCR_Q720.o ncr53c8xx.o
 libata-objs	:= libata-core.o libata-scsi.o
+ifeq ($(CONFIG_SCSI_SATA_ACPI),y)
+  libata-objs	+= libata-acpi.o
+endif
 oktagon_esp_mod-objs	:= oktagon_esp.o oktagon_io.o
 
 # Files generated that shall be removed upon make clean
--- linux-2615-g9.orig/drivers/scsi/Kconfig
+++ linux-2615-g9/drivers/scsi/Kconfig
@@ -599,6 +599,11 @@ config SCSI_SATA_INTEL_COMBINED
 	depends on IDE=y && !BLK_DEV_IDE_SATA && (SCSI_SATA_AHCI || SCSI_ATA_PIIX)
 	default y
 
+config SCSI_SATA_ACPI
+	bool
+	depends on SCSI_SATA && ACPI
+	default y
+
 config SCSI_BUSLOGIC
 	tristate "BusLogic SCSI support"
 	depends on (PCI || ISA || MCA) && SCSI && ISA_DMA_API
--- linux-2615-g9.orig/include/linux/libata.h
+++ linux-2615-g9/include/linux/libata.h
@@ -33,6 +33,7 @@
 #include <asm/io.h>
 #include <linux/ata.h>
 #include <linux/workqueue.h>
+#include <acpi/acpi.h>
 
 /*
  * compile-time options
@@ -315,6 +316,11 @@ struct ata_device {
 	u16			cylinders;	/* Number of cylinders */
 	u16			heads;		/* Number of heads */
 	u16			sectors;	/* Number of sectors per track */
+
+#ifdef CONFIG_SCSI_SATA_ACPI
+	/* ACPI objects info */
+	acpi_handle		obj_handle;
+#endif
 };
 
 struct ata_port {
--- linux-2615-g9.orig/Documentation/DocBook/libata.tmpl
+++ linux-2615-g9/Documentation/DocBook/libata.tmpl
@@ -787,6 +787,12 @@ and other resources, etc.
 !Idrivers/scsi/libata-scsi.c
   </chapter>
 
+  <chapter id="libataAcpi">
+     <title>libata ACPI interfaces/methods</title>
+!Edrivers/scsi/ata_acpi.c
+!Idrivers/scsi/ata_acpi.c
+  </chapter>
+
   <chapter id="ataExceptions">
      <title>ATA errors &amp; exceptions</title>
 


---

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2006-01-18 12:24 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-14  6:42 [PATCH 1/4] SATA ACPI build (applies to 2.6.16-git9) Randy.Dunlap
2006-01-14  6:44 ` [PATCH 2/4] libata debugging support Randy.Dunlap
2006-01-14  6:45   ` [PATCH 3/4] SATA ACPI objects support Randy.Dunlap
2006-01-14  6:45     ` [PATCH 4/4] additional libata parameters Randy.Dunlap
2006-01-18  0:35   ` [PATCH 2/4] libata debugging support Jeff Garzik
2006-01-14  7:28 ` [PATCH 1/4] SATA ACPI build (applies to 2.6.16-git9) Sam Ravnborg
2006-01-14  7:30   ` Randy.Dunlap
2006-01-16 11:56 ` Erik Mouw
2006-01-16 14:07   ` Erik Mouw
2006-01-16 21:04     ` Adrian Bunk
2006-01-17  9:01       ` Erik Mouw
2006-01-17 11:27         ` Adrian Bunk
2006-01-16 22:46     ` Jens Axboe
2006-01-16 22:48       ` Randy.Dunlap
2006-01-16 23:00       ` Alan Cox
2006-01-16 23:10         ` Jens Axboe
2006-01-18 12:24         ` Pavel Machek
2006-01-17  9:09       ` Erik Mouw
2006-01-16 15:40   ` Randy.Dunlap
2006-01-16 12:31 ` Jens Axboe
2006-01-16 15:37   ` Randy.Dunlap
2006-01-16 15:44     ` Jens Axboe
2006-01-16 15:51   ` Alan Cox
2006-01-16 15:52     ` Jens Axboe
2006-01-16 15:58     ` Randy.Dunlap
2006-01-16 16:02       ` Jens Axboe
2006-01-16 16:08         ` Randy.Dunlap
2006-01-16 22:43           ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).