aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorEliot Blennerhassett <eliot@blennerhassett.gen.nz>2014-11-19 22:22:51 -0500
committerTakashi Iwai <tiwai@suse.de>2014-11-22 16:28:36 -0500
commite51c58c982a0f81baa6fdee7331a8700c8586be5 (patch)
tree5ff1d0d82930475d4b0fa58620cdb4f50ba1f64e /sound/pci
parent35a8dc1f66a0fa88144fcbcd562eb2b2c1e36f11 (diff)
ALSA: asihpi: Use CONFIG_64BIT directly
Signed-off-by: Eliot Blennerhassett <eliot@blennerhassett.gen.nz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/asihpi/hpi_internal.h16
-rw-r--r--sound/pci/asihpi/hpios.h4
2 files changed, 10 insertions, 10 deletions
diff --git a/sound/pci/asihpi/hpi_internal.h b/sound/pci/asihpi/hpi_internal.h
index bc86cb726d79..c9bdc284cdaf 100644
--- a/sound/pci/asihpi/hpi_internal.h
+++ b/sound/pci/asihpi/hpi_internal.h
@@ -554,17 +554,21 @@ struct hpi_pci {
554 struct pci_dev *pci_dev; 554 struct pci_dev *pci_dev;
555}; 555};
556 556
557/** Adapter specification resource */
558struct hpi_adapter_specification {
559 u32 type;
560 u8 modules[4];
561};
562
557struct hpi_resource { 563struct hpi_resource {
558 union { 564 union {
559 const struct hpi_pci *pci; 565 const struct hpi_pci *pci;
560 const char *net_if; 566 const char *net_if;
567 struct hpi_adapter_specification adapter_spec;
568 const void *sw_if;
561 } r; 569 } r;
562#ifndef HPI64BIT /* keep structure size constant */
563 u32 pad_to64;
564#endif
565 u16 bus_type; /* HPI_BUS_PNPISA, _PCI, _USB etc */ 570 u16 bus_type; /* HPI_BUS_PNPISA, _PCI, _USB etc */
566 u16 padding; 571 u16 padding;
567
568}; 572};
569 573
570/** Format info used inside struct hpi_message 574/** Format info used inside struct hpi_message
@@ -582,7 +586,7 @@ struct hpi_msg_format {
582struct hpi_msg_data { 586struct hpi_msg_data {
583 struct hpi_msg_format format; 587 struct hpi_msg_format format;
584 u8 *pb_data; 588 u8 *pb_data;
585#ifndef HPI64BIT 589#ifndef CONFIG_64BIT
586 u32 padding; 590 u32 padding;
587#endif 591#endif
588 u32 data_size; 592 u32 data_size;
@@ -595,7 +599,7 @@ struct hpi_data_legacy32 {
595 u32 data_size; 599 u32 data_size;
596}; 600};
597 601
598#ifdef HPI64BIT 602#ifdef CONFIG_64BIT
599/* Compatibility version of struct hpi_data*/ 603/* Compatibility version of struct hpi_data*/
600struct hpi_data_compat32 { 604struct hpi_data_compat32 {
601 struct hpi_msg_format format; 605 struct hpi_msg_format format;
diff --git a/sound/pci/asihpi/hpios.h b/sound/pci/asihpi/hpios.h
index d3fbd0d76c37..d17d017940d8 100644
--- a/sound/pci/asihpi/hpios.h
+++ b/sound/pci/asihpi/hpios.h
@@ -41,10 +41,6 @@ HPI Operating System Specific macros for Linux Kernel driver
41 41
42#define HPI_NO_OS_FILE_OPS 42#define HPI_NO_OS_FILE_OPS
43 43
44#ifdef CONFIG_64BIT
45#define HPI64BIT
46#endif
47
48/** Details of a memory area allocated with pci_alloc_consistent 44/** Details of a memory area allocated with pci_alloc_consistent
49Need all info for parameters to pci_free_consistent 45Need all info for parameters to pci_free_consistent
50*/ 46*/