diff options
author | Markus Lidel <Markus.Lidel@shadowconnect.com> | 2005-06-24 01:02:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:05:28 -0400 |
commit | b2aaee33fbb354a2f08121aa1c1be55841102761 (patch) | |
tree | 7567ca61aaf5eed8bb1acd01cd87aa235b854fd4 /include/linux/i2o-dev.h | |
parent | f10378fff658f61307496e0ae00095041725cf07 (diff) |
[PATCH] I2O: Adaptec specific SG_IO access, firmware access through sysfs and 2400A workaround
Changes:
- Provide SG_IO access to BLOCK and EXECUTIVE class on Adaptec
controllers
- Use PRIVATE messages in SCSI-OSM because on some controllers normal
SCSI class commands like READ or READ CAPACITY cause errors
- Use new DMA and SG list creation function
- Added workaround to limit sectors per request for Adaptec 2400A
controllers
Signed-off-by: Markus Lidel <Markus.Lidel@shadowconnect.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/i2o-dev.h')
-rw-r--r-- | include/linux/i2o-dev.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/i2o-dev.h b/include/linux/i2o-dev.h index 90c984ecd521..d4a08d29e36d 100644 --- a/include/linux/i2o-dev.h +++ b/include/linux/i2o-dev.h | |||
@@ -33,6 +33,13 @@ typedef unsigned int u32; | |||
33 | #endif /* __KERNEL__ */ | 33 | #endif /* __KERNEL__ */ |
34 | 34 | ||
35 | /* | 35 | /* |
36 | * Software module types | ||
37 | */ | ||
38 | #define I2O_SOFTWARE_MODULE_IRTOS 0x11 | ||
39 | #define I2O_SOFTWARE_MODULE_IOP_PRIVATE 0x22 | ||
40 | #define I2O_SOFTWARE_MODULE_IOP_CONFIG 0x23 | ||
41 | |||
42 | /* | ||
36 | * Vendors | 43 | * Vendors |
37 | */ | 44 | */ |
38 | #define I2O_VENDOR_DPT 0x001b | 45 | #define I2O_VENDOR_DPT 0x001b |
@@ -125,6 +132,10 @@ struct i2o_evt_get { | |||
125 | int lost; | 132 | int lost; |
126 | }; | 133 | }; |
127 | 134 | ||
135 | typedef struct i2o_sg_io_hdr { | ||
136 | unsigned int flags; /* see I2O_DPT_SG_IO_FLAGS */ | ||
137 | } i2o_sg_io_hdr_t; | ||
138 | |||
128 | /************************************************************************** | 139 | /************************************************************************** |
129 | * HRT related constants and structures | 140 | * HRT related constants and structures |
130 | **************************************************************************/ | 141 | **************************************************************************/ |
@@ -403,4 +414,15 @@ typedef struct _i2o_status_block { | |||
403 | #define ADAPTER_STATE_FAILED 0x10 | 414 | #define ADAPTER_STATE_FAILED 0x10 |
404 | #define ADAPTER_STATE_FAULTED 0x11 | 415 | #define ADAPTER_STATE_FAULTED 0x11 |
405 | 416 | ||
417 | |||
418 | /* | ||
419 | * DPT / Adaptec specific values for i2o_sg_io_hdr flags. | ||
420 | */ | ||
421 | #define I2O_DPT_SG_FLAG_INTERPRET 0x00010000 | ||
422 | #define I2O_DPT_SG_FLAG_PHYSICAL 0x00020000 | ||
423 | |||
424 | #define I2O_DPT_FLASH_FRAG_SIZE 0x10000 | ||
425 | #define I2O_DPT_FLASH_READ 0x0101 | ||
426 | #define I2O_DPT_FLASH_WRITE 0x0102 | ||
427 | |||
406 | #endif /* _I2O_DEV_H */ | 428 | #endif /* _I2O_DEV_H */ |