* [PATCH v2] scsi: dpt: remove i2o header in uapi
[not found] ` <1443712510-6714-1-git-send-email-gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
@ 2015-10-03 23:22 ` Gabriel Laskar
[not found] ` <1443914571-19312-1-git-send-email-gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
2015-10-04 19:04 ` Arnd Bergmann
0 siblings, 2 replies; 3+ messages in thread
From: Gabriel Laskar @ 2015-10-03 23:22 UTC (permalink / raw)
To: Adaptec OEM Raid Solutions, James E.J. Bottomley, David S. Miller,
Hans Verkuil, Michael S. Tsirkin, Greg Kroah-Hartman,
Mauro Carvalho Chehab, Masahiro Yamada, stephen hemminger,
Nicolas Dichtel, open list:DPT_I2O SCSI RAID DRIVER, open list,
open list:ABI/API
Cc: Gabriel Laskar, Arnd Bergmann
The i2o subsystem was removed by
commit 4a72a7af462d ("staging: remove i2o subsystem") but the header was
still used by drivers/scsi/dpt_i2o.c driver.
This patch moves the structures used from the header into dpti_i2o.h.
CC: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
CC: Greg Kroah-Hartman <gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>
Signed-off-by: Gabriel Laskar <gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
---
drivers/scsi/dpt/dpti_i2o.h | 134 +++++++++++++-
include/uapi/linux/Kbuild | 1 -
include/uapi/linux/i2o-dev.h | 421 -------------------------------------------
3 files changed, 132 insertions(+), 424 deletions(-)
delete mode 100644 include/uapi/linux/i2o-dev.h
diff --git a/drivers/scsi/dpt/dpti_i2o.h b/drivers/scsi/dpt/dpti_i2o.h
index bd9e31e..50515d3 100644
--- a/drivers/scsi/dpt/dpti_i2o.h
+++ b/drivers/scsi/dpt/dpti_i2o.h
@@ -19,8 +19,6 @@
#ifdef __KERNEL__ /* This file to be included by kernel only */
-#include <linux/i2o-dev.h>
-
#include <linux/notifier.h>
#include <linux/atomic.h>
@@ -41,6 +39,137 @@
#define I2O_MAX_MANAGERS 4
+#define I2O_BUS_LOCAL 0
+#define I2O_BUS_ISA 1
+#define I2O_BUS_EISA 2
+/* was I2O_BUS_MCA 3 */
+#define I2O_BUS_PCI 4
+#define I2O_BUS_PCMCIA 5
+#define I2O_BUS_NUBUS 6
+#define I2O_BUS_CARDBUS 7
+#define I2O_BUS_UNKNOWN 0x80
+
+typedef struct _i2o_pci_bus {
+ __u8 PciFunctionNumber;
+ __u8 PciDeviceNumber;
+ __u8 PciBusNumber;
+ __u8 reserved;
+ __u16 PciVendorID;
+ __u16 PciDeviceID;
+} i2o_pci_bus;
+
+typedef struct _i2o_local_bus {
+ __u16 LbBaseIOPort;
+ __u16 reserved;
+ __u32 LbBaseMemoryAddress;
+} i2o_local_bus;
+
+typedef struct _i2o_isa_bus {
+ __u16 IsaBaseIOPort;
+ __u8 CSN;
+ __u8 reserved;
+ __u32 IsaBaseMemoryAddress;
+} i2o_isa_bus;
+
+typedef struct _i2o_eisa_bus_info {
+ __u16 EisaBaseIOPort;
+ __u8 reserved;
+ __u8 EisaSlotNumber;
+ __u32 EisaBaseMemoryAddress;
+} i2o_eisa_bus;
+
+typedef struct _i2o_mca_bus {
+ __u16 McaBaseIOPort;
+ __u8 reserved;
+ __u8 McaSlotNumber;
+ __u32 McaBaseMemoryAddress;
+} i2o_mca_bus;
+
+typedef struct _i2o_other_bus {
+ __u16 BaseIOPort;
+ __u16 reserved;
+ __u32 BaseMemoryAddress;
+} i2o_other_bus;
+
+typedef struct _i2o_hrt_entry {
+ __u32 adapter_id;
+ __u32 parent_tid:12;
+ __u32 state:4;
+ __u32 bus_num:8;
+ __u32 bus_type:8;
+ union {
+ i2o_pci_bus pci_bus;
+ i2o_local_bus local_bus;
+ i2o_isa_bus isa_bus;
+ i2o_eisa_bus eisa_bus;
+ i2o_mca_bus mca_bus;
+ i2o_other_bus other_bus;
+ } bus;
+} i2o_hrt_entry;
+
+typedef struct _i2o_hrt {
+ __u16 num_entries;
+ __u8 entry_len;
+ __u8 hrt_version;
+ __u32 change_ind;
+ i2o_hrt_entry hrt_entry[1];
+} i2o_hrt;
+
+typedef struct _i2o_lct_entry {
+ __u32 entry_size:16;
+ __u32 tid:12;
+ __u32 reserved:4;
+ __u32 change_ind;
+ __u32 device_flags;
+ __u32 class_id:12;
+ __u32 version:4;
+ __u32 vendor_id:16;
+ __u32 sub_class;
+ __u32 user_tid:12;
+ __u32 parent_tid:12;
+ __u32 bios_info:8;
+ __u8 identity_tag[8];
+ __u32 event_capabilities;
+} i2o_lct_entry;
+
+typedef struct _i2o_lct {
+ __u32 table_size:16;
+ __u32 boot_tid:12;
+ __u32 lct_ver:4;
+ __u32 iop_flags;
+ __u32 change_ind;
+ i2o_lct_entry lct_entry[1];
+} i2o_lct;
+
+typedef struct _i2o_status_block {
+ __u16 org_id;
+ __u16 reserved;
+ __u16 iop_id:12;
+ __u16 reserved1:4;
+ __u16 host_unit_id;
+ __u16 segment_number:12;
+ __u16 i2o_version:4;
+ __u8 iop_state;
+ __u8 msg_type;
+ __u16 inbound_frame_size;
+ __u8 init_code;
+ __u8 reserved2;
+ __u32 max_inbound_frames;
+ __u32 cur_inbound_frames;
+ __u32 max_outbound_frames;
+ char product_id[24];
+ __u32 expected_lct_size;
+ __u32 iop_capabilities;
+ __u32 desired_mem_size;
+ __u32 current_mem_size;
+ __u32 current_mem_base;
+ __u32 desired_io_size;
+ __u32 current_io_size;
+ __u32 current_io_base;
+ __u32 reserved3:24;
+ __u32 cmd_status:8;
+} i2o_status_block;
+
/*
* I2O Interface Objects
*/
@@ -131,6 +260,7 @@ struct i2o_sys_tbl
struct i2o_sys_tbl_entry iops[0];
};
+
/*
* I2O classes / subclasses
*/
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild
index f7b2db4..38f6e50 100644
--- a/include/uapi/linux/Kbuild
+++ b/include/uapi/linux/Kbuild
@@ -151,7 +151,6 @@ header-y += hyperv.h
header-y += hysdn_if.h
header-y += i2c-dev.h
header-y += i2c.h
-header-y += i2o-dev.h
header-y += i8k.h
header-y += icmp.h
header-y += icmpv6.h
diff --git a/include/uapi/linux/i2o-dev.h b/include/uapi/linux/i2o-dev.h
deleted file mode 100644
index a8093bf..0000000
--
2.6.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] scsi: dpt: remove i2o header in uapi
[not found] ` <1443914571-19312-1-git-send-email-gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
@ 2015-10-04 12:12 ` Greg Kroah-Hartman
0 siblings, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2015-10-04 12:12 UTC (permalink / raw)
To: Gabriel Laskar
Cc: Adaptec OEM Raid Solutions, James E.J. Bottomley, David S. Miller,
Hans Verkuil, Michael S. Tsirkin, Mauro Carvalho Chehab,
Masahiro Yamada, stephen hemminger, Nicolas Dichtel,
open list:DPT_I2O SCSI RAID DRIVER, open list, open list:ABI/API,
Arnd Bergmann
On Sun, Oct 04, 2015 at 01:22:50AM +0200, Gabriel Laskar wrote:
> The i2o subsystem was removed by
> commit 4a72a7af462d ("staging: remove i2o subsystem") but the header was
> still used by drivers/scsi/dpt_i2o.c driver.
>
> This patch moves the structures used from the header into dpti_i2o.h.
>
> CC: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
> CC: Greg Kroah-Hartman <gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>
> Signed-off-by: Gabriel Laskar <gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
> ---
> drivers/scsi/dpt/dpti_i2o.h | 134 +++++++++++++-
> include/uapi/linux/Kbuild | 1 -
> include/uapi/linux/i2o-dev.h | 421 -------------------------------------------
> 3 files changed, 132 insertions(+), 424 deletions(-)
> delete mode 100644 include/uapi/linux/i2o-dev.h
Acked-by: Greg Kroah-Hartman <gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] scsi: dpt: remove i2o header in uapi
2015-10-03 23:22 ` [PATCH v2] scsi: dpt: remove i2o header in uapi Gabriel Laskar
[not found] ` <1443914571-19312-1-git-send-email-gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
@ 2015-10-04 19:04 ` Arnd Bergmann
1 sibling, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2015-10-04 19:04 UTC (permalink / raw)
To: Gabriel Laskar
Cc: Adaptec OEM Raid Solutions, James E.J. Bottomley, David S. Miller,
Hans Verkuil, Michael S. Tsirkin, Greg Kroah-Hartman,
Mauro Carvalho Chehab, Masahiro Yamada, stephen hemminger,
Nicolas Dichtel, open list:DPT_I2O SCSI RAID DRIVER, open list,
open list:ABI/API
On Sunday 04 October 2015 01:22:50 Gabriel Laskar wrote:
> The i2o subsystem was removed by
> commit 4a72a7af462d ("staging: remove i2o subsystem") but the header was
> still used by drivers/scsi/dpt_i2o.c driver.
>
> This patch moves the structures used from the header into dpti_i2o.h.
>
> CC: Arnd Bergmann <arnd@arndb.de>
> CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Signed-off-by: Gabriel Laskar <gabriel@lse.epita.fr>
>
Acked-by: Arnd Bergmann <arnd@arndb.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-04 19:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1443712510-6714-1-git-send-email-gabriel@lse.epita.fr>
[not found] ` <1443712510-6714-1-git-send-email-gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
2015-10-03 23:22 ` [PATCH v2] scsi: dpt: remove i2o header in uapi Gabriel Laskar
[not found] ` <1443914571-19312-1-git-send-email-gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
2015-10-04 12:12 ` Greg Kroah-Hartman
2015-10-04 19:04 ` Arnd Bergmann
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).